Index: LayoutTests/css3/filters/filter-repaint-shadow-clipped.html |
diff --git a/LayoutTests/css3/filters/filter-repaint-shadow-clipped.html b/LayoutTests/css3/filters/filter-repaint-shadow-clipped.html |
index f84b390d9c0efb181d5d523892a1312958505f84..37de6c64821db00f2fcaa486b7c0e75a7bd26f61 100644 |
--- a/LayoutTests/css3/filters/filter-repaint-shadow-clipped.html |
+++ b/LayoutTests/css3/filters/filter-repaint-shadow-clipped.html |
@@ -14,17 +14,17 @@ |
overflow: hidden; |
background: red; |
} |
- |
+ |
.empty_box { |
height: 50px; |
} |
- |
+ |
.box { |
height: 100px; |
width: 100px; |
background-color: green; |
} |
- |
+ |
.before { |
background-color: transparent; |
} |
@@ -34,20 +34,23 @@ |
} |
</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="clipping_box"> |
<div class="blur"> |
<div class="empty_box"></div> |