Index: LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html |
diff --git a/LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html b/LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html |
index d59ecd571377034e71b040df496141ffb5a0771e..9326e11c66849f29e1c06db0df8c529e52d4ec92 100644 |
--- a/LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html |
+++ b/LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html |
@@ -2,6 +2,7 @@ |
<html> |
<head> |
+<script src="../../resources/run-after-display.js"></script> |
<style> |
.fixedContainer { |
@@ -23,8 +24,10 @@ |
</style> |
<script> |
- if (window.testRunner) |
+ if (window.testRunner) { |
testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+ } |
if (window.internals) { |
/* Note carefully, compositing for fixed position is _disabled_ here */ |
@@ -34,15 +37,18 @@ |
function test() |
{ |
- testRunner.display(); |
+ runAfterDisplay(function() { |
+ if (window.internals) |
+ window.internals.startTrackingRepaints(document); |
- if (window.internals) |
- window.internals.startTrackingRepaints(document); |
+ window.scrollTo(0, 100); |
- window.scrollTo(0, 100); |
+ if (window.internals) |
+ document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
- if (window.internals) |
- document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
</script> |
</head> |