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

Side by Side Diff: LayoutTests/fast/canvas/resources/repaint.js

Issue 196353013: Convert some repaint tests to not call display() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations, remove do-not-repaint tricky test Created 6 years, 9 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 if (window.testRunner)
2 testRunner.waitUntilDone();
3
1 function runRepaintTest() 4 function runRepaintTest()
2 { 5 {
3 if (window.testRunner) { 6 window.requestAnimationFrame(function() {
4 document.body.offsetTop; 7 window.setTimeout(function() {
5 testRunner.display(); 8 repaintTest();
6 repaintTest(); 9 if (window.testRunner)
7 } else { 10 testRunner.notifyDone();
8 setTimeout(repaintTest, 100); 11 }, 0);
9 } 12 });
10 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698