Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 var testSizes = [ | 1 var testSizes = [ |
| 2 { width: 200, height: 200 }, // initial size | 2 { width: 200, height: 200 }, // initial size |
| 3 { width: 200, height: 300 }, // height increase | 3 { width: 200, height: 300 }, // height increase |
| 4 { width: 300, height: 300 }, // width increase | 4 { width: 300, height: 300 }, // width increase |
| 5 { width: 300, height: 250 }, // height decrease | 5 { width: 300, height: 250 }, // height decrease |
| 6 { width: 250, height: 250 } // width decrease | 6 { width: 250, height: 250 } // width decrease |
| 7 // Tests can add more testSizes. | 7 // Tests can add more testSizes. |
| 8 ]; | 8 ]; |
| 9 | 9 |
| 10 var sizeIndex = 0; | 10 var sizeIndex = 0; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 | 24 |
| 25 window.onload = function() { | 25 window.onload = function() { |
| 26 window.resizeTo(testSizes[0].width, testSizes[0].height); | 26 window.resizeTo(testSizes[0].width, testSizes[0].height); |
| 27 | 27 |
| 28 var repaintRects = ""; | 28 var repaintRects = ""; |
| 29 for (sizeIndex = 1; sizeIndex < testSizes.length; ++sizeIndex) { | 29 for (sizeIndex = 1; sizeIndex < testSizes.length; ++sizeIndex) { |
| 30 document.body.offsetTop; | 30 document.body.offsetTop; |
| 31 internals.startTrackingRepaints(document); | 31 internals.startTrackingRepaints(document); |
| 32 repaintTest(); | 32 repaintTest(); |
| 33 document.body.offsetTop; | 33 document.body.offsetTop; |
| 34 repaintRects += internals.layerTreeAsText(document, window.internals .LAYER_TREE_INCLUDES_REPAINT_RECTS); | 34 repaintRects += internals.layerTreeAsText(document, window.internals .LAYER_TREE_INCLUDES_REPAINT_RECTS | window.internals.LAYER_TREE_INCLUDES_PAINT_ INVALIDATION_OBJECTS); |
|
chrishtr
2015/03/18 19:30:05
But it doesn't affect any tests?
Xianzhu
2015/03/18 19:36:28
Yes. I'm running trybots to show the expectation c
| |
| 35 internals.stopTrackingRepaints(document); | 35 internals.stopTrackingRepaints(document); |
| 36 } | 36 } |
| 37 testRunner.setCustomTextOutput(repaintRects); | 37 testRunner.setCustomTextOutput(repaintRects); |
| 38 } | 38 } |
| 39 } | 39 } |
| OLD | NEW |