OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <body> |
| 4 <p>Test that a script element with a crossorigin attribute (pre)loads a cross-or
igin script correctly.</p> |
| 5 <pre></pre> |
| 6 <script> |
| 7 var result = "FAIL"; |
| 8 </script> |
| 9 <!-- This script should preload using CORS. --> |
| 10 <script crossorigin src="http://localhost:8000/security/resources/cors-script.ph
p?cors=true&value=PASS"></script> |
| 11 <script> |
| 12 if (window.testRunner) { |
| 13 testRunner.dumpAsText(); |
| 14 testRunner.waitUntilDone(); |
| 15 } |
| 16 |
| 17 function loaded() { |
| 18 document.querySelector("pre").innerHTML = result; |
| 19 if (window.testRunner) |
| 20 testRunner.notifyDone(); |
| 21 } |
| 22 window.onload = loaded; |
| 23 </script> |
| 24 </body> |
| 25 </html> |
OLD | NEW |