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

Unified Diff: LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html

Issue 196653012: Remove display() from compositing/ LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: softwarecompositing 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/compositing/iframes/resources/fixed-position-transformed-subframe.html
diff --git a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
index 28bf41973c6d2626a6094e1110016c13f97c185d..8ee97a3a56a8bb2a36d2c1a4a92f967909bd8227 100644
--- a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
+++ b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
@@ -29,6 +29,7 @@
-webkit-perspective: 1px;
}
</style>
+ <script src="../../../resources/run-after-display.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
@@ -37,11 +38,15 @@
function doTest()
{
if (window.testRunner)
- testRunner.display();
-
- // Any scroll should keep the fixed-position element where it is.
- // If it stutters or disappears incorrectly, then the red background will be revealed.
- window.scrollTo(0, 150);
+ testRunner.waitUntilDone();
+
+ runAfterDisplay(function() {
+ // Any scroll should keep the fixed-position element where it is.
+ // If it stutters or disappears incorrectly, then the red background will be revealed.
+ window.scrollTo(0, 150);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
window.addEventListener('load', doTest, false);
« no previous file with comments | « LayoutTests/compositing/iframes/iframe-content-flipping.html ('k') | LayoutTests/compositing/plugins/invalidate_rect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698