Index: LayoutTests/inspector/device-emulation/device-emulation-small-dw.html |
diff --git a/LayoutTests/inspector/device-emulation/device-emulation-980-2x.html b/LayoutTests/inspector/device-emulation/device-emulation-small-dw.html |
similarity index 64% |
copy from LayoutTests/inspector/device-emulation/device-emulation-980-2x.html |
copy to LayoutTests/inspector/device-emulation/device-emulation-small-dw.html |
index 6972e926120243165cdb51ef9dff9cd06fe7568b..218a3f2a67a1e4d0807eddef0de7af13f7920f64 100644 |
--- a/LayoutTests/inspector/device-emulation/device-emulation-980-2x.html |
+++ b/LayoutTests/inspector/device-emulation/device-emulation-small-dw.html |
@@ -7,7 +7,7 @@ |
<script> |
// This test is based on http://jsbin.com/urowoh/latest. |
-setMetaViewport(); |
+setMetaViewport("w=dw"); |
</script> |
<style> |
@@ -17,15 +17,15 @@ html { |
body { |
margin: 0; |
- min-height: 1000px; |
- overflow-x: hidden; |
+ min-height: 100px; |
+ overflow: hidden; |
} |
</style> |
<script> |
function test() |
{ |
- InspectorTest.testDeviceEmulation("device-emulation-980-2x.html", 1200, 1000, 2, "w=980"); |
+ InspectorTest.testDeviceEmulation("device-emulation-small-dw.html", 380, 420, 1, "w=dw", undefined, false); |
} |
</script> |
@@ -33,6 +33,7 @@ function test() |
<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 with viewport "width=device-width" set should work without reload for page without scrollbar. |
</p> |
</body> |
</html> |