Closed Bug 1083068 Opened 10 years ago Closed 10 years ago

Improve uncaught promise rejection helper in tests

Categories

(Mozilla Labs :: Jetpack SDK, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

The helper to notify in unit test about uncaught promise rejection displays a useless stack and doesn't expose the rejection message. It ends up being really difficult to know which promise is failing, you basically just know one has been rejected... somewhere :s
Attached patch patch (deleted) — Splinter Review
Attachment #8505335 - Flags: review?(rFobic)
Comment on attachment 8505335 [details] [diff] [review] patch Review of attachment 8505335 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me
Attachment #8505335 - Flags: review?(rFobic) → review+
There is some failure in the try run, but it looks like the same failure that already happen on m-c?
Keywords: checkin-needed
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/1aee56d5ef161f47beb5ee6197cc4598956e6010 Bug 1083068 - Improve SDK logging when a promise is rejected during tests. r=gozala
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: