summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_mainthread.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /gfx/layers/apz/test/mochitest/test_group_mainthread.html
parentInitial commit. (diff)
downloadfirefox-esr-upstream.tar.xz
firefox-esr-upstream.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_mainthread.html')
-rw-r--r--gfx/layers/apz/test/mochitest/test_group_mainthread.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_mainthread.html b/gfx/layers/apz/test/mochitest/test_group_mainthread.html
new file mode 100644
index 0000000000..3e1225cadf
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/test_group_mainthread.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Tests that perform main-thread scrolling</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 subtests = [
+ {"file": "helper_scrollby_bug1531796.html"},
+ // This test checks that scroll anchoring isn't invoked just after an async
+ // scroll operation (scrolIntoView) was triggered, in other words, the async
+ // operation happened on the main-thread but it hasn't reached to APZ yet, so
+ // we don't need to set layout.css.scroll-behavior.spring-constant explicitly
+ // since the async scroll animation doesn't need to keep running there.
+ {"file": "helper_scroll_anchoring_smooth_scroll.html"},
+ {"file": "helper_scroll_anchoring_smooth_scroll_with_set_timeout.html", prefs: [
+ // Unlike helper_scroll_anchoring_smooth_scroll.html, this test checks that
+ // scroll anchoring __is__ invoked when an async scroll animation triggered
+ // by mouse wheel is running so the animation needs to keep running for a
+ // while.
+ ["layout.css.scroll-behavior.spring-constant", 10]
+ ]},
+ {"file": "helper_visualscroll_clamp_restore.html", prefs: [
+ ["apz.test.logging_enabled", true],
+ ]},
+ {"file": "helper_smoothscroll_spam.html"},
+ {"file": "helper_smoothscroll_spam_interleaved.html"},
+ {"file": "helper_mainthread_scroll_bug1662379.html", prefs: [
+ ["apz.test.logging_enabled", true],
+ ]},
+ {"file": "helper_bug1519339_hidden_smoothscroll.html", prefs: [
+ ["apz.scrollend-event.content.enabled", true]
+ ]},
+];
+
+if (isApzEnabled()) {
+ SimpleTest.waitForExplicitFinish();
+ window.onload = function() {
+ runSubtestsSeriallyInFreshWindows(subtests)
+ .then(SimpleTest.finish, SimpleTest.finishWithFailure);
+ };
+}
+
+ </script>
+</head>
+<body>
+</body>
+</html>