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

Side by Side Diff: LayoutTests/fast/dom/beforeload/script-before-load-xhtml.xhtml

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 <?xml version="1.0" encoding="UTF-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <script src="resources/print.js"></script>
5 </head>
6
7 <body>
8 <p>This page tests the beforeload event on script elements. You should see a PA SS message below if everything
9 works.</p>
10 <hr/>
11 <div id="console"></div>
12
13 <script>
14 if (window.testRunner)
15 testRunner.dumpAsText();
16
17 function beforeLoadFunc()
18 {
19 print("PASS", "green");
20 event.preventDefault();
21 }
22
23 document.body.addEventListener("beforeload", beforeLoadFunc, true);
24 </script>
25 <script src="resources/fail.js"></script>
26
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698