| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></s
cript> | 4 <script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></s
cript> |
| 5 <script src="device-emulation-test.js"></script> | 5 <script src="device-emulation-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 // This test is based on http://jsbin.com/urowoh/latest. | 8 // This test is based on http://jsbin.com/urowoh/latest. |
| 9 setMetaViewport(); | 9 setMetaViewport(); |
| 10 </script> | 10 </script> |
| 11 | 11 |
| 12 <style> | 12 <style> |
| 13 html { | 13 html { |
| 14 overflow-x: hidden; | 14 overflow-x: hidden; |
| 15 } | 15 } |
| 16 | 16 |
| 17 body { | 17 body { |
| 18 margin: 0; | 18 margin: 0; |
| 19 min-height: 1000px; | 19 min-height: 1000px; |
| 20 overflow-x: hidden; | 20 overflow-x: hidden; |
| 21 } | 21 } |
| 22 </style> | 22 </style> |
| 23 | 23 |
| 24 <script> | 24 <script> |
| 25 function test() | 25 function test() |
| 26 { | 26 { |
| 27 InspectorTest.testDeviceEmulation("device-emulation-320-only-viewport.html",
0, 0, 0, "w=320"); | 27 InspectorTest.testDeviceEmulation("device-emulation-controls.html", 800, 600
, 1, "none"); |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 | 30 |
| 31 </head> | 31 </head> |
| 32 <body onload="runTest()"> | 32 <body onload="runTest()"> |
| 33 <p> | 33 <p> |
| 34 Tests that device emulation affects media rules, viewport meta tag, body dimensi
ons and window.screen. | 34 Tests that form controls are rendered with correct theme. See crbug.com/591315. |
| 35 </p> | 35 </p> |
| 36 <form> |
| 37 <input type="radio" class="device-emulation-measure">Radio<br> |
| 38 <input type="checkbox" class="device-emulation-measure">Checkbox<br> |
| 39 </form> |
| 36 </body> | 40 </body> |
| 37 </html> | 41 </html> |
| OLD | NEW |