blob: 323b8567d39c4e3f139be5336f7989b87786f402 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>"image/" MIME as script throws error when blocked.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
setup({single_test: true});
function scriptError() {
done();
}
function scriptLoad() {
assert_unreached('Script loaded.');
}
document.write('<script onload="scriptLoad()" onerror="scriptError()" src="/loading/resources/image2.png"><' + '/script>');
</script>
</body>
</html>