OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body onload="debug('load');finishJSTest();"> | 6 <body onload="debug('load');finishJSTest();"> |
7 Checks that async scripts fire onbeforeload immediately and that it is cancellab
le. | 7 Checks that async scripts fire onbeforeload immediately and that it is cancellab
le. |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script>var jsTestIsAsync = true;</script> | 9 <script>var jsTestIsAsync = true;</script> |
10 <script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbef
oreload async'); return false;" async></script> | 10 <script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbef
oreload async'); return false;" async></script> |
11 <script src="resources/async.js" onbeforeload="debug('onbeforeload async'); retu
rn true;" async></script> | 11 <script src="resources/async.js" onbeforeload="debug('onbeforeload async'); retu
rn true;" async></script> |
12 <script src="data:text/javascript," onbeforeload="debug('onbeforeload external')
; return true;"></script> | 12 <script src="data:text/javascript," onbeforeload="debug('onbeforeload external')
; return true;"></script> |
13 </body> | 13 </body> |
14 </html> | 14 </html> |
OLD | NEW |