Index: LayoutTests/fast/table/border-collapsing/cached-change-colgroup-border-width.html |
diff --git a/LayoutTests/fast/table/border-collapsing/cached-change-colgroup-border-width.html b/LayoutTests/fast/table/border-collapsing/cached-change-colgroup-border-width.html |
index 980e46c3d46b30de8139e37fd7fa5c7bd459254f..75d7423e138942a63569b657b957fc7dc00d04b8 100644 |
--- a/LayoutTests/fast/table/border-collapsing/cached-change-colgroup-border-width.html |
+++ b/LayoutTests/fast/table/border-collapsing/cached-change-colgroup-border-width.html |
@@ -6,12 +6,16 @@ Here we change colgroup border width, expect that cache is invalidated and paint |
<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("colgroup").style.borderWidth = "4px"; |
+ testRunner.waitUntilDone(); |
+ runAfterDisplay(function() { |
+ document.getElementById("colgroup").style.borderWidth = "4px"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |