Index: LayoutTests/css3/filters/filter-repaint-shadow.html |
diff --git a/LayoutTests/css3/filters/filter-repaint-shadow.html b/LayoutTests/css3/filters/filter-repaint-shadow.html |
index 734cf827d9ae2e67bb1a6a64a27257f062ba8c2a..e0724265133c711f4f1830d5e33b1690cb841165 100644 |
--- a/LayoutTests/css3/filters/filter-repaint-shadow.html |
+++ b/LayoutTests/css3/filters/filter-repaint-shadow.html |
@@ -23,19 +23,25 @@ |
} |
</style> |
- <script src="../../fast/repaint/resources/repaint.js"></script> |
+ <script src="../../resources/run-after-display.js"></script> |
<script> |
- if (window.testRunner) |
+ if (window.testRunner) { |
testRunner.dumpAsTextWithPixelResults(); |
+ testRunner.waitUntilDone(); |
+ } |
function repaintTest() |
{ |
- document.querySelector(".before").classList.remove("before"); |
+ runAfterDisplay(function() { |
+ document.querySelector(".before").classList.remove("before"); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |
-<body onload="runRepaintTest()"> |
+<body onload="repaintTest()"> |
<div class="shadow"> |
<div class="box"></div> |