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

Unified Diff: LayoutTests/fast/layers/inline-dirty-z-order-lists.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/inline-dirty-z-order-lists.html
diff --git a/LayoutTests/fast/layers/inline-dirty-z-order-lists.html b/LayoutTests/fast/layers/inline-dirty-z-order-lists.html
index aa0317525b5af994c28cdb592067efcbba2233df..5e22db08976c4db123c61132b0a7eb116ba99720 100644
--- a/LayoutTests/fast/layers/inline-dirty-z-order-lists.html
+++ b/LayoutTests/fast/layers/inline-dirty-z-order-lists.html
@@ -9,17 +9,14 @@
<div id="inner" style="position: absolute; height: 50px; width: 50px; background-color: blue;">
</div>
</span>
+<script src="../../resources/run-after-display.js"></script>
<script>
- function test()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
document.getElementById("outer").style.removeProperty("z-index");
document.getElementById("inner").style.display = "none";
- }
-
- if (window.testRunner) {
- document.body.offsetTop;
- testRunner.display();
- test();
- } else
- setTimeout(test, 0);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
</script>

Powered by Google App Engine
This is Rietveld 408576698