| OLD | NEW |
| 1 // Asynchronous tests should manually call finishRepaintTest at the appropriate | 1 // Asynchronous tests should manually call finishRepaintTest at the appropriate |
| 2 // time. | 2 // time. |
| 3 window.testIsAsync = false; | 3 window.testIsAsync = false; |
| 4 window.outputRepaintRects = true; | 4 window.outputRepaintRects = true; |
| 5 window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' b
elow. | 5 window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' b
elow. |
| 6 | 6 |
| 7 // All repaint tests are asynchronous. | 7 // All repaint tests are asynchronous. |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
| 10 | 10 |
| 11 if (window.internals) | 11 if (window.internals) { |
| 12 internals.settings.setUseDefaultImageInterpolationQuality(true); | 12 internals.settings.setUseDefaultImageInterpolationQuality(true); |
| 13 // TODO(wangxianzhu): Some spv2 tests crash with under-invalidation-checking |
| 14 // because the extra display items between Subsequence/EndSubsequence for |
| 15 // under-invalidation checking breaks paint chunks. Should fix this when fix
ing |
| 16 // crbug.com/596983. |
| 17 if (!internals.runtimeFlags.slimmingPaintV2Enabled) |
| 18 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = t
rue; |
| 19 } |
| 13 | 20 |
| 14 function runRepaintTest() | 21 function runRepaintTest() |
| 15 { | 22 { |
| 16 if (!window.testRunner || !window.internals) { | 23 if (!window.testRunner || !window.internals) { |
| 17 setTimeout(repaintTest, 500); | 24 setTimeout(repaintTest, 500); |
| 18 return; | 25 return; |
| 19 } | 26 } |
| 20 | 27 |
| 21 if (window.enablePixelTesting) | 28 if (window.enablePixelTesting) |
| 22 testRunner.dumpAsTextWithPixelResults(); | 29 testRunner.dumpAsTextWithPixelResults(); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } else { | 191 } else { |
| 185 var newRect = [xBegin, y, xWidth, 1]; | 192 var newRect = [xBegin, y, xWidth, 1]; |
| 186 nextRectsMayContinue.push(newRect); | 193 nextRectsMayContinue.push(newRect); |
| 187 result.push(newRect); | 194 result.push(newRect); |
| 188 } | 195 } |
| 189 } | 196 } |
| 190 rectsMayContinue = nextRectsMayContinue; | 197 rectsMayContinue = nextRectsMayContinue; |
| 191 } | 198 } |
| 192 return result; | 199 return result; |
| 193 } | 200 } |
| OLD | NEW |