4 <p>Test that a script element with a crossorigin attribute (pre)loads a cross-origin script correctly.
</p>
9 <!-- This script should preload using CORS. -->
10 <script crossorigin
src=
"http://localhost:8000/security/resources/cors-script.php?cors=true&value=PASS"></script>
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
14 testRunner
.waitUntilDone();
18 document
.querySelector("pre").innerHTML
= result
;
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
22 window
.onload
= loaded
;