dglazkov@chromium.org | 66e1a3a | 2011-03-25 17:49:11 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style type="text/css"> |
| 4 | |
| 5 | p { |
| 6 | font-size: xx-large; |
| 7 | width: 1000px; |
| 8 | height: 100px; |
| 9 | } |
| 10 | |
| 11 | </style> |
| 12 | <script type="text/javascript"> |
| 13 | |
| 14 | function runTest() |
| 15 | { |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame] | 16 | if (!window.testRunner) |
dglazkov@chromium.org | 66e1a3a | 2011-03-25 17:49:11 +0000 | [diff] [blame] | 17 | return; |
| 18 | |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame] | 19 | testRunner.dumpAsText(); |
dglazkov@chromium.org | 66e1a3a | 2011-03-25 17:49:11 +0000 | [diff] [blame] | 20 | var lines = [ 'line<br>' ]; |
| 21 | for (var i = 0; i < 7; i++) |
| 22 | lines = lines.concat(lines); |
| 23 | document.body.innerHTML = '<p>' + lines.join('') + '</p>'; |
kaustubh@motorola.com | 478c509 | 2012-09-05 11:36:03 +0000 | [diff] [blame] | 24 | document.body.textContent = 'When printing, layout overflow must be cleared after current document size is queried: ' + (internals.numberOfPages() > 1 ? 'PASS' : 'FAIL'); |
dglazkov@chromium.org | 66e1a3a | 2011-03-25 17:49:11 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | </script> |
| 28 | <head> |
| 29 | <body onload="runTest()"> |
rniwa@webkit.org | 5cf7fa8 | 2012-06-15 07:38:37 +0000 | [diff] [blame] | 30 | This test needs window.testRunner to run. |
dglazkov@chromium.org | 66e1a3a | 2011-03-25 17:49:11 +0000 | [diff] [blame] | 31 | </body> |
| 32 | </html> |