| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 jsTestIsAsync = true; | 6 jsTestIsAsync = true; |
| 7 | 7 |
| 8 description('Test basic usage of document.currentScript') | 8 description('Test basic usage of document.currentScript') |
| 9 | 9 |
| 10 function logCurrentScript() { | 10 function logCurrentScript() { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 var script = document.createElement('script'); | 55 var script = document.createElement('script'); |
| 56 script.id = 'j'; | 56 script.id = 'j'; |
| 57 script.textContent = 'logCurrentScript();'; | 57 script.textContent = 'logCurrentScript();'; |
| 58 script.async = false; | 58 script.async = false; |
| 59 script.defer = false; | 59 script.defer = false; |
| 60 document.head.appendChild(script); | 60 document.head.appendChild(script); |
| 61 | 61 |
| 62 logCurrentScript(); | 62 logCurrentScript(); |
| 63 </script> | 63 </script> |
| 64 | 64 |
| 65 <script src="../../js/resources/js-test-post.js"></script> | |
| 66 <script> | 65 <script> |
| 67 window.onload = function() { | 66 window.onload = function() { |
| 68 shouldBeNull('document.currentScript'); | 67 shouldBeNull('document.currentScript'); |
| 69 finishJSTest(); | 68 finishJSTest(); |
| 70 }; | 69 }; |
| 71 </script> | 70 </script> |
| 72 </body> | 71 </body> |
| 73 </html> | 72 </html> |
| 74 | 73 |
| OLD | NEW |