chromium/third_party/blink/web_tests/http/tests/security/script-onerror-no-crossorigin-cors.html

<!DOCTYPE html>
<head>
</head>
<body>
    <script src="/js-test-resources/js-test.js"></script>
    <script>
        window.jsTestIsAsync = true;
        description("The test passes if 'window.onerror' gets sanitized information about an exception thrown in a script loaded without a 'crossorigin' attribute, and delivered with valid CORS headers.");

        window.onerror = function(msg, url, line, column, error) {
            window.msg = msg;
            window.url = url;
            window.line = line;
            window.column = column;
            window.errorObject = error;
            shouldBeEqualToString("msg", "Script error.");
            shouldBeEqualToString("url", "");
            shouldBe("line", "0");
            shouldBe("column", "0");
            shouldBeNull("window.errorObject");
            finishJSTest();
        }
    </script>
    <script src="http://localhost:8000/security/resources/cors-script.php?fail=true&cors=true"></script>
</body>
</html>