summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/load-event.html
blob: 25c2ddf3e224be6b41c9fbedbb0221a5b66d824b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>