diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /gfx/layers/apz/test/mochitest/test_group_pointerevents.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_pointerevents.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/test_group_pointerevents.html | 43 |
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> |