summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json')
-rw-r--r--testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json
new file mode 100644
index 0000000000..d1823952ff
--- /dev/null
+++ b/testing/web-platform/tests/annotation-model/annotations/bodiesTargets/4-bodyChoiceSetNoSource.json
@@ -0,0 +1,21 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "id": "4-bodyChoiceSetNoSource.json",
+ "assertionType": "must",
+ "expectedResult": "valid",
+ "onUnexpectedResult" : "failAndContinue",
+ "errorMessage": "A Choice or Set body cannot include a source key. source key is only valid with Specific Resources.",
+ "title": "If a **Choice or Set** is a body, it does NOT have a **_source_ key** - [model 4](https://www.w3.org/TR/annotation-model/#specific-resources)",
+ "description": "True when no Choice or Set bodies or when none of the Choice or Set bodies include the source key. (Section 4)",
+ "type": "object",
+ "properties":
+ {
+ "body":
+ {
+ "allOf": [
+ { "not": { "$ref": "choiceSet.json#/definitions/choiceSetWithSource" } },
+ { "items": { "not": { "$ref": "choiceSet.json#/definitions/choiceSetWithSource" } } }
+ ]
+ }
+ }
+} \ No newline at end of file