| Index: LayoutTests/compositing/squashing/repaint-via-layout-offset.html
|
| diff --git a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html b/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
|
| index 7513114c7bc07f53c7d3eccf14ad3051f7c14bc2..0ef96112aa7dcd5284f4add93c0c0ccb291621b6 100644
|
| --- a/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
|
| +++ b/LayoutTests/compositing/squashing/repaint-via-layout-offset.html
|
| @@ -1,5 +1,5 @@
|
| <!DOCTYPE html>
|
| -<script src="../../resources/run-after-display.js"></script>
|
| +<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| <style>
|
| #container {
|
| position: absolute;
|
| @@ -26,29 +26,9 @@
|
| <span class="child"></span>
|
| <span class="child"></span>
|
| </div>
|
| -<pre></pre>
|
| <script>
|
| -if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| +function repaintTest() {
|
| + document.querySelectorAll('.child')[1].classList.add('embiggen');
|
| }
|
| -
|
| -runAfterDisplay(function() {
|
| - document.querySelectorAll('.child')[0].classList.add('embiggen')
|
| - runAfterDisplay(function() {
|
| - if (window.internals)
|
| - window.internals.startTrackingRepaints(document);
|
| -
|
| - document.querySelectorAll('.child')[1].classList.add('embiggen')
|
| -
|
| - if (window.internals) {
|
| - var layerTree = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
|
| - window.internals.stopTrackingRepaints(document);
|
| - document.querySelector('pre').textContent = layerTree;
|
| - }
|
| -
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| - });
|
| -});
|
| +runRepaintTest();
|
| </script>
|
|
|