Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android' OR display == 'wayland' && os_version == '22.04'
- Manifest: gfx/layers/apz/test/mochitest/mochitest.toml
<!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>