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

Side by Side Diff: LayoutTests/scrollbars/resources/hidden-iframe-scrollbar-crash2.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 <html>
2 <body><p>
3 This is some text to force a scrollbar to appear.
4 This is some text to force a scrollbar to appear.
5 This is some text to force a scrollbar to appear.
6 </p>
7 <img id="i" onbeforeload="beforeload()" onload="pass()">
8 </body>
9 <script>
10 function beforeload()
11 {
12 setTimeout(function() {
13 var win = window.parent;
14 win.document.getElementById("iframe").style.display = "none";
15 });
16 return true;
17 }
18
19 function pass()
20 {
21 var win = window.parent;
22 win.document.getElementById("iframe").style.display = "";
23 win.document.body.appendChild(document.createTextNode("PASSED"));
24 if (window.testRunner)
25 testRunner.notifyDone();
26 }
27 </script>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698