diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /gfx/layers/apz/test/mochitest/test_group_scrollend.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_scrollend.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/test_group_scrollend.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_scrollend.html b/gfx/layers/apz/test/mochitest/test_group_scrollend.html new file mode 100644 index 0000000000..8647fa79ad --- /dev/null +++ b/gfx/layers/apz/test/mochitest/test_group_scrollend.html @@ -0,0 +1,74 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>Various scrollend tests that spawn in new windows</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 = [ + ["apz.test.mac.synth_wheel_input", true], +]; + +var smoothScrollDisabled = [ + ...prefs, + ["general.smoothScroll", false], +]; + +var smoothMsdScrollEnabled = [ + ...prefs, + ["general.smoothScroll", true], + ["general.smoothScroll.msdPhysics.enabled", true], +]; + +var smoothScrollEnabled = [ + ...prefs, + ["general.smoothScroll", true], + ["general.smoothScroll.msdPhysics.enabled", false], +]; + +var subtests = [ + {"file": "helper_basic_scrollend.html?chrome-only=true", "prefs": prefs}, + {"file": "helper_basic_scrollend.html?chrome-only=false", "prefs": prefs}, + {"file": "helper_scrollend_bubbles.html?scroll-target=document", "prefs": prefs}, + {"file": "helper_scrollend_bubbles.html?scroll-target=element", "prefs": prefs}, + {"file": "helper_main_thread_smooth_scroll_scrollend.html", "prefs": prefs}, + {"file": "helper_scrollend_bubbles.html?scroll-target=document", + "prefs": smoothScrollDisabled}, + {"file": "helper_scrollend_bubbles.html?scroll-target=element", + "prefs": smoothScrollDisabled}, + {"file": "helper_main_thread_smooth_scroll_scrollend.html", + "prefs": smoothScrollDisabled}, + {"file": "helper_keyboard_scrollend.html?direction=up", + "prefs": smoothMsdScrollEnabled}, + {"file": "helper_keyboard_scrollend.html?direction=up", + "prefs": smoothScrollEnabled}, + {"file": "helper_keyboard_scrollend.html?direction=up&flush-before-key", + "prefs": smoothScrollEnabled}, + {"file": "helper_keyboard_scrollend.html?direction=up", + "prefs": smoothScrollDisabled}, + {"file": "helper_keyboard_scrollend.html?direction=up&flush-before-key", + "prefs": smoothScrollDisabled}, + {"file": "helper_keyboard_scrollend.html?direction=down&flush-before-key", + "prefs": smoothScrollEnabled}, + {"file": "helper_keyboard_scrollend.html?direction=down&flush-before-key", + "prefs": smoothScrollDisabled}, + {"file": "helper_keyboard_scrollend.html?direction=down", + "prefs": smoothScrollDisabled}, +]; + +if (isApzEnabled()) { + SimpleTest.waitForExplicitFinish(); + window.onload = function() { + runSubtestsSeriallyInFreshWindows(subtests) + .then(SimpleTest.finish, SimpleTest.finishWithFailure); + }; +} + + </script> +</head> +<body> +</body> +</html> |