OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="/js-test-resources/js-test.js"></script> |
| 5 <script> |
| 6 description("Test that re-inserting a CORS-loading stylesheet is correctly handl
ed.") |
| 7 |
| 8 function onLoad(event) { |
| 9 testFailed("non-CORS stylesheet loaded(no assert)"); |
| 10 finishJSTest(); |
| 11 } |
| 12 function onError(event) { |
| 13 testPassed("non-CORS stylesheet loaded with error(no assert)"); |
| 14 finishJSTest(); |
| 15 } |
| 16 </script> |
| 17 <script src="resources/link-crossorigin-common.js"></script> |
| 18 </head> |
| 19 <body> |
| 20 <div id="div1"></div> |
| 21 <div id="div2"></div> |
| 22 <link id="link1" crossorigin="use-credentials" rel="stylesheet" href="http://127
.0.0.1:8080/resources/slow-script.pl?delay=100" onload="onLoad(event)" onerror="
onError(event)"> |
| 23 <script> |
| 24 function runTest() |
| 25 { |
| 26 var div1 = document.getElementById("div1"); |
| 27 var div2 = document.getElementById("div2"); |
| 28 var link1 = document.getElementById("link1"); |
| 29 |
| 30 div1.appendChild(link1); |
| 31 div2.appendChild(link1); |
| 32 } |
| 33 window.onload = runTest; |
| 34 </script> |
| 35 </body> |
| 36 </html> |
OLD | NEW |