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

Unified Diff: LayoutTests/fast/layers/add-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/add-layer-with-nested-stacking.html
diff --git a/LayoutTests/fast/layers/add-layer-with-nested-stacking.html b/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
index db5e6e96e797771d48ac7abcd0e6bc1955425079..375b69d4ee6b4c820619cd3d3c9b7d4bb74fc1f4 100644
--- a/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
+++ b/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
@@ -13,17 +13,13 @@
}
</style>
<div id="test" style="display: none"></div>
+<script src="../../resources/run-after-display.js"></script>
<script type="text/javascript">
- function test()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
document.getElementById("test").style.display = "block";
- }
-
- 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/frames/transparent-scrollbar.html ('k') | LayoutTests/fast/layers/inline-dirty-z-order-lists.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698