OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 | 4 |
5 jsTestIsAsync = true; | 5 jsTestIsAsync = true; |
6 | 6 |
7 description('Test usage of document.currentScript with async') | 7 description('Test usage of document.currentScript with async') |
8 | 8 |
9 var seenIds = []; | 9 var seenIds = []; |
10 | 10 |
11 function logCurrentScript(id) { | 11 function logCurrentScript(id) { |
12 // Don't print anything if pass since the execution order of script[async] | 12 // Don't print anything if pass since the execution order of script[async] |
(...skipping 26 matching lines...) Expand all Loading... |
39 script.id = 'f' | 39 script.id = 'f' |
40 script.async = true; | 40 script.async = true; |
41 script.defer = false; | 41 script.defer = false; |
42 script.src = 'resources/log-current-script-f.js'; | 42 script.src = 'resources/log-current-script-f.js'; |
43 document.head.appendChild(script); | 43 document.head.appendChild(script); |
44 </script> | 44 </script> |
45 | 45 |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
48 | 48 |
OLD | NEW |