| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 window.enablePixelTesting = true; |
| 6 function finishTest() { |
| 7 setTimeout(function() {testRunner.notifyDone();}, 0); |
| 8 } |
| 9 |
| 10 function scaleDown() { |
| 11 if (window.testRunner) { |
| 12 testRunner.setBackingScaleFactor(1, finishTest); |
| 13 } |
| 14 } |
| 15 function startTest() { |
| 16 testRunner.waitUntilDone(); |
| 17 if (window.testRunner) { |
| 18 testRunner.setBackingScaleFactor(3, scaleDown); |
| 19 } |
| 20 } |
| 21 |
| 22 window.addEventListener("load", startTest, false); |
| 23 </script> |
| 24 </head> |
| 25 <body> |
| 26 <div id="div" style="width:200px; height:120px; overflow:auto"> |
| 27 <br>This should be a scrollable text box with horizontal and vertical scroll. |
| 28 <div style="width:400px; height: 200px; background-color:red"></div> |
| 29 </div> |
| 30 </body> |
| 31 </html> |
| OLD | NEW |