| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Test CSSOM View module: Media interface</title> | 3 <title>Test CSSOM View module: Media interface</title> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 | 5 |
| 6 </style> | 6 </style> |
| 7 <script type="text/javascript" charset="utf-8"> | 7 <script type="text/javascript" charset="utf-8"> |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 function runTests() | 26 function runTests() |
| 27 { | 27 { |
| 28 testQuery('screen', true); | 28 testQuery('screen', true); |
| 29 testQuery('projection', false); | 29 testQuery('projection', false); |
| 30 | 30 |
| 31 testQuery('all and (color)', true); | 31 testQuery('all and (color)', true); |
| 32 testQuery('not projection and (color)', true); | 32 testQuery('not projection and (color)', true); |
| 33 testQuery('(color)', true); | 33 testQuery('(color)', true); |
| 34 testQuery('(color', false); | 34 testQuery('(color', true); |
| 35 testQuery('color', false); | 35 testQuery('color', false); |
| 36 | 36 |
| 37 testQuery('garbage', false); | 37 testQuery('garbage', false); |
| 38 | 38 |
| 39 testQuery('(min-device-width: 100px)', true); | 39 testQuery('(min-device-width: 100px)', true); |
| 40 testQuery('(min-device-width: 50000px)', false); | 40 testQuery('(min-device-width: 50000px)', false); |
| 41 | 41 |
| 42 testQuery('(-webkit-animation: 1)', true); | 42 testQuery('(-webkit-animation: 1)', true); |
| 43 testQuery('(-webkit-transform-2d)', true); | 43 testQuery('(-webkit-transform-2d)', true); |
| 44 } | 44 } |
| 45 | 45 |
| 46 </script> | 46 </script> |
| 47 </head> | 47 </head> |
| 48 <body onload="runTests()"> | 48 <body onload="runTests()"> |
| 49 <p>Test the media interface: <a href="http://dev.w3.org/csswg/cssom-view/#the-
media-interface" title="CSSOM View Module">http://dev.w3.org/csswg/cssom-view/#t
he-media-interface</a>.</p> | 49 <p>Test the media interface: <a href="http://dev.w3.org/csswg/cssom-view/#the-
media-interface" title="CSSOM View Module">http://dev.w3.org/csswg/cssom-view/#t
he-media-interface</a>.</p> |
| 50 <div id="results"> | 50 <div id="results"> |
| 51 | 51 |
| 52 </div> | 52 </div> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |