| <html> |
| <head> |
| |
| <script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> |
| <script src="device-emulation-test.js"></script> |
| |
| <script> |
| // This test is based on http://jsbin.com/urowoh/latest. |
| setMetaViewport(); |
| </script> |
| |
| <style> |
| html { |
| overflow-x: hidden; |
| } |
| |
| body { |
| margin: 0; |
| min-height: 1000px; |
| overflow-x: hidden; |
| } |
| </style> |
| |
| <script> |
| function test() |
| { |
| InspectorTest.testDeviceEmulation("device-emulation-small.html", 380, 420, 1, "none"); |
| } |
| </script> |
| |
| </head> |
| <body onload="runTest()"> |
| <p> |
| Tests that device emulation affects media rules, viewport meta tag, body dimensions and window.screen. |
| Emulating small device on a page without viewport set should take UA viewport settings into account. |
| </p> |
| </body> |
| </html> |