[WPE] run-qt-wpe-minibrowser needlessly expects a --wpe argument
[WebKit-https.git] / LayoutTests / fast / viewport / ios / ipad / viewport-overriden-by-minimum-effective-width-if-ignore-meta-viewport.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ shouldIgnoreMetaViewport=true ] -->
2 <html>
3 <head>
4     <style>
5         #square {
6             position: absolute;
7             width: 10vw;
8             height: 10vh;
9             border: 2px solid black;
10         }
11
12         #output {
13             width: 100%;
14             height: 100%;
15             overflow: scroll;
16         }
17
18         body {
19             margin: 0;
20             width: 100%;
21             height: 100%;
22         }
23     </style>
24     <script src="../../../../resources/ui-helper.js"></script>
25     <script>
26     if (window.testRunner) {
27         testRunner.dumpAsText();
28         testRunner.waitUntilDone();
29     }
30
31     async function runTest() {
32         const appendOutput = message => {
33             output.appendChild(document.createTextNode(message));
34             output.appendChild(document.createElement("br"));
35         };
36
37         for (let targetMinimumEffectiveWidth of [640, 768, 834, 980, 1024, 1112, 1280, 1336]) {
38             appendOutput(`setMinimumEffectiveWidth(${targetMinimumEffectiveWidth.toFixed(2)})`);
39
40             await UIHelper.setMinimumEffectiveWidth(targetMinimumEffectiveWidth);
41             await Promise.all([UIHelper.ensureVisibleContentRectUpdate(), UIHelper.ensurePresentationUpdate()]);
42             appendOutput(`window size: [${innerWidth}, ${innerHeight}]`);
43             appendOutput(`square size: [${square.clientWidth}, ${square.clientHeight}]`);
44             appendOutput(`zoom scale: ${(await UIHelper.zoomScale()).toFixed(2)}`);
45             appendOutput("");
46         }
47
48         testRunner.notifyDone();
49     }
50     </script>
51 </head>
52
53 <body onload="runTest()">
54     <div id="square"></div>
55     <pre id="output"></pre>
56 </body>
57 </html>