Bug 1440112 - Enable helper_scroll_overscroll_behavior.html for non-WebRender as well. r=kats
authorBotond Ballo <botond@mozilla.com>
Fri, 23 Feb 2018 17:38:30 -0500
changeset 405197 94526b17561f3469b1cf398ff6c09fb44ded10d9
parent 405196 adb71752bca8564546ca873a3207b500cab46f95
child 405198 bfe62272d2a21f9d10d45e5aaa680f5c735604ae
push id33508
push useraiakab@mozilla.com
push dateSat, 24 Feb 2018 21:53:12 +0000
treeherdermozilla-central@bfe62272d2a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1440112
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1440112 - Enable helper_scroll_overscroll_behavior.html for non-WebRender as well. r=kats
gfx/layers/apz/test/mochitest/helper_scroll_overscroll_behavior.html
--- a/gfx/layers/apz/test/mochitest/helper_scroll_overscroll_behavior.html
+++ b/gfx/layers/apz/test/mochitest/helper_scroll_overscroll_behavior.html
@@ -2,30 +2,20 @@
   <meta name="viewport" content="width=device-width; initial-scale=1.0">
   <title>Wheel-scrolling over inactive subframe with overscroll-behavior</title>
   <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
   <script type="application/javascript" src="apz_test_utils.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/paint_listener.js"></script>
   <script type="application/javascript">
 
 function* test(testDriver) {
-  var utils = SpecialPowers.getDOMWindowUtils(window);
-  var isWebRender = (utils.layerManagerType == 'WebRender');
-  if (!isWebRender) {
-    // After bug 1440112 is fixed, the test can be enabled
-    // for non-WebRender as well.
-    ok(true, "This test is only enabled for WebRender");
-    return;
-  }
-
   var subframe = document.getElementById('scroll');
 
   // scroll over the middle of the subframe, and make sure that the page
   // does not scroll.
-  var scrollPos = subframe.scrollTop;
   var waitForScroll = false;  // don't wait for a scroll event, it will never come
   yield moveMouseAndScrollWheelOver(subframe, 100, 100, testDriver, waitForScroll);
   ok(window.scrollY == 0, "overscroll-behavior was respected");
 }
 
 waitUntilApzStable()
 .then(runContinuation(test))
 .then(subtestDone);