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

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

Issue 48613005: Moved most viewport layout tests into a unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
(Empty)
1 <head>
2 <meta name="viewport" content="width=device-width, user-scalable=no, maximum -scale=3, minimum-scale=1">
3 <script>
4 function test() {
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 var viewportConfiguation = internals.viewportAsText(document, 1, 320, 352);
8 if (/userScalable false/.test(viewportConfiguation))
9 alert("PASS");
10 else
11 alert("FAIL: " + viewportConfiguation);
12 }
13 }
14 </script>
15 </head>
16 <body onload="test();">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698