| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <script> |
| async function doTest() |
| { |
| if (!window.testRunner || !window.internals) |
| return; |
| |
| testRunner.waitUntilDone(); |
| testRunner.dumpAsText(); |
| internals.disableTileSizeUpdateDelay(); |
| await testRunner.setObscuredContentInsets(100, 0, 0, 0); |
| |
| document.getElementById('layers').innerText = internals.layerTreeAsText(document, |
| internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES); |
| |
| testRunner.notifyDone(); |
| } |
| window.addEventListener('load', doTest, false); |
| </script> |
| </head> |
| <body> |
| This test applies a content inset and then dumps the layer tree including visible rects. The visible rects should match the expected rects. |
| <pre id="layers">Layer tree goes here</p> |
| </body> |
| </html> |