Skip to content

Commit ad27870

Browse files
committed
Move HTML-related tests from expand, compact, flatten and toRdf tests into a new html-manifest.
1 parent 0b049f7 commit ad27870

File tree

103 files changed

+417
-398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+417
-398
lines changed

tests/compact-manifest.jsonld

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,42 +1292,6 @@
12921292
"input": "compact/ep15-in.jsonld",
12931293
"context": "compact/ep15-context.jsonld",
12941294
"expect": "invalid container mapping"
1295-
}, {
1296-
"@id": "#th001",
1297-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
1298-
"name": "Compacts embedded JSON-LD script element",
1299-
"purpose": "Tests embedded JSON-LD in HTML",
1300-
"input": "compact/h001-in.html",
1301-
"context": "compact/h001-context.jsonld",
1302-
"expect": "compact/h001-out.jsonld",
1303-
"option": {"specVersion": "json-ld-1.1"}
1304-
}, {
1305-
"@id": "#th002",
1306-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
1307-
"name": "Compacts first embedded JSON-LD script element",
1308-
"purpose": "Tests embedded JSON-LD in HTML",
1309-
"input": "compact/h002-in.html",
1310-
"context": "compact/h002-context.jsonld",
1311-
"expect": "compact/h002-out.jsonld",
1312-
"option": {"specVersion": "json-ld-1.1"}
1313-
}, {
1314-
"@id": "#th003",
1315-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
1316-
"name": "Compacts targeted JSON-LD script element",
1317-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier",
1318-
"input": "compact/h003-in.html#second",
1319-
"context": "compact/h003-context.jsonld",
1320-
"expect": "compact/h003-out.jsonld",
1321-
"option": {"specVersion": "json-ld-1.1"}
1322-
}, {
1323-
"@id": "#th004",
1324-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
1325-
"name": "Compacts all embedded JSON-LD script elements with extractAllScripts option",
1326-
"purpose": "Tests embedded JSON-LD in HTML extracting all elements",
1327-
"input": "compact/h004-in.html",
1328-
"context": "compact/h004-context.jsonld",
1329-
"expect": "compact/h004-out.jsonld",
1330-
"option": {"specVersion": "json-ld-1.1", "extractAllScripts": true}
13311295
}, {
13321296
"@id": "#tin01",
13331297
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],

tests/expand-manifest.jsonld

Lines changed: 0 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,166 +1524,6 @@
15241524
"input": "expand/es02-in.jsonld",
15251525
"expect": "invalid container mapping",
15261526
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
1527-
}, {
1528-
"@id": "#th001",
1529-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1530-
"name": "Expands embedded JSON-LD script element",
1531-
"purpose": "Tests embedded JSON-LD in HTML",
1532-
"input": "expand/h001-in.html",
1533-
"expect": "expand/h001-out.jsonld",
1534-
"option": {"specVersion": "json-ld-1.1"}
1535-
}, {
1536-
"@id": "#th002",
1537-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1538-
"name": "Expands first embedded JSON-LD script element",
1539-
"purpose": "Tests embedded JSON-LD in HTML",
1540-
"input": "expand/h002-in.html",
1541-
"expect": "expand/h002-out.jsonld",
1542-
"option": {"specVersion": "json-ld-1.1"}
1543-
}, {
1544-
"@id": "#th003",
1545-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1546-
"name": "Expands targeted JSON-LD script element",
1547-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier",
1548-
"input": "expand/h003-in.html#second",
1549-
"expect": "expand/h003-out.jsonld",
1550-
"option": {"specVersion": "json-ld-1.1"}
1551-
}, {
1552-
"@id": "#th004",
1553-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1554-
"name": "Expands all embedded JSON-LD script elements with extractAllScripts option",
1555-
"purpose": "Tests embedded JSON-LD in HTML extracting all elements",
1556-
"input": "expand/h004-in.html",
1557-
"expect": "expand/h004-out.jsonld",
1558-
"option": {"specVersion": "json-ld-1.1", "extractAllScripts": true}
1559-
}, {
1560-
"@id": "#th005",
1561-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1562-
"name": "Expands multiple embedded JSON-LD script elements where one is an array",
1563-
"purpose": "Tests embedded JSON-LD in HTML extracting all elements with array",
1564-
"input": "expand/h005-in.html",
1565-
"expect": "expand/h005-out.jsonld",
1566-
"option": {"specVersion": "json-ld-1.1", "extractAllScripts": true}
1567-
}, {
1568-
"@id": "#th006",
1569-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1570-
"name": "Expands as empty with no embedded JSON-LD script elements",
1571-
"purpose": "Tests embedded JSON-LD in HTML when none exist",
1572-
"input": "expand/h006-in.html",
1573-
"expect": "expand/h006-out.jsonld",
1574-
"option": {"specVersion": "json-ld-1.1"}
1575-
}, {
1576-
"@id": "#th007",
1577-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1578-
"name": "Expands as empty with no embedded JSON-LD script elements and extractAllScripts",
1579-
"purpose": "Tests embedded JSON-LD in HTML when none exist extracting all elements",
1580-
"input": "expand/h007-in.html",
1581-
"expect": "expand/h007-out.jsonld",
1582-
"option": {"specVersion": "json-ld-1.1", "extractAllScripts": true}
1583-
}, {
1584-
"@id": "#th010",
1585-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1586-
"name": "Expands embedded JSON-LD script element with HTML character references",
1587-
"purpose": "Tests embedded JSON-LD in HTML with character references",
1588-
"input": "expand/h010-in.html",
1589-
"expect": "expand/h010-out.jsonld",
1590-
"option": {"specVersion": "json-ld-1.1"}
1591-
}, {
1592-
"@id": "#th011",
1593-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1594-
"name": "Errors if no element found at target",
1595-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist",
1596-
"input": "expand/h011-in.html#third",
1597-
"expect": "invalid script element",
1598-
"option": {"specVersion": "json-ld-1.1"}
1599-
}, {
1600-
"@id": "#th012",
1601-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1602-
"name": "Errors if targeted element is not a script element",
1603-
"purpose": "Tests embedded JSON-LD in HTML which isn't a script element",
1604-
"input": "expand/h012-in.html#first",
1605-
"expect": "invalid script element",
1606-
"option": {"specVersion": "json-ld-1.1"}
1607-
}, {
1608-
"@id": "#th013",
1609-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1610-
"name": "Errors if targeted element does not have type application/ld+json",
1611-
"purpose": "Tests embedded JSON-LD in HTML with wrong type",
1612-
"input": "expand/h013-in.html#first",
1613-
"expect": "invalid script element",
1614-
"option": {"specVersion": "json-ld-1.1"}
1615-
}, {
1616-
"@id": "#th014",
1617-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1618-
"name": "Errors if uncommented script text contains comment",
1619-
"purpose": "Tests embedded JSON-LD in HTML with comments leftover",
1620-
"input": "expand/h014-in.html",
1621-
"expect": "invalid script element",
1622-
"option": {"specVersion": "json-ld-1.1"}
1623-
}, {
1624-
"@id": "#th015",
1625-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1626-
"name": "Errors if end comment missing",
1627-
"purpose": "Tests embedded JSON-LD in HTML with unballanced comments",
1628-
"input": "expand/h015-in.html",
1629-
"expect": "invalid script element",
1630-
"option": {"specVersion": "json-ld-1.1"}
1631-
}, {
1632-
"@id": "#th016",
1633-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1634-
"name": "Errors if start comment missing",
1635-
"purpose": "Tests embedded JSON-LD in HTML with unballanced comments",
1636-
"input": "expand/h016-in.html",
1637-
"expect": "invalid script element",
1638-
"option": {"specVersion": "json-ld-1.1"}
1639-
}, {
1640-
"@id": "#th017",
1641-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1642-
"name": "Errors if uncommented script is not valid JSON",
1643-
"purpose": "Tests embedded JSON-LD in HTML which is invalid JSON",
1644-
"input": "expand/h017-in.html",
1645-
"expect": "invalid script element",
1646-
"option": {"specVersion": "json-ld-1.1"}
1647-
}, {
1648-
"@id": "#th018",
1649-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1650-
"name": "Expands embedded JSON-LD script element relative to document base",
1651-
"purpose": "Tests embedded JSON-LD in HTML",
1652-
"input": "expand/h018-in.html",
1653-
"expect": "expand/h018-out.jsonld",
1654-
"option": {"specVersion": "json-ld-1.1"}
1655-
}, {
1656-
"@id": "#th019",
1657-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1658-
"name": "Expands embedded JSON-LD script element relative to base option",
1659-
"purpose": "Tests embedded JSON-LD in HTML",
1660-
"input": "expand/h019-in.html",
1661-
"expect": "expand/h019-out.jsonld",
1662-
"option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"}
1663-
}, {
1664-
"@id": "#th020",
1665-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1666-
"name": "Expands embedded JSON-LD script element relative to HTML base",
1667-
"purpose": "Tests embedded JSON-LD in HTML",
1668-
"input": "expand/h020-in.html",
1669-
"expect": "expand/h020-out.jsonld",
1670-
"option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"}
1671-
}, {
1672-
"@id": "#th021",
1673-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1674-
"name": "Expands embedded JSON-LD script element relative to relative HTML base",
1675-
"purpose": "Tests embedded JSON-LD in HTML",
1676-
"input": "expand/h021-in.html",
1677-
"expect": "expand/h021-out.jsonld",
1678-
"option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"}
1679-
}, {
1680-
"@id": "#th022",
1681-
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
1682-
"name": "Expands targeted JSON-LD script element with fragment and HTML base",
1683-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier",
1684-
"input": "expand/h022-in.html#second",
1685-
"expect": "expand/h022-out.jsonld",
1686-
"option": {"specVersion": "json-ld-1.1"}
16871527
}, {
16881528
"@id": "#tin01",
16891529
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],

tests/expand/h018-out.jsonld

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/flatten-manifest.jsonld

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -358,42 +358,6 @@
358358
"option": {"specVersion": "json-ld-1.1"},
359359
"input": "flatten/e001-in.jsonld",
360360
"expect": "conflicting indexes"
361-
}, {
362-
"@id": "#th001",
363-
"@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"],
364-
"name": "Flattens embedded JSON-LD script element",
365-
"purpose": "Tests embedded JSON-LD in HTML",
366-
"input": "flatten/h001-in.html",
367-
"context": "flatten/h001-context.jsonld",
368-
"expect": "flatten/h001-out.jsonld",
369-
"option": {"specVersion": "json-ld-1.1"}
370-
}, {
371-
"@id": "#th002",
372-
"@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"],
373-
"name": "Flattens first embedded JSON-LD script element",
374-
"purpose": "Tests embedded JSON-LD in HTML",
375-
"input": "flatten/h002-in.html",
376-
"context": "flatten/h002-context.jsonld",
377-
"expect": "flatten/h002-out.jsonld",
378-
"option": {"specVersion": "json-ld-1.1", "extractAllScripts": false}
379-
}, {
380-
"@id": "#th003",
381-
"@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"],
382-
"name": "Flattens targeted JSON-LD script element",
383-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier",
384-
"input": "flatten/h003-in.html#second",
385-
"context": "flatten/h003-context.jsonld",
386-
"expect": "flatten/h003-out.jsonld",
387-
"option": {"specVersion": "json-ld-1.1"}
388-
}, {
389-
"@id": "#th004",
390-
"@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"],
391-
"name": "Flattens all script elements by default",
392-
"purpose": "Tests embedded JSON-LD in HTML with fragment identifier",
393-
"input": "flatten/h004-in.html",
394-
"context": "flatten/h004-context.jsonld",
395-
"expect": "flatten/h004-out.jsonld",
396-
"option": {"specVersion": "json-ld-1.1"}
397361
}, {
398362
"@id": "#tin01",
399363
"@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"],

0 commit comments

Comments
 (0)