|
1524 | 1524 | "input": "expand/es02-in.jsonld", |
1525 | 1525 | "expect": "invalid container mapping", |
1526 | 1526 | "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"} |
1687 | 1527 | }, { |
1688 | 1528 | "@id": "#tin01", |
1689 | 1529 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
|
0 commit comments