Index: LayoutTests/fast/repaint/box-inline-resize.html |
diff --git a/LayoutTests/fast/repaint/box-inline-resize.html b/LayoutTests/fast/repaint/box-inline-resize.html |
index 84de8b28b037462bb49bec32affabde375f5927f..95e4d7a85e3623e056347880dc5465ebfbda8b99 100644 |
--- a/LayoutTests/fast/repaint/box-inline-resize.html |
+++ b/LayoutTests/fast/repaint/box-inline-resize.html |
@@ -1,6 +1,7 @@ |
<!doctype html> |
<head> |
<script src="resources/text-based-repaint.js"></script> |
+ <script src="../../resources/run-after-display.js"></script> |
leviw_travelin_and_unemployed
2014/05/05 18:52:32
It's odd that this test change is included. At lea
dsinclair
2014/05/05 19:38:26
Removed, isn't relevant to this CL.
|
<style> |
#about-container { |
display: -webkit-box; |
@@ -12,17 +13,19 @@ |
} |
</style> |
<script type="text/javascript"> |
+ window.onload = runRepaintTest; |
window.testIsAsync = true; |
function repaintTest() { |
- setTimeout(function() { |
+ runAfterDisplay(function() { |
var i = document.getElementById('foo'); |
i.style.width = "32px"; |
i.style.height = "32px"; |
- finishRepaintTest(); |
- }, 50); |
+ |
+ if (window.testRunner) |
+ finishRepaintTest(); |
+ }); |
}; |
- onload = runRepaintTest; |
</script> |
</head> |