| <p>Tiles when window is visible:</p> |
| <pre id="visibleResult"></pre> |
| <p>Tiles when window is not visible:</p> |
| <pre id="nonVisibleResult"></pre> |
| <div style="height: 3000px; width: 3000px"></div> |
| testRunner.waitUntilDone(); |
| internals.setSpeculativeTilingDelayDisabledForTesting(true); |
| document.getElementById("visibleResult").innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES); |
| document.onvisibilitychange = function() { |
| document.getElementById("nonVisibleResult").innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES); |
| testRunner.resetPageVisibility(); |
| internals.setSpeculativeTilingDelayDisabledForTesting(false); |
| testRunner.setPageVisibility("hidden"); |