Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / zoomed-document.html
blob28e589cadd3fdc67f61a92af9e551295ec6d78cc
1 <html>
2 <body>
3 <pre id="console">
4 test
5 </pre>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
10 var msg = 'Document zoom should not apply when printing.';
11 var pass = true;
13 // Determine minium page size height where text fits on a single page.
14 var height;
15 for (var i = 10; i < 100; i += 5) {
16 if (internals.numberOfPages(100, i) == 1) {
17 height = i;
18 break;
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) {
26 pass = false;
27 msg += 'Got ' + numberOfPages + ' pages, expected 1 page.\n';
29 eventSender.zoomPageIn();
32 msg = (pass ? 'PASS' : 'FAIL') + ' ' + msg;
33 document.querySelector('#console').textContent = msg;
35 </script>
36 </body>
37 </html>