Index: LayoutTests/fast/table/border-collapsing/cached-change-table-border-width.html |
diff --git a/LayoutTests/fast/table/border-collapsing/cached-change-table-border-width.html b/LayoutTests/fast/table/border-collapsing/cached-change-table-border-width.html |
index 31e6b1d62e41c82d8ee7723ee4bc2c9c19b5fc6a..ff4904ed9e4c9629767027447411f712c51df610 100644 |
--- a/LayoutTests/fast/table/border-collapsing/cached-change-table-border-width.html |
+++ b/LayoutTests/fast/table/border-collapsing/cached-change-table-border-width.html |
@@ -6,12 +6,16 @@ Here we change table 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("tbl").style.borderWidth = "4px"; |
+ testRunner.waitUntilDone(); |
+ runAfterDisplay(function() { |
+ document.getElementById("tbl").style.borderWidth = "4px"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |