Index: LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html |
diff --git a/LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html b/LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html |
index 9f8cb9adec203d83bf7f31fcdeb1628cd71aa091..83a958ccd86b03a9e2b719c68150516248d20dc4 100644 |
--- a/LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html |
+++ b/LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html |
@@ -6,12 +6,16 @@ Here we change tbody border width, expect that cache is invalidated and paint pr |
<head> |
<title></title> |
<link rel="stylesheet" href="resources/cached.css"> |
+ <script src="../../../resources/run-after-display.js"></script> |
<script type="text/javascript"> |
function test() { |
- document.body.offsetTop; |
if (window.testRunner) |
- testRunner.display(); |
- document.getElementById("tbody").style.borderWidth = "4px"; |
+ testRunner.waitUntilDone(); |
+ runAfterDisplay(function() { |
+ document.getElementById("tbody").style.borderWidth = "4px"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |