Closed Bug 1699997 Opened 3 years ago Closed 3 years ago

Remove remaining callback-style functions in apz_test_native_event_utils.js

Categories

(Core :: Panning and Zooming, task)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox88 --- fixed
firefox89 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(4 files)

After the changes in bug 1666295's dependencies, most of the APZ tests and helper functions have been migrated from callback-style to promise or async/await-style. There's a handful of functions left over in apz_test_native_event_utils that still take a callback function, and can be removed pretty easily. This bug will do that.

This function has only one caller, which was trivial to migrate.

Depends on D109245

It was only used by the promise-style equivalent, so this folds the two together.

Depends on D109247

Everybody uses the promise-style equivalent so we can just move over
the documentation and drop the function.

Depends on D109248

Pushed by kgupta@mozilla.staktrace.com:
https://hg.mozilla.org/integration/autoland/rev/34cbd820c7bd
Convert synthesizeNativeWheelAndWaitForObserver from callback-style to promise-style. r=botond
https://hg.mozilla.org/integration/autoland/rev/855b75b8db8f
Remove synthesizeNativeWheelAndWaitForScrollEvent and migrate callers to promiseNativeWheelAndWaitForScrollEvent. r=botond
https://hg.mozilla.org/integration/autoland/rev/2cc9b5cace93
Remove unused synthesizeNativeMouseEventWithAPZAndWaitForEvent function. r=botond
https://hg.mozilla.org/integration/autoland/rev/b1246187a93d
Remove unused moveMouseAndScrollWheelOver function. r=botond
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: