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

Unified Diff: LayoutTests/resources/run-after-display.js

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/compositing/video-page-visibility.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/resources/run-after-display.js
diff --git a/LayoutTests/resources/run-after-display.js b/LayoutTests/resources/run-after-display.js
new file mode 100644
index 0000000000000000000000000000000000000000..c42de0fa4429b14fb6bc2605a6222e445fd95ea7
--- /dev/null
+++ b/LayoutTests/resources/run-after-display.js
@@ -0,0 +1,8 @@
+function runAfterDisplay(callback) {
+ window.requestAnimationFrame(function() {
+ // At this point, only the animate has happened, but no compositing
+ // or layout. Use a timeout for the callback so that notifyDone
+ // can be called inside of it.
+ window.setTimeout(callback, 0);
+ });
+}
« no previous file with comments | « LayoutTests/compositing/video-page-visibility.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698