Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / script-crossorigin-loads-cross-origin-preload.html
blob0a4545f7816c6d4a3998413a2f513308b52c777b
1 <!doctype html>
2 <html>
3 <body>
4 <p>Test that a script element with a crossorigin attribute (pre)loads a cross-origin 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.php?cors=true&value=PASS"></script>
11 <script>
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
17 function loaded() {
18 document.querySelector("pre").innerHTML = result;
19 if (window.testRunner)
20 testRunner.notifyDone();
22 window.onload = loaded;
23 </script>
24 </body>
25 </html>