| 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/resources/inspector-protocol-te
st.js"></script> |
| 5 <script src="device-emulation-test.js"></script> | 5 <script src="../resources/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("w=dw"); | 9 setMetaViewport("w=dw"); |
| 10 </script> | 10 </script> |
| 11 | 11 |
| 12 <style> | 12 <style> |
| 13 html { | 13 html { |
| 14 overflow-x: hidden; | 14 overflow-x: hidden; |
| 15 } | 15 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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 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. | 35 Emulating small device on a page with viewport "width=device-width" set should w
ork without reload for page without scrollbar. |
| 36 </p> | 36 </p> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |