summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html
blob: 23a472f7b4e84dc3b63463734f9f0a20ea22dc75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE>
<html>
<head>
  <meta charset="utf-8">
  <title>Various zoomToFocusedInput tests</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

var subtests = [
  {"file": "helper_zoomToFocusedInput_scroll.html"},
  {"file": "helper_zoomToFocusedInput_multiline.html"},
  {"file": "helper_zoomToFocusedInput_iframe.html"},
  {"file": "helper_zoomToFocusedInput_iframe.html?cross-origin"},
  {"file": "helper_zoomToFocusedInput_iframe-2.html",
   "prefs": [["dom.meta-viewport.enabled", true],
             ["layout.scroll.disable-pixel-alignment", true]]},
  {"file": "helper_zoomToFocusedInput_fixed_bug1673511.html"},
  {"file": "helper_zoomToFocusedInput_nozoom_bug1738696.html"},
  {"file": "helper_zoomToFocusedInput_nested_position_fixed.html"},
  {"file": "helper_zoomToFocusedInput_zoom_in_position_fixed.html",
   "prefs": [["dom.meta-viewport.enabled", true], ["formhelper.autozoom", true]],
  },
];

// These tests rely on mobile viewport sizing, so only run them on
// mobile for now. In the future we can consider running them on
// on desktop, but only in configurations with overlay scrollbars
// (see bug 1608506).
let platform = getPlatform();
if (platform == "android") {
  subtests.push(
    {"file": "helper_zoomToFocusedInput_nozoom.html"}
  );
  subtests.push(
    {"file": "helper_zoomToFocusedInput_zoom.html"}
  );
  subtests.push(
    {"file": "helper_zoomToFocusedInput_touch-action.html"}
  );
  subtests.push(
    {"file": "helper_zoomToFocusedInput_dynamic_toolbar_bug1828235.html"}
  );
}

if (isApzEnabled()) {
  SimpleTest.waitForExplicitFinish();
  window.onload = function() {
    runSubtestsSeriallyInFreshWindows(subtests)
    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
  };
}

  </script>
</head>
<body>
</body>
</html>