17 lines
589 B
HTML
17 lines
589 B
HTML
<head>
|
|
<meta name="viewport" content="width=device-width, user-scalable=yes, maximum-scale=3, minimum-scale=1">
|
|
<script>
|
|
function test() {
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
var viewportConfiguation = internals.configurationForViewport(1, 320, 480, 320, 352);
|
|
if (/userScalable true/.test(viewportConfiguation))
|
|
alert("PASS");
|
|
else
|
|
alert("FAIL: " + viewportConfiguation);
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="test();">
|