chromium/third_party/blink/web_tests/http/tests/security/script-crossorigin-loads-cross-origin-2.xhtml

<?xml version="1.0"?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>crossorigin and XHTML</title>
</head>
<body>
<p>In an XHTML document, test that a script element with a crossorigin attribute loads a cross-origin script correctly when the CORS check passes on the response.</p>
<pre></pre>
<script><![CDATA[
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

var result = "FAIL";
var have_reported = false;
function loaded() {
    if (!have_reported) {
        document.querySelector("pre").innerHTML = result;
        if (window.testRunner)
            testRunner.notifyDone();
        have_reported = true;
    }
}
]]></script>
<!-- This script should load -->
<script crossorigin="anonymous" src="http://localhost:8000/security/resources/cors-script.php?cors=true&amp;&amp;value=PASS"></script>
<script><![CDATA[loaded();]]></script>
</body>
</html>