Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: LayoutTests/paint/invalidation/spv2/resources/paint-invalidation-test.js

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698