Closed Bug 1666423 Opened 4 years ago Closed 3 years ago

Migrate helper_bug1271432.html to async/await style

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: kats, Assigned: kats, Mentored)

References

Details

(Whiteboard: [lang=js])

Attachments

(1 file)

Filing this bug as a specific example of a test that should be migrated to async/await style. This bug may be cloned for other similar tests. Patches on other dependencies of bug 1666295 may be viewed for guidance in implementing this bug.

helper_bug1271432.html uses runContinuation to run the test generator function. Instead, the test function should be made an async non-generator function and the test should stop using runContinuation to drive it.

In this specific test there are a few yield statements that can all be replaced by await statements for equivalent functions. For example, yield moveMouseAndScrollWheelOver(..., testDriver) can be replaced by await promiseMoveMouseAndScrollWheelOver(...). Similar equivalents exist for the other functions that take testDriver as a callback.

Mentor: botond
Whiteboard: [apz-outreachy]
Mentor: kats
Whiteboard: [apz-outreachy] → [apz-outreachy][lang=js]
Whiteboard: [apz-outreachy][lang=js] → [lang=js]
Assignee: nobody → kats
Status: NEW → ASSIGNED
Pushed by kgupta@mozilla.staktrace.com:
https://hg.mozilla.org/integration/autoland/rev/d8fb193caf20
Migrate helper_bug1271432.html to async/await style. r=botond
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: