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

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

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Just delete an svg crash test 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-2.html
diff --git a/LayoutTests/fast/layers/nested-layers-2.html b/LayoutTests/fast/layers/nested-layers-2.html
index c2e4e15ada48df111f29a37853874edf2ee2bdc9..9db3c6587e1fda1ef4782f16d9292839b7507a87 100644
--- a/LayoutTests/fast/layers/nested-layers-2.html
+++ b/LayoutTests/fast/layers/nested-layers-2.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>

Powered by Google App Engine
This is Rietveld 408576698