Migrate helper_bug1271432.html to async/await style
Categories
(Core :: Panning and Zooming, task, P3)
Tracking
()
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.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Pushed by kgupta@mozilla.staktrace.com: https://hg.mozilla.org/integration/autoland/rev/d8fb193caf20 Migrate helper_bug1271432.html to async/await style. r=botond
Comment 3•3 years ago
|
||
bugherder |
Description
•