diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/annotation-model/examples/example2.test | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/annotation-model/examples/example2.test')
-rw-r--r-- | testing/web-platform/tests/annotation-model/examples/example2.test | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/annotation-model/examples/example2.test b/testing/web-platform/tests/annotation-model/examples/example2.test new file mode 100644 index 000000000..03b7589b8 --- /dev/null +++ b/testing/web-platform/tests/annotation-model/examples/example2.test @@ -0,0 +1,42 @@ +{ + "@context": "https://www.w3.org/ns/JSONtest-v1.jsonld", + "name": "A test that has an 'or' clause", + "description": "This is a complex test that uses or-ing among a list of assertions.", + "ref": "https://www.w3.org/TR/annotation-model/#model", + "testType": "manual", + "assertions": + { "title": "Condition Object", + "description": "A pseudo-test that will get a result from the aggregate of its children", + "assertionType": "must", + "expectedResult": "valid", + "errorMessage": "Error: None of the various options were present", + "compareWith": "or", + "assertions": [ + { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "'The Annotation must have 1 or more @context values' (Section 3.1)", + "assertionType": "must", + "expectedResult": "valid", + "errorMessage": "Error: Annotation does not have an @context property.", + "type": "object", + "properties": { + "@context": {} + }, + "required": ["@context"] + }, + { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "'An Annotation should have exactly 1 id' (Section 3.1)", + "assertionType": "should", + "expectedResult": "valid", + "errorMessage": "Warning: The Annotation is not identified using the id key (Section 3.1).", + "type": "object", + "properties": { + "id": {} + }, + "required": ["id"] + } + ] + } + +} |