Bug 1251905, part 5 - Make the synthesize wheel async. r=masayuki
authorAndrew McCreight <continuation@gmail.com>
Sat, 02 Apr 2016 10:30:31 -0700
changeset 291484 9ac7cea0096fb106beae78396dfb645fe8eb4cb5
parent 291483 7c052af6963b9a0bb2f83aaab90cddbd5732b0bd
child 291485 39744d63ae76320b2b6bb75e2e4472d33394cf3a
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1251905
milestone48.0a1
Bug 1251905, part 5 - Make the synthesize wheel async. r=masayuki
dom/events/test/test_continuous_wheel_events.html
--- a/dom/events/test/test_continuous_wheel_events.html
+++ b/dom/events/test/test_continuous_wheel_events.html
@@ -3161,17 +3161,17 @@ function* testContinuousTrustedEvents()
     gScrollableElement.scrollTop = gScrollableElement.scrollBottom = 1000;
 
     currentWheelEventTest = kSynthesizedWheelEventTests[i];
 
     if (currentWheelEventTest.prepare) {
       yield currentWheelEventTest.prepare();
     }
 
-    synthesizeWheel(gScrollableElement, 10, 10, currentWheelEventTest.event);
+    yield sendWheelAndWait(10, 10, currentWheelEventTest.event);
 
     if (currentWheelEventTest.finished) {
       yield currentWheelEventTest.finished();
     }
 
     var description = "testContinuousTrustedEvents, " +
       currentWheelEventTest.description + ": ";
     is(calledHandlers.wheel, currentWheelEventTest.wheel.expected,