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

Unified Diff: LayoutTests/fast/layers/nested-layers-1.html

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ditch fast/text/font-initial changes too Created 6 years, 10 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/nested-layers-1.html
diff --git a/LayoutTests/fast/layers/nested-layers-1.html b/LayoutTests/fast/layers/nested-layers-1.html
index 793525441eddb0960799e16f5e0f59827836723f..a3ee0e67004ffee563753a6144fdb0dc0fd4fe71 100644
--- a/LayoutTests/fast/layers/nested-layers-1.html
+++ b/LayoutTests/fast/layers/nested-layers-1.html
@@ -1,17 +1,15 @@
<!DOCTYPE html>
<html>
<head>
+<script src="../../resources/run-after-display.js"></script>
<script>
function test()
{
- document.body.offsetTop;
if (window.testRunner) {
- testRunner.display();
+ testRunner.waitUntilDone();
testRunner.dumpAsText();
- finish();
- } else {
- window.setTimeout(finish, 50);
}
+ runAfterDisplay(finish);
}
function finish()
@@ -19,6 +17,8 @@ function finish()
var innerLayer = document.getElementById('innerLayer');
innerLayer.style.left = '19px';
innerLayer.style.top = '23px';
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
<style>
« no previous file with comments | « LayoutTests/fast/images/animated-background-image-crash.html ('k') | LayoutTests/fast/layers/nested-layers-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698