| 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 | 5 |
| 6 // All repaint tests are asynchronous. | 6 // All repaint tests are asynchronous. |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
| 9 | 9 |
| 10 if (window.internals) { | 10 if (window.internals) { |
| 11 internals.settings.setUseDefaultImageInterpolationQuality(true); | 11 internals.settings.setUseDefaultImageInterpolationQuality(true); |
| 12 // TODO(wangxianzhu): Some spv2 tests crash with under-invalidation-checking | 12 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = true; |
| 13 // because the extra display items between Subsequence/EndSubsequence for | |
| 14 // under-invalidation checking breaks paint chunks. Should fix this when fix
ing | |
| 15 // crbug.com/596983. | |
| 16 if (!internals.runtimeFlags.slimmingPaintV2Enabled) | |
| 17 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = t
rue; | |
| 18 } | 13 } |
| 19 | 14 |
| 20 function runRepaintTest() | 15 function runRepaintTest() |
| 21 { | 16 { |
| 22 if (!window.testRunner || !window.internals) { | 17 if (!window.testRunner || !window.internals) { |
| 23 setTimeout(repaintTest, 500); | 18 setTimeout(repaintTest, 500); |
| 24 return; | 19 return; |
| 25 } | 20 } |
| 26 | 21 |
| 27 if (window.enablePixelTesting) | 22 if (window.enablePixelTesting) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 if (window.outputRepaintRects) | 70 if (window.outputRepaintRects) |
| 76 testRunner.setCustomTextOutput(repaintRects); | 71 testRunner.setCustomTextOutput(repaintRects); |
| 77 | 72 |
| 78 if (window.afterTest) | 73 if (window.afterTest) |
| 79 window.afterTest(); | 74 window.afterTest(); |
| 80 | 75 |
| 81 // Play nice with async JS tests which want to notifyDone themselves. | 76 // Play nice with async JS tests which want to notifyDone themselves. |
| 82 if (!window.jsTestIsAsync) | 77 if (!window.jsTestIsAsync) |
| 83 testRunner.notifyDone(); | 78 testRunner.notifyDone(); |
| 84 } | 79 } |
| OLD | NEW |