summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/scroll-without-document-element.html
blob: ec8684365fff7dc56e8e8969dd31fee2d97af7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<script>
window.onload = function() {
    if (window.testRunner)
        window.testRunner.dumpAsText();

    while (document.firstChild)
        document.removeChild(document.firstChild);

    // Zoom so that the window becomes scrollable.
    if (window.internals)
        window.internals.setPageScaleFactor(2.0);
    window.scrollBy(0, 1);

    document.open();
    document.write('This test passes if it does not crash.');
    document.close();
}
</script>