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

Side by Side Diff: LayoutTests/fast/dom/HTMLScriptElement/remove-in-beforeload.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <body onload="test()">
6 <div id="console"></div>
7 <script>
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.dumpAsText();
11 }
12
13 function test()
14 {
15 var s = document.createElement("script");
16 s.addEventListener("beforeload", function() {
17 document.body.removeChild(document.getElementsByTagName("script")[2]);
18 testPassed("");
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }, false);
22 s.addEventListener("error", function() {
23 testFailed("error event should not fire.")
24 }, false);
25 s.addEventListener("load", function() {
26 testFailed("load event should not fire.")
27 }, false);
28 s.src = "resources/shouldnotexecute.js";
29 document.body.appendChild(s);
30 }
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698