OLD | NEW |
1 var testSizes = [ | 1 var testSizes = [ |
2 { width: 600, height: 500 }, // initial size | 2 { width: 600, height: 500 }, // initial size |
3 { width: 600, height: 250 }, // height decrease | 3 { width: 600, height: 250 }, // height decrease |
4 { width: 400, height: 250 }, // width decrease | 4 { width: 400, height: 250 }, // width decrease |
5 { width: 400, height: 600 }, // height increase | 5 { width: 400, height: 600 }, // height increase |
6 { width: 800, height: 600 } // width increase | 6 { width: 800, height: 600 } // width increase |
7 ]; | 7 ]; |
8 | 8 |
9 var sizeIndex = 0; | 9 var sizeIndex = 0; |
10 var repaintRects = ""; | 10 var repaintRects = ""; |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 if (window.testRunner) { | 33 if (window.testRunner) { |
34 testRunner.useUnfortunateSynchronousResizeMode(); | 34 testRunner.useUnfortunateSynchronousResizeMode(); |
35 testRunner.waitUntilDone(); | 35 testRunner.waitUntilDone(); |
36 onload = function() { | 36 onload = function() { |
37 window.resizeTo(testSizes[0].width, testSizes[0].height); | 37 window.resizeTo(testSizes[0].width, testSizes[0].height); |
38 testRunner.layoutAndPaintAsyncThen(doTest); | 38 testRunner.layoutAndPaintAsyncThen(doTest); |
39 }; | 39 }; |
40 } | 40 } |
OLD | NEW |