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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/viewport/viewport-enabled-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Check that internal.settings.setViewportEnabled works</title>
3 <meta name="viewport" content="width=320">
4 <script>
5 if (window.testRunner && window.internals) {
6 testRunner.dumpAsText();
7
8 document.write("Width with viewport disabled. (should be 800): " + docum ent.documentElement.offsetWidth + "<br>");
9
10 testRunner.enableFixedLayoutMode(true);
11 internals.settings.setViewportEnabled(true);
12
13 document.write("Width from meta viewport (should be 320): " + document.d ocumentElement.offsetWidth);
14 } else {
15 document.write("This test must be run within the Blink testing framework as it tests a feature only enabled for test runs.");
16 }
17 </script>
OLDNEW
« 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