OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 html { font-size: 16px; } | 3 html { font-size: 16px; } |
4 </style> | 4 </style> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script> | 6 <script> |
7 if (!window.eventSender) { | 7 if (!window.eventSender) { |
8 document.write("This test does not work in manual mode."); | 8 document.write("This test does not work in manual mode."); |
9 } else { | 9 } else { |
10 if (window.testRunner) | 10 if (window.testRunner) |
11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
12 | 12 |
13 // These media queries should be equivalent, since the documentElement | 13 // These media queries should be equivalent, since the documentElement |
14 // has font-size:16px, so 300px should equal 18.75em. They should both | 14 // has font-size:16px, so 300px should equal 18.75em. They should both |
15 // initially be false (as the layout test runner is 800px wide). | 15 // initially be false (as the layout test runner is 800px wide). |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 eventSender.zoomPageOut(); | 51 eventSender.zoomPageOut(); |
52 zoomLevel--; | 52 zoomLevel--; |
53 | 53 |
54 shouldBeFalse( | 54 shouldBeFalse( |
55 'matchMedia("(max-width: 300px)").matches'); | 55 'matchMedia("(max-width: 300px)").matches'); |
56 shouldBeFalse( | 56 shouldBeFalse( |
57 'matchMedia("(max-width: 18.75em)").matches'); | 57 'matchMedia("(max-width: 18.75em)").matches'); |
58 } | 58 } |
59 } | 59 } |
60 </script> | 60 </script> |
OLD | NEW |