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="../resources/js-test.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."); |
11 | 11 |
12 function appendStyle(styleString) | 12 function appendStyle(styleString) |
13 { | 13 { |
14 var styleElement = document.createElement("style"); | 14 var styleElement = document.createElement("style"); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 </body> | 99 </body> |
100 </html> | 100 </html> |
OLD | NEW |