JS Test Harness: Insert the stylesheet dynamically
[WebKit-https.git] / LayoutTests / fast / dom / HTMLScriptElement / defer-onbeforeload.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 Checks that deferred scripts fire onbeforeload immediately and that it is cancellable.
8 <div id="console"></div>
9 <script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbeforeload defer'); return false;" defer></script>
10 <script src="resources/defer.js" onbeforeload="debug('onbeforeload defer'); return true;" defer></script>
11 <script src="resources/external.js" onbeforeload="debug('onbeforeload external'); return true;"></script>
12 </body>
13 </html>