OLD | NEW |
1 <head> | 1 <head> |
2 <meta name="viewport" content="width=device-width, user-scalable=yes, maximu
m-scale=3, minimum-scale=1"> | 2 <meta name="viewport" content="width=device-width, user-scalable=yes, maximu
m-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 true/.test(viewportConfiguation)) | 8 if (/userScalable true/.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();"> |
OLD | NEW |