diff options
Diffstat (limited to 'tests')
6 files changed, 44 insertions, 18 deletions
diff --git a/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts-from-fragment.tentative.html.ini b/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts-from-fragment.tentative.html.ini deleted file mode 100644 index 329de683b8c..00000000000 --- a/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts-from-fragment.tentative.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[Node-appendChild-three-scripts-from-fragment.tentative.html] - [Node.appendChild: inserting three scripts from a document fragment] - expected: FAIL diff --git a/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts.tentative.html.ini b/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts.tentative.html.ini deleted file mode 100644 index 996233b6e71..00000000000 --- a/tests/wpt/meta/dom/nodes/insertion-removing-steps/Node-appendChild-three-scripts.tentative.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[Node-appendChild-three-scripts.tentative.html] - [Node.appendChild: inserting three scripts from a div] - expected: FAIL diff --git a/tests/wpt/meta/html/semantics/scripting-1/the-script-element/execution-timing/147.html.ini b/tests/wpt/meta/html/semantics/scripting-1/the-script-element/execution-timing/147.html.ini deleted file mode 100644 index f1f32db7bb4..00000000000 --- a/tests/wpt/meta/html/semantics/scripting-1/the-script-element/execution-timing/147.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[147.html] - [scheduler: insert multiple inline scripts; first script moves subsequent scripts ] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/Document-prototype-currentScript.html.ini b/tests/wpt/meta/shadow-dom/Document-prototype-currentScript.html.ini index 2d3f25d0767..b831fefb3be 100644 --- a/tests/wpt/meta/shadow-dom/Document-prototype-currentScript.html.ini +++ b/tests/wpt/meta/shadow-dom/Document-prototype-currentScript.html.ini @@ -1,13 +1,7 @@ [Document-prototype-currentScript.html] - expected: TIMEOUT + expected: ERROR [document.currentScript must not be set to a script element that loads an external script in an open shadow tree] - expected: TIMEOUT + expected: FAIL [document.currentScript must not be set to a script element that loads an external script in a closed shadow tree] - expected: NOTRUN - - [document.currentScript must be set to a script element that loads an external script that was in an open shadow tree and then removed] - expected: NOTRUN - - [document.currentScript must be set to a script element that loads an external script that was in a closed shadow tree and then removed] - expected: NOTRUN + expected: FAIL diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index f002e4ad775..cda69f9407c 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -13529,6 +13529,13 @@ {} ] ], + "layout_blocker_operations.html": [ + "2df68bf1c13179688708c97eab19361608b0de82", + [ + null, + {} + ] + ], "lenient_this.html": [ "960c74613f3c2809bb1f2ee6121bf14f28267051", [ diff --git a/tests/wpt/mozilla/tests/mozilla/layout_blocker_operations.html b/tests/wpt/mozilla/tests/mozilla/layout_blocker_operations.html new file mode 100644 index 00000000000..2df68bf1c13 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/layout_blocker_operations.html @@ -0,0 +1,34 @@ +<html> +<head> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +</head> +<body> +<div id="foo"></div> + +<script> + function verifyLayoutAllowed(t) { + t.step(() => { + assert_equals(getComputedStyle(document.querySelector('#foo')).display, "block"); + t.done(); + }) + } + + var insertionTest; + async_test(function(t) { + insertionTest = t; + let script = document.createElement('script'); + document.body.appendChild(script); + script.appendChild(document.createTextNode("verifyLayoutAllowed(insertionTest)")); + }, "Insertion"); + + var replacementTest; + async_test(function(t) { + replacementTest = t; + let script = document.createElement('script'); + document.body.appendChild(script); + script.innerHTML = "verifyLayoutAllowed(replacementTest)"; + }, "Replace"); +</script> +</body> +</html> |