Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html b/LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html
index c7507be605f29a3cd5f9ec237667e75eeb2287ab..1eff70ba72233e842a1361d4f2d98d9bf2e4acdc 100644
--- a/LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html
+++ b/LayoutTests/fast/dom/HTMLScriptElement/dont-load-unknown-type.html
@@ -14,9 +14,7 @@
var bogus_script = document.createElement("script");
bogus_script.type = "bogus";
bogus_script.src = "shouldnotexecute.js";
- bogus_script.addEventListener("beforeload", function() { fail('beforeload called on dynamic script that won\'t be loaded'); }, false);
document.getElementsByTagName("head")[0].appendChild(bogus_script);
</script>
<script type="fake" src="shouldnotexecute.js"></script>
-<script type="dummy" src="shouldnotexecute.js" onbeforeload="fail('beforeload called on parser inserted script that won\'t be loaded');"></script>
Unknown script types should not be loaded nor executed. If this test fails, an extra line will appear in the output with the script's MIME type.

Powered by Google App Engine
This is Rietveld 408576698