Skip to content

Commit 360270d

Browse files
committed
Update test expectations for HTML tests e011, e012, e013, r011, r012, and r013 from "invalid script element" to "load document failed",
Fixes #399.
1 parent d9086e6 commit 360270d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/html-manifest.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ <h2>
403403
</dd>
404404
<dt>expect</dt>
405405
<dd>
406-
invalid script element
406+
loading document failed
407407
</dd>
408408
<dt>Options</dt>
409409
<dd>
@@ -431,7 +431,7 @@ <h2>
431431
</dd>
432432
<dt>expect</dt>
433433
<dd>
434-
invalid script element
434+
loading document failed
435435
</dd>
436436
<dt>Options</dt>
437437
<dd>
@@ -459,7 +459,7 @@ <h2>
459459
</dd>
460460
<dt>expect</dt>
461461
<dd>
462-
invalid script element
462+
loading document failed
463463
</dd>
464464
<dt>Options</dt>
465465
<dd>
@@ -1237,7 +1237,7 @@ <h2>
12371237
</dd>
12381238
<dt>expect</dt>
12391239
<dd>
1240-
invalid script element
1240+
loading document failed
12411241
</dd>
12421242
<dt>Options</dt>
12431243
<dd>
@@ -1265,7 +1265,7 @@ <h2>
12651265
</dd>
12661266
<dt>expect</dt>
12671267
<dd>
1268-
invalid script element
1268+
loading document failed
12691269
</dd>
12701270
<dt>Options</dt>
12711271
<dd>
@@ -1293,7 +1293,7 @@ <h2>
12931293
</dd>
12941294
<dt>expect</dt>
12951295
<dd>
1296-
invalid script element
1296+
loading document failed
12971297
</dd>
12981298
<dt>Options</dt>
12991299
<dd>

tests/html-manifest.jsonld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,23 @@
8383
"name": "Errors if no element found at target",
8484
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist",
8585
"input": "html/e011-in.html#third",
86-
"expectErrorCode": "invalid script element",
86+
"expectErrorCode": "loading document failed",
8787
"option": {"specVersion": "json-ld-1.1"}
8888
}, {
8989
"@id": "#te012",
9090
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest", "jld:HtmlTest"],
9191
"name": "Errors if targeted element is not a script element",
9292
"purpose": "Tests embedded JSON-LD in HTML which isn't a script element",
9393
"input": "html/e012-in.html#first",
94-
"expectErrorCode": "invalid script element",
94+
"expectErrorCode": "loading document failed",
9595
"option": {"specVersion": "json-ld-1.1"}
9696
}, {
9797
"@id": "#te013",
9898
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest", "jld:HtmlTest"],
9999
"name": "Errors if targeted element does not have type application/ld+json",
100100
"purpose": "Tests embedded JSON-LD in HTML with wrong type",
101101
"input": "html/e013-in.html#first",
102-
"expectErrorCode": "invalid script element",
102+
"expectErrorCode": "loading document failed",
103103
"option": {"specVersion": "json-ld-1.1"}
104104
}, {
105105
"@id": "#te014",
@@ -315,23 +315,23 @@
315315
"name": "Errors if no element found at target",
316316
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist",
317317
"input": "html/r011-in.html#third",
318-
"expectErrorCode": "invalid script element",
318+
"expectErrorCode": "loading document failed",
319319
"option": {"specVersion": "json-ld-1.1"}
320320
}, {
321321
"@id": "#tr012",
322322
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest", "jld:HtmlTest"],
323323
"name": "Errors if targeted element is not a script element",
324324
"purpose": "Tests embedded JSON-LD in HTML which isn't a script element",
325325
"input": "html/r012-in.html#first",
326-
"expectErrorCode": "invalid script element",
326+
"expectErrorCode": "loading document failed",
327327
"option": {"specVersion": "json-ld-1.1"}
328328
}, {
329329
"@id": "#tr013",
330330
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest", "jld:HtmlTest"],
331331
"name": "Errors if targeted element does not have type application/ld+json",
332332
"purpose": "Tests embedded JSON-LD in HTML with wrong type",
333333
"input": "html/r013-in.html#first",
334-
"expectErrorCode": "invalid script element",
334+
"expectErrorCode": "loading document failed",
335335
"option": {"specVersion": "json-ld-1.1"}
336336
}, {
337337
"@id": "#tr014",

0 commit comments

Comments
 (0)