7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
10 var msg
= 'Document zoom should not apply when printing.';
13 // Determine minium page size height where text fits on a single page.
15 for (var i
= 10; i
< 100; i
+= 5) {
16 if (internals
.numberOfPages(100, i
) == 1) {
22 // Zoom in and verify that page count does not change.
23 for (var i
= 0; i
< 10; i
++) {
24 var numberOfPages
= internals
.numberOfPages(100, height
);
25 if (numberOfPages
!= 1) {
27 msg
+= 'Got ' + numberOfPages
+ ' pages, expected 1 page.\n';
29 eventSender
.zoomPageIn();
32 msg
= (pass
? 'PASS' : 'FAIL') + ' ' + msg
;
33 document
.querySelector('#console').textContent
= msg
;