summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_pointerevents.html')
-rw-r--r--gfx/layers/apz/test/mochitest/test_group_pointerevents.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_pointerevents.html b/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
new file mode 100644
index 0000000000..21fa4585de
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=1285070
+-->
+<head>
+ <meta charset="utf-8">
+ <title>Test for Bug 1285070</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">
+
+ let isWindows = navigator.platform.indexOf("Win") == 0;
+ let isMac = getPlatform() == "mac";
+ var touch_action_prefs = getPrefs("TOUCH_ACTION");
+ var subtests = [
+ {"file": "helper_bug1285070.html"},
+ {"file": "helper_bug1299195.html", "prefs": [["dom.meta-viewport.enabled", isMac]]},
+ {"file": "helper_bug1414336.html", "prefs": [["apz.test.fails_with_native_injection", isWindows]]},
+ {"file": "helper_bug1502010_unconsumed_pan.html"},
+ {"file": "helper_bug1544966_zoom_on_touch_action_none.html", "prefs": touch_action_prefs},
+ {"file": "helper_bug1648491_no_pointercancel_with_dtc.html", "prefs": touch_action_prefs},
+ {"file": "helper_bug1663731_no_pointercancel_on_second_touchstart.html",
+ "prefs": touch_action_prefs},
+ {"file": "helper_bug1682170_pointercancel_on_touchaction_pinchzoom.html",
+ "prefs": touch_action_prefs},
+ ];
+
+ if (isApzEnabled()) {
+ SimpleTest.waitForExplicitFinish();
+ window.onload = function() {
+ runSubtestsSeriallyInFreshWindows(subtests)
+ .then(SimpleTest.finish, SimpleTest.finishWithFailure);
+ };
+ }
+
+ </script>
+</head>
+<body>
+</body>
+</html>