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

Side by Side Diff: LayoutTests/fast/replaced/frame-removed-during-resize-smaller.html

Issue 6592044: Merge 79606 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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
OLDNEW
1 <script> 1 <script>
2 if (window.layoutTestController) 2 if (window.layoutTestController)
3 { 3 {
4 layoutTestController.dumpAsText(); 4 layoutTestController.dumpAsText();
5 layoutTestController.waitUntilDone(); 5 layoutTestController.waitUntilDone();
6 } 6 }
7 7
8 function iframeLoaded() 8 function iframeLoaded()
9 { 9 {
10 var result = document.getElementById("result"); 10 var result = document.getElementById("result");
11 var iframe = document.getElementById("target"); 11 var iframe = document.getElementById("target");
12 iframe.contentWindow.addEventListener("resize", function(event) { 12 iframe.contentWindow.addEventListener("resize", function(event) {
13 iframe.parentNode.removeChild(iframe); 13 iframe.parentNode.removeChild(iframe);
14 result.innerHTML = "COMPLETE"; 14 result.innerHTML = "COMPLETE";
15 if (window.layoutTestController) 15 if (window.layoutTestController)
16 layoutTestController.notifyDone(); 16 layoutTestController.notifyDone();
17 }, false); 17 }, false);
18 iframe.offsetTop; 18 iframe.offsetTop;
19 iframe.style.height = "100px"; 19 iframe.style.height = "100px";
20 result.innerHTML = "STILL RUNNING"; 20 result.innerHTML = "STILL RUNNING";
21 } 21 }
22 </script> 22 </script>
23 <p> 23 <p>
24 Test order of frame's resize handler when we remove the frame during a resiz ing of the frame to a small size. 24 Test order of frame's resize handler when we remove the frame during a resiz ing of the frame to a small size.
25 </p> 25 </p>
26 <div id="result">UNKNOWN</div> 26 <div id="result">UNKNOWN</div>
27 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe> 27 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698