summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_overscroll.html
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_overscroll.html')
-rw-r--r--gfx/layers/apz/test/mochitest/test_group_overscroll.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_overscroll.html b/gfx/layers/apz/test/mochitest/test_group_overscroll.html
new file mode 100644
index 0000000000..d94cd3b65f
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/test_group_overscroll.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Tests for overscroll</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.overscroll.enabled", true],
+ ["apz.overscroll.test_async_scroll_offset.enabled", true],
+ ["apz.test.logging_enabled", true],
+];
+
+var subtests = [
+ {"file": "helper_overscroll_in_subscroller.html",
+ "prefs": [ ...prefs,
+ ["apz.overscroll.damping", 10.0] /* Make overscroll animations slower */ ] },
+];
+
+if (isApzEnabled()) {
+ SimpleTest.waitForExplicitFinish();
+ window.onload = function() {
+ runSubtestsSeriallyInFreshWindows(subtests)
+ .then(SimpleTest.finish, SimpleTest.finishWithFailure);
+ };
+}
+
+ </script>
+</head>
+<body>
+</body>
+</html>