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

Unified Diff: LayoutTests/fast/viewport/viewport-enabled.html

Issue 22747002: setViewportEnabled on InternalSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac compile issue: removed unused member variable Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/viewport/viewport-enabled-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/viewport/viewport-enabled.html
diff --git a/LayoutTests/fast/viewport/viewport-enabled.html b/LayoutTests/fast/viewport/viewport-enabled.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6d43a3234f2aa310c0f5cd97fc89678cabceb23
--- /dev/null
+++ b/LayoutTests/fast/viewport/viewport-enabled.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>Check that internal.settings.setViewportEnabled works</title>
+<meta name="viewport" content="width=320">
+<script>
+ if (window.testRunner && window.internals) {
+ testRunner.dumpAsText();
+
+ document.write("Width with viewport disabled. (should be 800): " + document.documentElement.offsetWidth + "<br>");
+
+ testRunner.enableFixedLayoutMode(true);
+ internals.settings.setViewportEnabled(true);
+
+ document.write("Width from meta viewport (should be 320): " + document.documentElement.offsetWidth);
+ } else {
+ document.write("This test must be run within the Blink testing framework as it tests a feature only enabled for test runs.");
+ }
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/viewport/viewport-enabled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698