Bug 1162214 - Disable smooth-scrolling on a wheel scroll test as it causes intermittent failures. r=dvander, a=test-only
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 16 May 2015 12:37:21 -0400
changeset 274632 4e29546b3a53bfe9c5ed631dfe392359685e1175
parent 274631 011b42d319563a5d576f5aeb806753b487e0c988
child 274633 157446f10a5ed0d9549ecc49ad01a4db367009ad
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, test-only
bugs1162214
milestone40.0a2
Bug 1162214 - Disable smooth-scrolling on a wheel scroll test as it causes intermittent failures. r=dvander, a=test-only
dom/events/test/test_bug1013412.html
--- a/dom/events/test/test_bug1013412.html
+++ b/dom/events/test/test_bug1013412.html
@@ -88,16 +88,23 @@ function runTest() {
     return;
   }
   var scrollbox = document.getElementById('scrollbox');
   is(content.scrollTop < content.scrollTopMax, true, "We should not have scrolled to the bottom of the scrollframe");
   is(rotationAdjusted, true, "The rotation should have been adjusted");
   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>
 
 </body>
 </html>