<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body onload="loaded()">
<script>
    window.jsTestIsAsync = true;
    function loaded() {
        let script = document.createElement("script");
        script.src = "script-tests/not-found.js";
        script.addEventListener('error', function () {
            document.write("<script>finishJSTest()<\/script>");
        }, false);
        document.body.appendChild(script);
    }
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>
