Index: LayoutTests/fast/repaint/block-layout-inline-children-replaced.html |
diff --git a/LayoutTests/fast/repaint/block-layout-inline-children-replaced.html b/LayoutTests/fast/repaint/block-layout-inline-children-replaced.html |
index bb5c4893e9a3c41de341375217df51c14e5776fa..914f9142188bbd7d41903dfbc57c3127d4730ddc 100644 |
--- a/LayoutTests/fast/repaint/block-layout-inline-children-replaced.html |
+++ b/LayoutTests/fast/repaint/block-layout-inline-children-replaced.html |
@@ -11,15 +11,19 @@ |
</head> |
<body style="margin: 0;" onload="runRepaintTest()"> |
+ <script src="resources/text-based-repaint.js"></script> |
<script> |
+ window.testIsAsync = true; |
+ |
function repaintTest() |
{ |
- document.getElementById("target").innerHTML += |
+ var target = document.getElementById("target"); |
+ target.innerHTML += |
'<img style="height: 100px;" src="resources/apple.jpg" >'; |
+ target.firstChild.addEventListener("load", finishRepaintTest, false); |
} |
</script> |
- <script src="resources/text-based-repaint.js"></script> |
<p>This is a test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=40142">https://bugs.webkit.org/show_bug.cgi?id=40142</a></p> |