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

Unified Diff: LayoutTests/fast/layers/remove-layer-with-nested-stacking.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/layers/remove-layer-with-nested-stacking.html
diff --git a/LayoutTests/fast/layers/remove-layer-with-nested-stacking.html b/LayoutTests/fast/layers/remove-layer-with-nested-stacking.html
index aad78d76c1f7e657fb3a8c909bbb3e310dd8278e..a7906fd4513deccb791d8560a9c780970d9cd9e6 100644
--- a/LayoutTests/fast/layers/remove-layer-with-nested-stacking.html
+++ b/LayoutTests/fast/layers/remove-layer-with-nested-stacking.html
@@ -5,17 +5,13 @@ The square should be a uniform shade of green.
<span style="display: inline-block; width: 100px; height: 50px; background-color: green; opacity: 0.5;"></span>
</div>
</span>
+<script src="../../resources/run-after-display.js"></script>
<script>
- function test()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
document.getElementById("inner").style.float = "none";
- }
-
- if (!window.testRunner)
- setTimeout(test, 0);
- else {
- document.body.offsetTop;
- testRunner.display();
- test();
- }
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
</script>
« no previous file with comments | « LayoutTests/fast/layers/layer-content-visibility-change.html ('k') | LayoutTests/fast/reflections/inline-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698