Index: LayoutTests/svg/custom/pending-resource-after-removal.xhtml |
diff --git a/LayoutTests/svg/custom/pending-resource-after-removal.xhtml b/LayoutTests/svg/custom/pending-resource-after-removal.xhtml |
index 9100804228ade013e35d1ba5fe06b59ef8523c28..ce5bc231f72f249df7fa7bb97449db09c9421af0 100644 |
--- a/LayoutTests/svg/custom/pending-resource-after-removal.xhtml |
+++ b/LayoutTests/svg/custom/pending-resource-after-removal.xhtml |
@@ -4,6 +4,7 @@ |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script src="../../resources/run-after-display.js"></script> |
<title>The rectangle should be green.</title></head> |
<script> |
window.testIsAsync = true; |
@@ -48,7 +49,7 @@ function updateFill() { |
function repaintTest() { |
updateFill(); |
- setTimeout("updateFill()", 0); |
+ runAfterDisplay(updateFill); |
} |
</script> |
<body onload="runRepaintAndPixelTest()"> |