Bug 1162214 - Disable smooth-scrolling on a wheel scroll test as it causes intermittent failures. r=dvander

This commit is contained in:
Kartikaya Gupta 2015-05-16 12:37:21 -04:00
parent 2363a275e9
commit ad5db89677

View File

@ -93,8 +93,15 @@ function runTest() {
SimpleTest.finish();
}
function startTest() {
// If we allow smooth scrolling the "smooth" scrolling may cause the page to
// glide past the scrollbox (which is supposed to stop the scrolling) and so
// we might end up at the bottom of the page.
SpecialPowers.pushPrefEnv({"set": [["general.smoothScroll", false]]}, runTest);
}
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(runTest, window);
SimpleTest.waitForFocus(startTest, window);
</script>
</pre>