mirror of
https://github.com/servo/servo.git
synced 2025-06-27 18:43:40 +01:00
Update web-platform-tests to revision 912d5081b62d6e6a2f847935c82722e31cca7a1f
This commit is contained in:
parent
eeaca0b26d
commit
a44e48301c
75 changed files with 1894 additions and 292 deletions
|
@ -4,7 +4,7 @@
|
|||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
// https://html.spec.whatwg.org/#report-the-error
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#report-the-error
|
||||
// If script's muted errors is true, then set message to "Script error.",
|
||||
// urlString to the empty string, line and col to 0, and errorValue to null.
|
||||
setup({allow_uncaught_exception: true});
|
||||
|
@ -43,6 +43,16 @@
|
|||
script.onload = test3.step_func_done(() => check(true));
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
var test4 = async_test("Errors for same-origin scripts redirected to a " +
|
||||
"cross-origin url and redirected back to " +
|
||||
"same-origin should be muted");
|
||||
var check4 = test4.step_func_done(() => check(true));
|
||||
|
||||
var test5 = async_test("Errors for cross-origin scripts redirected to a " +
|
||||
"same-origin url should be muted");
|
||||
var check5 = test5.step_func_done(() => check(true));
|
||||
|
||||
function unreachable() { log.push("unexpected"); }
|
||||
</script>
|
||||
<script src="cacheable-script-throw.py" onerror="test1.unreached_func()()" onload="check1()"></script>
|
||||
|
@ -50,3 +60,10 @@
|
|||
onerror="test2.unreached_func()()" onload="check2()"></script>
|
||||
<iframe src="//{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/muted-errors-iframe.html"
|
||||
onerror="test3.unreached_func()()" onload="step3()"></iframe>
|
||||
<script src="/fetch/api/resources/redirect.py?location=
|
||||
//{{domains[www2]}}:{{ports[http][0]}}/fetch/api/resources/redirect.py?location=
|
||||
//{{host}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py?same-cross-same"
|
||||
onerror="test4.unreached_func()()" onload="check4()"></script>
|
||||
<script src="//{{domains[www2]}}:{{ports[http][0]}}/fetch/api/resources/redirect.py?location=
|
||||
//{{host}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/cacheable-script-throw.py?cross-same"
|
||||
onerror="test5.unreached_func()()" onload="check5()"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue