OLD | NEW |
1 // Asynchronous tests should manually call finishPaintInvalidationTest at the ap
propriate time. | 1 // Asynchronous tests should manually call finishPaintInvalidationTest at the ap
propriate time. |
2 window.testIsAsync = false; | 2 window.testIsAsync = false; |
3 | 3 |
4 // All paint invalidation tests are asynchronous from test-runner's point of vie
w. | 4 // All paint invalidation tests are asynchronous from test-runner's point of vie
w. |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 | 7 |
8 function runPaintInvalidationTest() | 8 function runPaintInvalidationTest() |
9 { | 9 { |
10 if (!window.testRunner || !window.internals) { | 10 if (!window.testRunner || !window.internals) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 testRunner.logToStderr(message); | 52 testRunner.logToStderr(message); |
53 while (document.body.firstChild) | 53 while (document.body.firstChild) |
54 document.body.removeChild(document.body.firstChild); | 54 document.body.removeChild(document.body.firstChild); |
55 var pre = document.createElement('pre'); | 55 var pre = document.createElement('pre'); |
56 pre.appendChild(document.createTextNode('(To copy results as text, s
ee stderr.)\n\n' + message)); | 56 pre.appendChild(document.createTextNode('(To copy results as text, s
ee stderr.)\n\n' + message)); |
57 document.body.appendChild(pre); | 57 document.body.appendChild(pre); |
58 } | 58 } |
59 testRunner.notifyDone(); | 59 testRunner.notifyDone(); |
60 }); | 60 }); |
61 } | 61 } |
62 | |
63 setTimeout(function() { | |
64 testRunner.notifyDone(); | |
65 }, 2000); | |
OLD | NEW |