Index: LayoutTests/compositing/repaint/requires-backing-repaint.html |
diff --git a/LayoutTests/compositing/repaint/requires-backing-repaint.html b/LayoutTests/compositing/repaint/requires-backing-repaint.html |
index 7663c53f6daaef869196cfda27547d538941d84c..bac588d4c2aeb7381130ed98039d9c8e605bc18e 100644 |
--- a/LayoutTests/compositing/repaint/requires-backing-repaint.html |
+++ b/LayoutTests/compositing/repaint/requires-backing-repaint.html |
@@ -2,6 +2,7 @@ |
<html> |
<head> |
+ <script src="../../resources/run-after-display.js"></script> |
<style> |
.bar { |
width: 200px; |
@@ -42,14 +43,11 @@ |
var overflow = document.getElementById('overflow'); |
overflow.scrollTop = 50; |
- if (window.testRunner) |
- testRunner.display(); |
- |
- window.setTimeout(function() { |
+ runAfterDisplay(function() { |
overflow.scrollTop = 75; |
if (window.testRunner) |
testRunner.notifyDone(); |
- }, 0) |
+ }); |
} |
window.addEventListener('load', doTest, false); |
</script> |