summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html')
-rw-r--r--gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html b/gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html
new file mode 100644
index 0000000000..72fd9dcc11
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/test_group_zoomToFocusedInput.html
@@ -0,0 +1,49 @@
+<!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_fixed_bug1673511.html"},
+ {"file": "helper_zoomToFocusedInput_nozoom_bug1738696.html"},
+];
+
+// 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"}
+ );
+}
+
+if (isApzEnabled()) {
+ SimpleTest.waitForExplicitFinish();
+ window.onload = function() {
+ runSubtestsSeriallyInFreshWindows(subtests)
+ .then(SimpleTest.finish, SimpleTest.finishWithFailure);
+ };
+}
+
+ </script>
+</head>
+<body>
+</body>
+</html>