diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html b/gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html new file mode 100644 index 0000000000..2df4ee37b8 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/test_group_overscroll_handoff.html @@ -0,0 +1,46 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>Tests for overscroll handoff</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="application/javascript" src="apz_test_utils.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> + <script type="application/javascript"> + +var prefs = [ + // turn off smooth scrolling so that we don't have to wait for + // APZ animations to finish before sampling the scroll offset + ["general.smoothScroll", false], + ["apz.test.mac.synth_wheel_input", true], + // ensure that any mouse movement will trigger a new wheel transaction, + // because in this test we move the mouse a bunch and want to recalculate + // the target APZC after each such movement. + ["mousewheel.transaction.ignoremovedelay", 0], + ["mousewheel.transaction.timeout", 0], +]; + +var subtests = [ + {"file": "helper_position_fixed_scroll_handoff-1.html", prefs}, + {"file": "helper_position_fixed_scroll_handoff-2.html", prefs}, + {"file": "helper_position_fixed_scroll_handoff-3.html", prefs}, + {"file": "helper_position_fixed_scroll_handoff-4.html", prefs}, + {"file": "helper_position_fixed_scroll_handoff-5.html", prefs}, + {"file": "helper_position_sticky_scroll_handoff.html", prefs}, + {"file": "helper_wheelevents_handoff_on_iframe.html", "prefs": prefs}, + {"file": "helper_wheelevents_handoff_on_non_scrollable_iframe.html", "prefs": prefs}, +]; + +if (isApzEnabled()) { + SimpleTest.waitForExplicitFinish(); + window.onload = function() { + runSubtestsSeriallyInFreshWindows(subtests) + .then(SimpleTest.finish, SimpleTest.finishWithFailure); + }; +} + + </script> +</head> +<body> +</body> +</html> |