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(); | |
10 </script> | |
11 | |
12 <style> | |
13 html { | |
14 overflow-x: hidden; | |
15 } | |
16 | |
17 body { | |
18 margin: 0; | |
19 min-height: 1000px; | |
20 overflow-x: hidden; | |
21 } | |
22 </style> | |
23 | |
24 <script> | |
25 function test() | |
26 { | |
27 InspectorTest.testDeviceEmulation("device-emulation-insets.html", 1200, 1000
, 1, "none", {left: 10, top: 20, right: 30, bottom: 40}); | |
28 } | |
29 </script> | |
30 | |
31 </head> | |
32 <body onload="runTest()"> | |
33 <p> | |
34 Tests that device emulation with insets affects window.screenWidth, window.scree
nHeight, screen.width and screen.height. | |
35 </p> | |
36 </body> | |
37 </html> | |
OLD | NEW |