Closed Bug 1407408 Opened 7 years ago Closed 7 years ago

Add waitForTick to TestUtils.jsm

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 58
Tracking Status
firefox58 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file)

We have tons of tests relying on the broken Promise scheduling. In many cases just waiting for a tick is enough to fix the issue. This is adding a simple helper for that. (I have no idea who should review these changes, so picking up randomly)
Attachment #8917130 - Flags: review?(paolo.mozmail)
Comment on attachment 8917130 [details] [diff] [review] add_wait_for_tick.diff This shared helper function is definitely useful. Thanks! This query highlights just a few of the places that could use it: https://dxr.mozilla.org/mozilla-central/search?q=executeSoon(resolve)&redirect=false
Attachment #8917130 - Flags: review?(paolo.mozmail) → review+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: