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

Unified Diff: LayoutTests/fast/repaint/resources/display-then-call.js

Issue 942963002: Need to invalidate scrollbars in case they get repositioned. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review - override final Created 5 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
Index: LayoutTests/fast/repaint/resources/display-then-call.js
diff --git a/LayoutTests/fast/repaint/resources/display-then-call.js b/LayoutTests/fast/repaint/resources/display-then-call.js
new file mode 100644
index 0000000000000000000000000000000000000000..2cbbd3def3e6afe0388db26cc356a084ab434f5d
--- /dev/null
+++ b/LayoutTests/fast/repaint/resources/display-then-call.js
@@ -0,0 +1,9 @@
+function displayThenCall(callback)
+{
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.displayAsyncThen(function() { callback(); testRunner.notifyDone(); });
+ } else {
+ setTimeout(callback, 500);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698