Update scroll position immediately after resizing view
[framework/web/webkit-efl.git] / LayoutTests / printing / page-count-with-one-word.html
1 <html>
2 <body>
3 <pre id="console">
4 test
5 </pre>
6 <script>
7 if (window.testRunner) {
8     testRunner.dumpAsText();
9
10     var msg = 'A page with only one line should be printed in one page.\n';
11     var pass = true;
12
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 = testRunner.numberOfPages(i, j);
17
18             if (numberOfPages != 1) {
19                 pass = false;
20                 msg += 'width=' + i + ', height=' + j + ': numberOfPages=' + numberOfPages + ' FAIL\n';
21             }
22         }
23     }
24     msg += (pass ? 'PASS' : 'FAIL');
25     document.querySelector('#console').textContent = msg;
26 }
27 </script>
28 </body>
29 </html>