Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (33 sloc) 0.924 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<html>
<body>
<pre id="console">
test
</pre>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();

    var msg = 'Document zoom should not apply when printing.';
    var pass = true;
    
    // Determine minium page size height where text fits on a single page.
    var height;
    for (var i = 10; i < 100; i += 5) {
        if (internals.numberOfPages(100, i) == 1) {
            height = i;
            break;
        }
    }
    
    // Zoom in and verify that page count does not change.
    for (var i = 0; i < 10; i++) {
        var numberOfPages = internals.numberOfPages(100, height);
        if (numberOfPages != 1) {
            pass = false;
            msg += 'Got ' + numberOfPages + ' pages, expected 1 page.\n';
        }
        eventSender.zoomPageIn();
    }

    msg = (pass ? 'PASS' : 'FAIL') + ' ' + msg;
    document.querySelector('#console').textContent = msg;
}
</script>
</body>
</html>
Something went wrong with that request. Please try again.