Index: LayoutTests/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html |
diff --git a/LayoutTests/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html b/LayoutTests/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html |
index bdca89f180e312a1cbe60490d5a1fce4ca55ae11..213a63fa6dc5cd96e66039461f1e1ea684e2ec86 100644 |
--- a/LayoutTests/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html |
+++ b/LayoutTests/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html |
@@ -7,6 +7,7 @@ |
If this test succeeds, you should not see the focus ring in the scrolled |
contents. |
--> |
+ <script src="../../resources/run-after-display.js"></script> |
<script type="text/javascript" charset="utf-8"> |
if (window.testRunner) |
window.testRunner.dumpAsTextWithPixelResults(); |
@@ -27,9 +28,7 @@ |
var textarea = document.getElementById('text'); |
textarea.focus(); |
textarea.selectionStart = textarea.selectionEnd = 0; |
- if (window.testRunner) |
- window.testRunner.display(); |
- window.setTimeout(endTest, 100); |
+ runAfterDisplay(endTest); |
} |
window.addEventListener('load', doTest, false); |