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

Unified Diff: LayoutTests/fast/frames/transparent-scrollbar.html

Issue 196573042: Remove display() from more layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations Created 6 years, 9 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/frames/transparent-scrollbar.html
diff --git a/LayoutTests/fast/frames/transparent-scrollbar.html b/LayoutTests/fast/frames/transparent-scrollbar.html
index 51a3d21e0d7a1f97b8b5552b36a238389eca02e0..28bf481f627ef98837b6cbe41e6c03e44ddb3612 100644
--- a/LayoutTests/fast/frames/transparent-scrollbar.html
+++ b/LayoutTests/fast/frames/transparent-scrollbar.html
@@ -17,22 +17,20 @@ body {
}
</style>
+<script src="../../resources/run-after-display.js"></script>
<script>
function test()
{
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsTextWithPixelResults();
- testRunner.display();
}
-
- window.setTimeout(function() {
+ runAfterDisplay(function() {
document.body.scrollTop = 2000;
if (window.testRunner) {
- testRunner.display();
testRunner.notifyDone();
}
- }, 0);
+ });
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698