| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <script src="../../http/tests/inspector-protocol/resources/inspector-protocol-te
st.js"></script> | |
| 5 <script src="../resources/device-emulation-test.js"></script> | |
| 6 | |
| 7 <script> | |
| 8 // This test is based on http://jsbin.com/urowoh/latest. | |
| 9 setMetaViewport("w=dw"); | |
| 10 </script> | |
| 11 | |
| 12 <style> | |
| 13 html { | |
| 14 overflow-x: hidden; | |
| 15 } | |
| 16 | |
| 17 body { | |
| 18 margin: 0; | |
| 19 min-height: 100px; | |
| 20 overflow: hidden; | |
| 21 } | |
| 22 </style> | |
| 23 | |
| 24 <script> | |
| 25 function test() | |
| 26 { | |
| 27 InspectorTest.testDeviceEmulation("device-emulation-small-dw.html", 380, 420
, 1, "w=dw", undefined, false); | |
| 28 } | |
| 29 </script> | |
| 30 | |
| 31 </head> | |
| 32 <body onload="runTest()"> | |
| 33 <p> | |
| 34 Tests that device emulation affects media rules, viewport meta tag, body dimensi
ons and window.screen. | |
| 35 Emulating small device on a page with viewport "width=device-width" set should w
ork without reload for page without scrollbar. | |
| 36 </p> | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |