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

Unified Diff: LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html

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
Index: LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html
diff --git a/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html b/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html
index ae6e14ca147d50186e62749f3f056fa93bc7e03c..45a8f0053f3e959e1380461157eb35bee496da65 100644
--- a/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html
+++ b/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html
@@ -1,5 +1,6 @@
<html>
<head>
+ <script src="../../../resources/run-after-display.js"></script>
<style>
body {
height: 1000px;
@@ -31,12 +32,12 @@
function doTest()
{
- if (window.testRunner)
- testRunner.display();
- // Scroll red box off screen and scroll green box into same place.
- window.scrollTo(0, 400);
- if (window.testRunner)
- testRunner.notifyDone();
+ runAfterDisplay(function() {
+ // Scroll red box off screen and scroll green box into same place.
+ window.scrollTo(0, 400);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
window.addEventListener('load', doTest, false);

Powered by Google App Engine
This is Rietveld 408576698