Files
servo/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/load-event.html

25 lines
696 B
HTML

<!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>