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

Side by Side Diff: LayoutTests/resources/run-after-display.js

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 function runAfterDisplay(callback) { 1 function runAfterDisplay(callback) {
2 window.requestAnimationFrame(function() { 2 window.requestAnimationFrame(function() {
3 // At this point, only the animate has happened, but no compositing 3 // At this point, only the animate has happened, but no compositing
4 // or layout. Use a timeout for the callback so that notifyDone 4 // or layout. Use a timeout for the callback so that notifyDone
5 // can be called inside of it. 5 // can be called inside of it.
6 window.setTimeout(callback, 0); 6 // FIXME: we need a better way of waiting for chromium events to happen
7 window.setTimeout(callback, 1);
7 }); 8 });
8 } 9 }
OLDNEW
« no previous file with comments | « LayoutTests/resources/js-test.js ('k') | LayoutTests/svg/animations/reinserting-svg-into-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698