45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
width: 1200px;
|
|
height: 2000px;
|
|
/* The setBackgroundShouldExtendBeyondPage setting will only create margin tiles for documents
|
|
that have background images. */
|
|
background-image:url(resources/greenbox.png);
|
|
background-repeat:repeat;
|
|
}
|
|
</style>
|
|
<script>
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.waitUntilDone();
|
|
}
|
|
|
|
function doTest()
|
|
{
|
|
if (window.internals)
|
|
window.internals.settings.setBackgroundShouldExtendBeyondPage(true);
|
|
|
|
// FrameView::enableSpeculativeTilingIfNeeded() uses a 0.5s timer to enable speculative tiling.
|
|
window.setTimeout(function() {
|
|
if (window.internals) {
|
|
document.getElementById('layers').innerText = internals.layerTreeAsText(document,
|
|
internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
|
|
}
|
|
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}, 550);
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<pre id="layers">Layer tree goes here</p>
|
|
</body>
|
|
</html>
|