| 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 function runRepaintTest() | 6 function runRepaintTest() |
| 7 { | 7 { |
| 8 if (!window.testRunner || !window.internals) { | 8 if (!window.testRunner || !window.internals) { |
| 9 setTimeout(repaintTest, 100); | 9 setTimeout(repaintTest, 500); |
| 10 return; | 10 return; |
| 11 } | 11 } |
| 12 | 12 |
| 13 // TODO(enne): this is a workaround for multiple svg onload events. | 13 // TODO(enne): this is a workaround for multiple svg onload events. |
| 14 // See: http://crbug.com/372946 | 14 // See: http://crbug.com/372946 |
| 15 if (window.hasRunRepaintTest) | 15 if (window.hasRunRepaintTest) |
| 16 return; | 16 return; |
| 17 window.hasRunRepaintTest = true; | 17 window.hasRunRepaintTest = true; |
| 18 | 18 |
| 19 if (window.enablePixelTesting) | 19 if (window.enablePixelTesting) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 if (window.outputRepaintRects) | 62 if (window.outputRepaintRects) |
| 63 testRunner.setCustomTextOutput(repaintRects); | 63 testRunner.setCustomTextOutput(repaintRects); |
| 64 | 64 |
| 65 if (window.afterTest) | 65 if (window.afterTest) |
| 66 window.afterTest(); | 66 window.afterTest(); |
| 67 | 67 |
| 68 // Play nice with async JS tests which want to notifyDone themselves. | 68 // Play nice with async JS tests which want to notifyDone themselves. |
| 69 if (!window.jsTestIsAsync) | 69 if (!window.jsTestIsAsync) |
| 70 testRunner.notifyDone(); | 70 testRunner.notifyDone(); |
| 71 } | 71 } |
| OLD | NEW |