forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resync imported/w3c/web-platform-tests/html/webappapis WPT tests from…
… upstream https://bugs.webkit.org/show_bug.cgi?id=203298 Reviewed by Youenn Fablet. Resync imported/w3c/web-platform-tests/html/webappapis WPT tests from upstream 32ffb13f7f7fce355bf. * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window-expected.txt: * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js: (async_test.t.window.handlers.afterOpen.t.step_func_done): (async_test.t.window.handlers.afterOpenAsync.t.step_func_done): * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open-expected.txt: Added. * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html: Added. * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/w3c-import.log: * web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker-expected.txt: Added. * web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html: Added. * web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html: * web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/support/promise-access-control.py: (main): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
3109031
commit b6ab4b8
Showing
12 changed files
with
157 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
2019-10-23 Chris Dumez <[email protected]> | ||
|
||
Resync imported/w3c/web-platform-tests/html/webappapis WPT tests from upstream | ||
https://bugs.webkit.org/show_bug.cgi?id=203298 | ||
|
||
Reviewed by Youenn Fablet. | ||
|
||
Resync imported/w3c/web-platform-tests/html/webappapis WPT tests from upstream 32ffb13f7f7fce355bf. | ||
|
||
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window-expected.txt: | ||
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js: | ||
(async_test.t.window.handlers.afterOpen.t.step_func_done): | ||
(async_test.t.window.handlers.afterOpenAsync.t.step_func_done): | ||
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open-expected.txt: Added. | ||
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html: Added. | ||
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/w3c-import.log: | ||
* web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker-expected.txt: Added. | ||
* web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html: Added. | ||
* web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html: | ||
* web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/support/promise-access-control.py: | ||
(main): | ||
|
||
2019-10-22 Simon Fraser <[email protected]> | ||
|
||
wpt/css/css-images/gradient/color-stops-parsing.html fails | ||
|
4 changes: 2 additions & 2 deletions
4
...apis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
PASS document.open() after parser is aborted | ||
PASS async document.open() after parser is aborted | ||
FAIL document.open() after parser is aborted assert_false: child document should not be empty expected false got true | ||
FAIL async document.open() after parser is aborted assert_false: child document should not be empty expected false got true | ||
|
23 changes: 13 additions & 10 deletions
23
...tml/webappapis/dynamic-markup-insertion/opening-the-input-stream/aborted-parser.window.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
// document.open() bails out early if there is an **active parser** with | ||
// non-zero script nesting level. window.stop() aborts the current parser and | ||
// makes it no longer active, and should allow document.open() to work. | ||
// For more details, see https://bugzilla.mozilla.org/show_bug.cgi?id=1475000. | ||
// document.open() bails out early if there is an active parser with non-zero | ||
// script nesting level or if a load was aborted while there was an active | ||
// parser. window.stop() aborts the current parser, so once it has been called | ||
// while a parser is active, document.open() will no longer do anything to that | ||
// document, | ||
|
||
window.handlers = {}; | ||
|
||
async_test(t => { | ||
const frame = document.body.appendChild(document.createElement("iframe")); | ||
t.add_cleanup(() => frame.remove()); | ||
frame.src = "resources/aborted-parser-frame.html"; | ||
window.handlers.afterOpen = t.step_func_done(() => { | ||
const openCalled = frame.contentDocument.childNodes.length === 0; | ||
frame.remove(); | ||
assert_true(openCalled, "child document should be empty"); | ||
assert_false(openCalled, "child document should not be empty"); | ||
assert_equals(frame.contentDocument.querySelector("p").textContent, | ||
"Text", "Should still have our paragraph"); | ||
}); | ||
}, "document.open() after parser is aborted"); | ||
|
||
// Note: This test should pass even if window.close() is not there, as | ||
// document.open() is not executed synchronously in an inline script. | ||
async_test(t => { | ||
const frame = document.body.appendChild(document.createElement("iframe")); | ||
t.add_cleanup(() => frame.remove()); | ||
frame.src = "resources/aborted-parser-async-frame.html"; | ||
window.handlers.afterOpenAsync = t.step_func_done(() => { | ||
const openCalled = frame.contentDocument.childNodes.length === 0; | ||
frame.remove(); | ||
assert_true(openCalled, "child document should be empty"); | ||
assert_false(openCalled, "child document should not be empty"); | ||
assert_equals(frame.contentDocument.querySelector("p").textContent, | ||
"Text", "Should still have our paragraph"); | ||
}); | ||
}, "async document.open() after parser is aborted"); |
4 changes: 4 additions & 0 deletions
4
...mic-markup-insertion/opening-the-input-stream/location-set-and-document-open-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
|
||
PASS Location sets should cancel current navigation and prevent later document.open() from doing anything | ||
|
31 changes: 31 additions & 0 deletions
31
...pis/dynamic-markup-insertion/opening-the-input-stream/location-set-and-document-open.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title></title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<body> | ||
<script> | ||
var t = async_test("Location sets should cancel current navigation and prevent later document.open() from doing anything"); | ||
|
||
var finishTest = t.step_func_done(function() { | ||
assert_equals(frames[0].document.body.textContent, "PASS", | ||
"Should not have FAIL in our textContent"); | ||
}); | ||
|
||
t.step(function() { | ||
var i = document.createElement("iframe"); | ||
i.srcdoc = ` | ||
<script> | ||
var blob = new Blob(["PASS"], { type: "text/html" }); | ||
var url = URL.createObjectURL(blob); | ||
location.href = url; | ||
frameElement.onload = parent.finishTest; | ||
document.open(); | ||
document.write("FAIL"); | ||
document.close(); | ||
<\/script>`; | ||
document.body.appendChild(i); | ||
}); | ||
|
||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
FAIL [[CanBlock]] in a ServiceWorkerGlobalScope Can't find variable: SharedArrayBuffer | ||
|
1 change: 1 addition & 0 deletions
1
...gration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This file is required for WebKit test infrastructure to run the templated test --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters