summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json')
-rw-r--r--testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json
new file mode 100644
index 000000000..aa121337c
--- /dev/null
+++ b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/3.2.7-targChoiceSet.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "id": "3.2.7-targChoiceSet.json",
+ "assertionType": "may",
+ "expectedResult": "valid",
+ "onUnexpectedResult" : "passAndContinue",
+ "errorMessage": "A Target may be a Choice or Set.",
+ "title": "Implements **Choice or Set** with type and items key as a target - [model 3.2.7](https://www.w3.org/TR/annotation-model/#choice-of-bodies-and-targets)",
+ "description": "True when a Choice or Set is used as a target. (Section 3.2.7)",
+ "type": "object",
+ "properties":
+ {
+ "target":
+ {
+ "oneOf": [
+ { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" },
+ { "not":
+ {
+ "items":
+ { "not":
+ { "$ref": "choiceSet.json#/definitions/choiceOrSetDetected" }
+ }
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file