7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
10 var msg
= 'A page with only one line should be printed in one page.\n';
13 // Test the range around A4 portrait paper size
14 for (var i
= 530; i
< 560; i
++) {
15 for (var j
= 730; j
< 760; j
++) {
16 var numberOfPages
= internals
.numberOfPages(i
, j
);
18 if (numberOfPages
!= 1) {
20 msg
+= 'width=' + i
+ ', height=' + j
+ ': numberOfPages=' + numberOfPages
+ ' FAIL\n';
24 msg
+= (pass
? 'PASS' : 'FAIL');
25 document
.querySelector('#console').textContent
= msg
;