OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-display.js"></script> |
2 <style> | 3 <style> |
3 .container { | 4 .container { |
4 width: 100px; | 5 width: 100px; |
5 height:100px; | 6 height:100px; |
6 position:absolute; | 7 position:absolute; |
7 -webkit-transform:translateZ(0); | 8 -webkit-transform:translateZ(0); |
8 overflow:auto; | 9 overflow:auto; |
9 } | 10 } |
10 | 11 |
11 .content { | 12 .content { |
(...skipping 30 matching lines...) Expand all Loading... |
42 <div class="content"></div> | 43 <div class="content"></div> |
43 </div> | 44 </div> |
44 <script> | 45 <script> |
45 function finishTest() { | 46 function finishTest() { |
46 document.getElementById("vertical").classList.add("tall"); // topmost div ge
ts a vertical scrollbar | 47 document.getElementById("vertical").classList.add("tall"); // topmost div ge
ts a vertical scrollbar |
47 document.getElementById("horizontal").classList.add("wide"); // second div g
ets a horizontal scrollbar | 48 document.getElementById("horizontal").classList.add("wide"); // second div g
ets a horizontal scrollbar |
48 document.getElementById("both").classList.add("wide"); // third div gets bot
h | 49 document.getElementById("both").classList.add("wide"); // third div gets bot
h |
49 document.getElementById("both").classList.add("tall"); // vertical and horiz
ontal scrollbars | 50 document.getElementById("both").classList.add("tall"); // vertical and horiz
ontal scrollbars |
50 document.getElementById("corner").classList.add("resizeWidget"); // bottom d
iv gets a resize corner but no scrollbars | 51 document.getElementById("corner").classList.add("resizeWidget"); // bottom d
iv gets a resize corner but no scrollbars |
51 if (window.testRunner) { | 52 if (window.testRunner) { |
52 testRunner.display(); // Ensure compositor tree is up to date. | |
53 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); | 53 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); |
| 54 testRunner.notifyDone(); |
54 } | 55 } |
55 } | 56 } |
56 | 57 |
57 if (window.testRunner) { | 58 if (window.testRunner) { |
58 testRunner.dumpAsText(); | 59 testRunner.dumpAsText(); |
59 testRunner.display(); // Force compositor state to be updated before the con
tainer needs any overflow controls | 60 testRunner.waitUntilDone(); |
60 finishTest(); | 61 } |
61 } else | 62 |
62 window.setTimeout(finishTest, 0); | 63 runAfterDisplay(finishTest); |
63 </script> | 64 </script> |
OLD | NEW |