Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / device-emulation / device-emulation-small-dw.html
blob218a3f2a67a1e4d0807eddef0de7af13f7920f64
1 <html>
2 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script src="device-emulation-test.js"></script>
8 <script>
9 // This test is based on http://jsbin.com/urowoh/latest.
10 setMetaViewport("w=dw");
11 </script>
13 <style>
14 html {
15 overflow-x: hidden;
18 body {
19 margin: 0;
20 min-height: 100px;
21 overflow: hidden;
23 </style>
25 <script>
26 function test()
28 InspectorTest.testDeviceEmulation("device-emulation-small-dw.html", 380, 420, 1, "w=dw", undefined, false);
30 </script>
32 </head>
33 <body onload="runTest()">
34 <p>
35 Tests that device emulation affects media rules, viewport meta tag, body dimensions and window.screen.
36 Emulating small device on a page with viewport "width=device-width" set should work without reload for page without scrollbar.
37 </p>
38 </body>
39 </html>