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

Side by Side Diff: LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale.html

Issue 23101004: Make configurationForViewport match production code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed configurationForViewport to viewportAsText 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
OLDNEW
1 <head> 1 <head>
2 <meta name="viewport" content="width=device-width, user-scalable=no, maximum -scale=3, minimum-scale=1"> 2 <meta name="viewport" content="width=device-width, user-scalable=no, maximum -scale=3, minimum-scale=1">
3 <script> 3 <script>
4 function test() { 4 function test() {
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 var viewportConfiguation = internals.configurationForViewport(do cument, 1, 320, 480, 320, 352); 7 var viewportConfiguation = internals.viewportAsText(document, 1, 320, 352);
8 if (/userScalable false/.test(viewportConfiguation)) 8 if (/userScalable false/.test(viewportConfiguation))
9 alert("PASS"); 9 alert("PASS");
10 else 10 else
11 alert("FAIL: " + viewportConfiguation); 11 alert("FAIL: " + viewportConfiguation);
12 } 12 }
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body onload="test();"> 16 <body onload="test();">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698