Skip to content

Commit e861362

Browse files
committed
Adds test README entry for HTML tests, removes that for defunct HTTP.
1 parent 4c162be commit e861362

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

tests/README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ More information and an RDFS definition of the test vocabulary can be found at [
99

1010
# Design
1111

12-
Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [compact](compact-manifest.jsonld), [expand](expand-manifest.jsonld), [flatten](flatten-manifest.jsonld), [remote-doc](remote-doc-manifest.jsonld), [fromRdf](fromRdf-manifest.jsonld), and [toRdf](toRdf-manifest.jsonld) sections:
12+
Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [compact](compact-manifest.jsonld), [expand](expand-manifest.jsonld), [flatten](flatten-manifest.jsonld), [html](html-manifest.jsonld), [remote-doc](remote-doc-manifest.jsonld), [fromRdf](fromRdf-manifest.jsonld), and [toRdf](toRdf-manifest.jsonld) sections:
1313

1414
* [compact](compact-manifest.jsonld) tests have _input_, _expected_ and _context_ documents.
1515
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. Additionally, if the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
@@ -18,6 +18,12 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
1818
* [expand](expand-manifest.jsonld) tests have _input_ and _expected_ documents.
1919
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
2020

21+
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
22+
* [html](html.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document.
23+
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
24+
after potentially remapping blank node identifiers (see below).
25+
Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
26+
2127
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
2228
* [flatten](flatten-manifest.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document.
2329
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
@@ -37,18 +43,6 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
3743
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
3844
* [toRdf](toRdf-manifest.jsonld) tests have _input_ and _expected_ documents.
3945
The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism).
40-
* _http_ tests have _input_ and _expected_ documents and an optional _context_ document.
41-
These tests describe the behavior of an HTTP server performing content-negotiation using the ACCEPT header, specified using the _accept_ option to generate the _expected_ result document.
42-
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
43-
after potentially remapping blank node identifiers (see below).
44-
Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
45-
46-
If the result is to be compacted, and no explicit context URL is provided, test subjects should use http/default-context.jsonld
47-
48-
If the profile parameter includes http://example.com/do-not-use, test subjects should reject the URL and not accept the media type. Otherwise, for any other URL, applications should apply the specified URL for the context or frame, as appropriate.
49-
50-
For *NegativeEvaluationTests*, the result is the expected HTTP status. Options may be present to describe the intended HTTP behavior:
51-
* _accept_: The HTTP _Accept_ header value.
5246

5347
Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`.
5448

0 commit comments

Comments
 (0)