Index: LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html |
diff --git a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html b/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html |
index 7d8706178398835037b5902201847d18127b0369..1c15ef7cb00c905a40420aeaa531d282f6906ca3 100644 |
--- a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html |
+++ b/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html |
@@ -50,33 +50,21 @@ div:hover { |
} |
</style> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
<script> |
if (window.internals) |
internals.settings.setLayerSquashingEnabled(true); |
- if (window.testRunner) |
- testRunner.dumpAsText(); |
- function runTest() |
+ function repaintTest() |
{ |
- if (!window.internals) |
- return; |
- document.body.offsetTop; |
- window.internals.startTrackingRepaints(document); |
document.getElementById('repaintdiv').style.background = 'salmon'; |
- document.getElementById('testResults').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
- window.internals.stopTrackingRepaints(document); |
- |
- // Display the test results only after test is done so that it does not affect repaint rect results. |
- document.getElementById('testResults').style.display = "block"; |
} |
+ runRepaintTest(); |
</script> |
</head> |
-<body onload="runTest()"> |
+<body> |
<div class="composited box behind"></div> |
<div class="box middle"></div> |
<img id="repaintdiv" class="repaintdiv"></img> |
<div class="box top"></div> |
- |
- <pre id="testResults" style="display:none"> |
- </div> |
</body> |