Bug 1361067 Part3: Tweak test_touch_listeners_impacting_wheel.html to synthesize mousemove before taking control of refresh driver. r=kats.

MozReview-Commit-ID: HLPcPFXxvAz
This commit is contained in:
Stone Shih 2017-08-18 07:32:52 +08:00
Родитель 7646d41f1d
Коммит dd2e7962f3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -79,6 +79,8 @@ function* test(testDriver) {
flushApzRepaints(testDriver);
});
yield synthesizeNativeMouseMoveAndWaitForMoveEvent(box, 10, 10, testDriver);
// Take over control of the refresh driver and compositor
var utils = SpecialPowers.DOMWindowUtils;
utils.advanceTimeAndRefresh(0);
@ -86,7 +88,6 @@ function* test(testDriver) {
// Trigger an APZ scroll using a wheel event. If APZ is waiting for a
// content response, it will wait for takeSnapshots to finish running before
// it starts scrolling, which will cause the checks in takeSnapshots to fail.
yield synthesizeNativeMouseMoveAndWaitForMoveEvent(box, 10, 10, testDriver);
yield synthesizeNativeWheelAndWaitForScrollEvent(box, 10, 10, 0, -50, testDriver);
}