Closed Bug 1421115 Opened 7 years ago Closed 7 years ago

Wait for the next event tick before resolving promise in places tests.

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

There are several tests in browser/components/places/tests/ that fails after bug 1193394, because of promise resolution timing. functions in browser/components/places/tests/browser/head.js needs to wait for the next event tick before resolving promise in event handler.
promiseLibraryClosed and withSidebarTree should wait for the next event tick before resolving the promise inside unload/load event handler, to avoid the remaining part of the testcase runs unexpectedly earlier, after the change in bug 1193394.
Attachment #8932838 - Flags: review?(mak77)
Attachment #8932838 - Flags: review?(mak77) → review+
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/efd54930bcdf Wait for the next event tick before resolving promise in places tests. r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/efd54930bcdf3e5c6996634f82c71f5abaea7009 Bug 1421115 - Wait for the next event tick before resolving promise in places tests. r=mak
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: