OLD | NEW |
1 <p> | 1 <p> |
2 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=16490">http://bu
gs.webkit.org/show_bug.cgi?id=16490</a> | 2 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=16490">http://bu
gs.webkit.org/show_bug.cgi?id=16490</a> |
3 ASSERT in ~FrameView while viewing/reloading WICD test case</i>. | 3 ASSERT in ~FrameView while viewing/reloading WICD test case</i>. |
4 </p> | 4 </p> |
5 <div> | 5 <div> |
6 <iframe onload="test()" style="width: 100%;" src="resources/paused-event-dis
patch-iframe.html"></iframe> | 6 <iframe onload="test()" style="width: 100%;" src="resources/paused-event-dis
patch-iframe.html"></iframe> |
7 </div> | 7 </div> |
8 <div id="bottomBox" style="position: absolute; left: 0; top: 5000px; height: 10p
x; width: 10px;"></div> | 8 <div id="bottomBox" style="position: absolute; left: 0; top: 5000px; height: 10p
x; width: 10px;"></div> |
9 <div style="height: 100px; width: 100px; overflow: auto;" id="overflow"> | 9 <div style="height: 100px; width: 100px; overflow: auto;" id="overflow"> |
10 <div style="height: 200px;" id="tallBox"></div> | 10 <div style="height: 200px;" id="tallBox"></div> |
11 </div> | 11 </div> |
12 <div id="result">FAIL</div> | 12 <div id="result">FAIL</div> |
13 <script> | 13 <script> |
14 function overflowChanged() | 14 function overflowChanged() |
15 { | 15 { |
16 document.getElementById("result").innerText = "PASS"; | 16 document.getElementById("result").innerText = "PASS"; |
17 } | 17 } |
18 | 18 |
19 function test() | 19 function test() |
20 { | 20 { |
| 21 if (window.layoutTestController) |
| 22 layoutTestController.waitUntilDone(); |
| 23 |
21 document.body.offsetTop; | 24 document.body.offsetTop; |
22 var bottomBox = document.getElementById("bottomBox"); | 25 var bottomBox = document.getElementById("bottomBox"); |
23 bottomBox.parentNode.removeChild(bottomBox); | 26 bottomBox.parentNode.removeChild(bottomBox); |
24 document.addEventListener("overflowchanged", overflowChanged, true, true
); | 27 document.addEventListener("overflowchanged", overflowChanged, true, true
); |
25 } | 28 } |
26 | 29 |
27 function iframeResized() | 30 function iframeResized() |
28 { | 31 { |
29 document.body.appendChild(document.createElement("div")); | 32 document.body.appendChild(document.createElement("div")); |
30 if (window.layoutTestController) { | 33 if (window.layoutTestController) |
31 layoutTestController.waitUntilDone(); | |
32 layoutTestController.dumpAsText(); | 34 layoutTestController.dumpAsText(); |
33 } | 35 |
34 setTimeout(finish, 0); | 36 setTimeout(finish, 0); |
35 } | 37 } |
36 | 38 |
37 function finish() | 39 function finish() |
38 { | 40 { |
39 document.getElementById("tallBox").style.height = "50px"; | 41 document.getElementById("tallBox").style.height = "50px"; |
40 if (window.layoutTestController) | 42 if (window.layoutTestController) |
41 layoutTestController.notifyDone(); | 43 layoutTestController.notifyDone(); |
42 } | 44 } |
43 </script> | 45 </script> |
OLD | NEW |