| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html id="html_element"> | 2 <html id="html_element"> |
| 3 <head id="head_element"> | 3 <head id="head_element"> |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description("This tests page style selection."); | 10 description("This tests page style selection."); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 shouldBeEqualToString("internals.pageProperty('size', 0)", "100 200"); | 89 shouldBeEqualToString("internals.pageProperty('size', 0)", "100 200"); |
| 90 appendStyle("@media print { @page { size:150px 250px; } }"); | 90 appendStyle("@media print { @page { size:150px 250px; } }"); |
| 91 shouldBeEqualToString("internals.pageProperty('size', 0)", "150 250"); | 91 shouldBeEqualToString("internals.pageProperty('size', 0)", "150 250"); |
| 92 appendStyle("@media screen { @page { size:300px 500px; } }"); | 92 appendStyle("@media screen { @page { size:300px 500px; } }"); |
| 93 shouldBeEqualToString("internals.pageProperty('size', 0)", "150 250"); | 93 shouldBeEqualToString("internals.pageProperty('size', 0)", "150 250"); |
| 94 | 94 |
| 95 } else { | 95 } else { |
| 96 testFailed("This test can be run only with window.testRunner"); | 96 testFailed("This test can be run only with window.testRunner"); |
| 97 } | 97 } |
| 98 </script> | 98 </script> |
| 99 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 100 </body> | 99 </body> |
| 101 </html> | 100 </html> |
| OLD | NEW |