mirror of
https://github.com/servo/servo
synced 2026-05-02 12:26:06 +02:00
Update web-platform-tests to revision 3b3585e368841b77caea8576fa56cef91c3fbdf0
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#execute-the-script-block">
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
async_test(function(t) {
|
||||
window.scriptExecuting = function () {
|
||||
setTimeout(t.step_func_done(() => {
|
||||
assert_equals(window.onloadHappened, undefined);
|
||||
}), 0);
|
||||
};
|
||||
}, "load events should not be fired for inline scripts");
|
||||
</script>
|
||||
|
||||
|
||||
<script onload="window.onloadHappened = true;">
|
||||
"use strict";
|
||||
window.scriptExecuting();
|
||||
</script>
|
||||
Reference in New Issue
Block a user