Index: LayoutTests/fast/layers/nested-layers-4.html |
diff --git a/LayoutTests/fast/layers/nested-layers-4.html b/LayoutTests/fast/layers/nested-layers-4.html |
index cbec37569370deef57464c2a9d31e50a1b763978..e4061fbc25d4d22e388b3f31fae85b0131996b5a 100644 |
--- a/LayoutTests/fast/layers/nested-layers-4.html |
+++ b/LayoutTests/fast/layers/nested-layers-4.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> |