diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index 76b398963ae..dd4ffcf4345 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -1,5 +1,4 @@ [url-in-tags-revoke.window.html] - expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL @@ -15,6 +14,3 @@ [Opening a blob URL in a new window by clicking an tag works immediately before revoking the URL.] expected: FAIL - [Fetching a blob URL immediately before revoking it works in diff --git a/tests/wpt/web-platform-tests/WebIDL/ecmascript-binding/constructors-support.html b/tests/wpt/web-platform-tests/WebIDL/ecmascript-binding/support/constructors-support.html similarity index 100% rename from tests/wpt/web-platform-tests/WebIDL/ecmascript-binding/constructors-support.html rename to tests/wpt/web-platform-tests/WebIDL/ecmascript-binding/support/constructors-support.html diff --git a/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001-ref.html b/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001-ref.html new file mode 100644 index 00000000000..2897c95810d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001-ref.html @@ -0,0 +1,63 @@ + + + +
+
+
+
+
+ XX +
+
+
+
+
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+ diff --git a/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001.html b/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001.html new file mode 100644 index 00000000000..b0ca8835349 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/CSS2/linebox/baseline-block-with-overflow-001.html @@ -0,0 +1,67 @@ + +CSS Test: Baseline of blocks with `overflow: hidden` + + + + + +
+
+
+
+
+ XX +
+
+
+
+
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+
+
+
+ XX +
+
+ XX +
+ diff --git a/tests/wpt/web-platform-tests/css/css-box/parsing/clear-computed.html b/tests/wpt/web-platform-tests/css/css-box/parsing/clear-computed.html new file mode 100644 index 00000000000..9571cb7e402 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-box/parsing/clear-computed.html @@ -0,0 +1,24 @@ + + + + +CSS basic box model: getComputedStyle().clear + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-box/parsing/clear-valid.html b/tests/wpt/web-platform-tests/css/css-box/parsing/clear-valid.html index b27350e1791..fc1947f71df 100644 --- a/tests/wpt/web-platform-tests/css/css-box/parsing/clear-valid.html +++ b/tests/wpt/web-platform-tests/css/css-box/parsing/clear-valid.html @@ -5,7 +5,9 @@ CSS basic box model: parsing clear with valid values + + @@ -16,6 +18,9 @@ test_valid_value("clear", "none"); test_valid_value("clear", "left"); test_valid_value("clear", "right"); test_valid_value("clear", "both"); + +test_valid_value("clear", "inline-start"); +test_valid_value("clear", "inline-end"); diff --git a/tests/wpt/web-platform-tests/css/css-box/parsing/float-computed.html b/tests/wpt/web-platform-tests/css/css-box/parsing/float-computed.html new file mode 100644 index 00000000000..9d680e16c6d --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-box/parsing/float-computed.html @@ -0,0 +1,23 @@ + + + + +CSS basic box model: getComputedStyle().float + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-box/parsing/float-valid.html b/tests/wpt/web-platform-tests/css/css-box/parsing/float-valid.html index a8fc605325f..32cf7edefdc 100644 --- a/tests/wpt/web-platform-tests/css/css-box/parsing/float-valid.html +++ b/tests/wpt/web-platform-tests/css/css-box/parsing/float-valid.html @@ -5,7 +5,9 @@ CSS basic box model: parsing float with valid values + + @@ -16,6 +18,9 @@ test_valid_value("float", "left"); test_valid_value("float", "right"); test_valid_value("float", "none"); +test_valid_value("float", "inline-start"); +test_valid_value("float", "inline-end"); + // The following are not yet supported by browsers: // test_valid_value("float", "top"); // test_valid_value("float", "bottom"); diff --git a/tests/wpt/web-platform-tests/css/css-flexbox/parsing/order-computed.html b/tests/wpt/web-platform-tests/css/css-flexbox/parsing/order-computed.html new file mode 100644 index 00000000000..95719961999 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-flexbox/parsing/order-computed.html @@ -0,0 +1,20 @@ + + + + +CSS Flexible Box Layout Module Level 1: getComputedStyle().order + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-computed.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-computed.html new file mode 100644 index 00000000000..83137f05645 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-computed.html @@ -0,0 +1,29 @@ + + + + +CSS Inline Layout: getComputedStyle().alignmentBaseline + + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-invalid.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-invalid.html new file mode 100644 index 00000000000..62cb70f0810 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-invalid.html @@ -0,0 +1,22 @@ + + + + +CSS Inline Layout: parsing alignment-baseline with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-valid.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-valid.html new file mode 100644 index 00000000000..3e895d77338 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/alignment-baseline-valid.html @@ -0,0 +1,27 @@ + + + + +CSS Inline Layout: parsing alignment-baseline with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-computed.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-computed.html new file mode 100644 index 00000000000..3bef5bae3b9 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-computed.html @@ -0,0 +1,28 @@ + + + + +CSS Inline Layout: getComputedStyle().baselineShift + + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-invalid.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-invalid.html new file mode 100644 index 00000000000..1bc395c737f --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-invalid.html @@ -0,0 +1,24 @@ + + + + +CSS Inline Layout: parsing baseline-shift with invalid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-valid.html b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-valid.html new file mode 100644 index 00000000000..8054ebbb39c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-inline/parsing/baseline-shift-valid.html @@ -0,0 +1,22 @@ + + + + +CSS Inline Layout: parsing baseline-shift with valid values + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/css/css-scroll-anchoring/position-change-heuristic-display-none-change.html b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/position-change-heuristic-display-none-change.html new file mode 100644 index 00000000000..6e002383822 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/position-change-heuristic-display-none-change.html @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
1 + 1 + 1 + 1 +
1 + 1 + 1 + 1 +
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
+
+ diff --git a/tests/wpt/web-platform-tests/css/css-transforms/parsing/transform-box-computed.html b/tests/wpt/web-platform-tests/css/css-transforms/parsing/transform-box-computed.html new file mode 100644 index 00000000000..d21beb20813 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-transforms/parsing/transform-box-computed.html @@ -0,0 +1,21 @@ + + + + +CSS Transform Module Level 1: getComputedStyle().transformBox + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/docs/writing-tests/file-names.md b/tests/wpt/web-platform-tests/docs/writing-tests/file-names.md index 5e9e407088e..220e4ab33dc 100644 --- a/tests/wpt/web-platform-tests/docs/writing-tests/file-names.md +++ b/tests/wpt/web-platform-tests/docs/writing-tests/file-names.md @@ -16,11 +16,6 @@ are mutually exclusive. `-manual` : Indicates that a test is a non-automated test. -`-support` - : Indicates that a file is not a test but a support file. Not - required for files in a directory called `resources`, `tools` or - `support`. - `-visual` : Indicates that a file is a visual test. diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter.html index e2110aff3b3..5d521f016f4 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: acceptNode-filter - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-basic.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-basic.html index d1147637b13..100cb10de3e 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-basic.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-basic.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: Basic test - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-currentNode.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-currentNode.html index 8a09940b1e7..7c5d8810a86 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-currentNode.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-currentNode.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: currentNode - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousNodeLastChildReject.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousNodeLastChildReject.html index 236ab803c59..0147b81112e 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousNodeLastChildReject.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousNodeLastChildReject.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: previousNodeLastChildReject - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousSiblingLastChildSkip.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousSiblingLastChildSkip.html index 17da4d56971..5566564d240 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousSiblingLastChildSkip.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-previousSiblingLastChildSkip.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: previousSiblingLastChildSkip - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-reject.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-reject.html index 273b33236f9..53b734188c4 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-reject.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-reject.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: traversal-reject - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip-most.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip-most.html index 567ef665569..173922c15e6 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip-most.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip-most.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: traversal-skip-most - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip.html index 0e3b81a274f..8c6f2bf22be 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-traversal-skip.html @@ -7,7 +7,7 @@ Test adapted from https://dxr.mozilla.org/chromium/source/src/third_party/WebKit TreeWalker: traversal-skip - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-walking-outside-a-tree.html b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-walking-outside-a-tree.html index ad4334512ce..b99e33e01fa 100644 --- a/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-walking-outside-a-tree.html +++ b/tests/wpt/web-platform-tests/dom/traversal/TreeWalker-walking-outside-a-tree.html @@ -7,7 +7,7 @@ Test adapted from https://github.com/operasoftware/presto-testo/blob/master/core TreeWalker: walking-outside-a-tree - +
diff --git a/tests/wpt/web-platform-tests/dom/traversal/traversal-support.js b/tests/wpt/web-platform-tests/dom/traversal/support/assert-node.js similarity index 100% rename from tests/wpt/web-platform-tests/dom/traversal/traversal-support.js rename to tests/wpt/web-platform-tests/dom/traversal/support/assert-node.js diff --git a/tests/wpt/web-platform-tests/eventsource/eventsource-onmessage-realm.htm b/tests/wpt/web-platform-tests/eventsource/eventsource-onmessage-realm.htm index 9bc8c4646a4..db2218b5168 100644 --- a/tests/wpt/web-platform-tests/eventsource/eventsource-onmessage-realm.htm +++ b/tests/wpt/web-platform-tests/eventsource/eventsource-onmessage-realm.htm @@ -5,14 +5,14 @@ - + - + - + diff --git a/tests/wpt/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js b/tests/wpt/web-platform-tests/html/syntax/parsing/support/DOMContentLoaded-defer.js similarity index 100% rename from tests/wpt/web-platform-tests/html/syntax/parsing/DOMContentLoaded-defer-support.js rename to tests/wpt/web-platform-tests/html/syntax/parsing/support/DOMContentLoaded-defer.js diff --git a/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-support.htm b/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/support/xhtml-mathml-dtd-entity.htm similarity index 100% rename from tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-support.htm rename to tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/support/xhtml-mathml-dtd-entity.htm diff --git a/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-1.htm b/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-1.htm index 4025e2a477f..a5d2015890c 100644 --- a/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-1.htm +++ b/tests/wpt/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-1.htm @@ -5,7 +5,7 @@ - + - + - + - + - + - + - + - + - + - + diff --git a/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor-portal.html b/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor-portal.html index 78c6af1268c..0cf07f3f41c 100644 --- a/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor-portal.html +++ b/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor-portal.html @@ -37,5 +37,19 @@ } }); } + if (test == "adopt-and-activate") { + var portal = e.adoptPredecessor(); + portal.activate(); + } + if (test == "adopt-attach-remove") { + var portal = e.adoptPredecessor(); + document.body.appendChild(portal); + setTimeout(() => { + document.body.removeChild(portal); + var bc_test = new BroadcastChannel(`test-${test}`); + bc_test.postMessage("passed"); + bc_test.close(); + }); + } } diff --git a/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor.html b/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor.html index 4bd01c338ed..66d47d12ac2 100644 --- a/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor.html +++ b/tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor.html @@ -8,6 +8,9 @@ portal.src = `portals-adopt-predecessor-portal.html?test=${test}`; portal.onload = () => { portal.activate().then(() => { + window.addEventListener("portalactivate", e => { + window.opener.postMessage({test, message: "passed"}, "*"); + }); window.portalHost.addEventListener("message", e => { window.opener.postMessage({test, message: e.data}, "*"); }); diff --git a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py index a34153d1c72..54cd3b74488 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py +++ b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py @@ -339,7 +339,6 @@ class SourceFile(object): self.filename == "META.yml" or self.filename.startswith(".") or self.filename.endswith(".headers") or - self.type_flag == "support" or self.in_non_test_dir()) @property diff --git a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py index 0483311e2d2..0a7a1ca0b41 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py +++ b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py @@ -35,7 +35,6 @@ def items(s): "foo/tools/test.html", "foo/resources/test.html", "foo/support/test.html", - "foo/test-support.html", "foo/foo-manual.html.headers", "css/common/test.html", "css/CSS2/archive/test.html", @@ -56,6 +55,7 @@ def test_name_is_non_test(rel_path): "foo/css21/archive/test.html", "foo/CSS2/archive/test.html", "css/css21/archive/test.html", + "foo/test-support.html", ]) def test_not_name_is_non_test(rel_path): s = create(rel_path) diff --git a/tests/wpt/web-platform-tests/touch-events/historical.html b/tests/wpt/web-platform-tests/touch-events/historical.html index 27cc88d8ce0..a6bd80e2bf5 100644 --- a/tests/wpt/web-platform-tests/touch-events/historical.html +++ b/tests/wpt/web-platform-tests/touch-events/historical.html @@ -3,7 +3,7 @@ Historical touch events features - + - +
diff --git a/tests/wpt/web-platform-tests/webdriver/tests/element_clear/clear.py b/tests/wpt/web-platform-tests/webdriver/tests/element_clear/clear.py index a1017745f3d..cb34fedb4ef 100644 --- a/tests/wpt/web-platform-tests/webdriver/tests/element_clear/clear.py +++ b/tests/wpt/web-platform-tests/webdriver/tests/element_clear/clear.py @@ -267,7 +267,7 @@ def test_contenteditable(session, add_event_listeners, tracked_events): response = element_clear(session, element) assert_success(response) assert element.property("innerHTML") == "" - assert_events_equal(session, ["focus", "change", "blur"]) + assert_events_equal(session, ["focus", "blur"]) assert_element_has_focus(session.execute_script("return document.body")) diff --git a/tests/wpt/web-platform-tests/webdriver/tests/execute_async_script/properties.py b/tests/wpt/web-platform-tests/webdriver/tests/execute_async_script/properties.py index 207daae1283..394ae3294cd 100644 --- a/tests/wpt/web-platform-tests/webdriver/tests/execute_async_script/properties.py +++ b/tests/wpt/web-platform-tests/webdriver/tests/execute_async_script/properties.py @@ -14,7 +14,7 @@ def execute_async_script(session, script, args=None): def test_content_attribute(session): session.url = inline("") response = execute_async_script(session, """ - const [resolve] = arguments; + const resolve = arguments[0]; const input = document.querySelector("input"); resolve(input.value); """) @@ -30,7 +30,7 @@ def test_idl_attribute(session): """) response = execute_async_script(session, """ - const [resolve] = arguments; + const resolve = arguments[0]; const input = document.querySelector("input"); resolve(input.value); """) @@ -43,13 +43,15 @@ def test_idl_attribute_element(session):

bar """) _foo, bar = session.find.css("p") response = execute_async_script(session, """ - const [resolve] = arguments; + const resolve = arguments[0]; const foo = document.querySelector("p"); resolve(foo.bar); """) @@ -64,7 +66,7 @@ def test_script_defining_property(session): input.foobar = "foobar"; """) response = execute_async_script(session, """ - const [resolve] = arguments; + const resolve = arguments[0]; const input = document.querySelector("input"); resolve(input.foobar); """) diff --git a/tests/wpt/web-platform-tests/webdriver/tests/execute_script/properties.py b/tests/wpt/web-platform-tests/webdriver/tests/execute_script/properties.py index 92f4722fbf6..2be4f1f3ccc 100644 --- a/tests/wpt/web-platform-tests/webdriver/tests/execute_script/properties.py +++ b/tests/wpt/web-platform-tests/webdriver/tests/execute_script/properties.py @@ -41,7 +41,9 @@ def test_idl_attribute_element(session):

bar """) diff --git a/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https.html b/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https.html index 385bb51719e..282771153c4 100644 --- a/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https.html +++ b/tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https.html @@ -1,5 +1,6 @@ + RTCPeerConnection.prototype.iceConnectionState diff --git a/tests/wpt/web-platform-tests/workers/semantics/interface-objects/001.worker.js b/tests/wpt/web-platform-tests/workers/semantics/interface-objects/001.worker.js index a2b09fd1a16..6d965b6ba33 100644 --- a/tests/wpt/web-platform-tests/workers/semantics/interface-objects/001.worker.js +++ b/tests/wpt/web-platform-tests/workers/semantics/interface-objects/001.worker.js @@ -15,6 +15,7 @@ var expected = [ "CanvasGradient", "CanvasPattern", "CanvasPath", + "TextMetrics", "Path2D", "PromiseRejectionEvent", "EventSource", diff --git a/tests/wpt/web-platform-tests/workers/semantics/interface-objects/002.worker.js b/tests/wpt/web-platform-tests/workers/semantics/interface-objects/002.worker.js index 27be44396f5..bbaf66d3383 100644 --- a/tests/wpt/web-platform-tests/workers/semantics/interface-objects/002.worker.js +++ b/tests/wpt/web-platform-tests/workers/semantics/interface-objects/002.worker.js @@ -10,7 +10,6 @@ var unexpected = [ "Audio", "HTMLCanvasElement", "Path", - "TextMetrics", "CanvasProxy", "CanvasRenderingContext2D", "DrawingStyle", diff --git a/tests/wpt/web-platform-tests/xslt/META.yml b/tests/wpt/web-platform-tests/xslt/META.yml new file mode 100644 index 00000000000..9c059d2e911 --- /dev/null +++ b/tests/wpt/web-platform-tests/xslt/META.yml @@ -0,0 +1,4 @@ +# NOTE: There is no standard for this API, only: +# https://wiki.whatwg.org/wiki/DOM_XSLTProcessor +# and the notes in the HTML5 spec, linked. +spec: https://html.spec.whatwg.org/multipage/scripting.html#scriptTagXSLT diff --git a/tests/wpt/web-platform-tests/xslt/externalScript.js b/tests/wpt/web-platform-tests/xslt/externalScript.js new file mode 100644 index 00000000000..7a2bf362255 --- /dev/null +++ b/tests/wpt/web-platform-tests/xslt/externalScript.js @@ -0,0 +1 @@ +window.externalScript = true; diff --git a/tests/wpt/web-platform-tests/xslt/idlharness.window.js b/tests/wpt/web-platform-tests/xslt/idlharness.window.js new file mode 100644 index 00000000000..51b0cd3dbac --- /dev/null +++ b/tests/wpt/web-platform-tests/xslt/idlharness.window.js @@ -0,0 +1,15 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +idl_test( + ['xslt'], + ['html'], + async idlArray => { + idlArray.add_objects({ + XSLTProcessor: ['processor'] + }); + self.processor = new XSLTProcessor(); + } +); diff --git a/tests/wpt/web-platform-tests/xslt/transformToFragment.tentative.window.js b/tests/wpt/web-platform-tests/xslt/transformToFragment.tentative.window.js new file mode 100644 index 00000000000..7bb6a568554 --- /dev/null +++ b/tests/wpt/web-platform-tests/xslt/transformToFragment.tentative.window.js @@ -0,0 +1,39 @@ +const cases = { + internal: '', + external: '', +}; + +const loaded = new Promise(resolve => { + window.addEventListener('load', resolve); +}); + +Object.entries(cases).forEach(([k, v]) => { + const xsltSrc = ` + + +

+ ${v} +
+ +`; + + const processor = new XSLTProcessor(); + const parser = new DOMParser(); + processor.importStylesheet( + parser.parseFromString(xsltSrc, 'application/xml') + ); + document.body.appendChild( + processor.transformToFragment( + parser.parseFromString('', 'application/xml'), + document + ) + ); + + promise_test(async () => { + await loaded; + assert_true( + window[`${k}Script`], + 'script element from XSLTProcessor.transformToFragment() is evaluated' + ); + }, `${k} script`); +})