mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
25 lines
696 B
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>
|