Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: LayoutTests/inspector/device-emulation/device-emulation-small-dw.html

Issue 1328553003: Store parsed meta viewport even when it's currently disabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698