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

Unified Diff: LayoutTests/fast/layers/layer-content-visibility-change.html

Issue 196573042: Remove display() from more layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove video-frame-size-change test 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/layer-content-visibility-change.html
diff --git a/LayoutTests/fast/layers/layer-content-visibility-change.html b/LayoutTests/fast/layers/layer-content-visibility-change.html
index 89d8be9201f0f3554bafabec5020c62d93a4e751..65acf97ef15e9d7dab0747357978e2d59a7d7c6f 100644
--- a/LayoutTests/fast/layers/layer-content-visibility-change.html
+++ b/LayoutTests/fast/layers/layer-content-visibility-change.html
@@ -4,15 +4,13 @@
<div id="inner" style="width: 100px; height: 100px; background-color: green;"></div>
</div>
</div>
+<script src="../../resources/run-after-display.js"></script>
<script>
- function test()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
document.getElementById("inner").style.visibility = "visible";
- }
- 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