| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="/js-test-resources/js-test-pre.js"></script> | 4 <script src="/js-test-resources/js-test-pre.js"></script> |
| 5 <link id="target" rel="import" href="http://localhost:8000/htmlimports/resources
/cors-having-crossorigin-scripts.cgi"> | 5 <link id="target" rel="import" href="http://localhost:8000/htmlimports/resources
/cors-having-crossorigin-scripts.cgi"> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("This test ensures that crossorigin-marked script elements are block
ed properly"); | 9 description("This test ensures that crossorigin-marked script elements are block
ed properly"); |
| 10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
| 11 | 11 |
| 12 function testAndDone() | 12 function testAndDone() |
| 13 { | 13 { |
| 14 shouldBe("document.externalScriptHasRun", "undefined"); | 14 shouldBe("document.externalScriptHasRun", "undefined"); |
| 15 shouldBe("document.corsExternalScriptHasRun", "undefined"); | 15 shouldBe("document.corsExternalScriptHasRun", "undefined"); |
| 16 shouldBeTrue("document.corsExternalScriptForLocalhostHasRun"); | 16 shouldBeTrue("document.corsExternalScriptForLocalhostHasRun"); |
| 17 finishJSTest(); | 17 finishJSTest(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 // This should be called run-check.js | 20 // This should be called run-check.js |
| 21 function check() | 21 function check() |
| 22 { | 22 { |
| 23 testAndDone(); | 23 testAndDone(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 <script src="/js-test-resources/js-test-post.js"></script> | |
| 28 </body> | 27 </body> |
| 29 </html> | 28 </html> |
| OLD | NEW |