Skip to content

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

30 lines (26 sloc) 0.728 kb
<html>
<body>
<pre id="console">
test
</pre>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
var msg = 'A page with only one line should be printed in one page.\n';
var pass = true;
// Test the range around A4 portrait paper size
for (var i = 530; i < 560; i++) {
for (var j = 730; j < 760; j++) {
var numberOfPages = internals.numberOfPages(i, j);
if (numberOfPages != 1) {
pass = false;
msg += 'width=' + i + ', height=' + j + ': numberOfPages=' + numberOfPages + ' FAIL\n';
}
}
}
msg += (pass ? 'PASS' : 'FAIL');
document.querySelector('#console').textContent = msg;
}
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.