Closed Bug 1143511 Opened 11 years ago Closed 11 years ago

Correct the usages of .catch() in DOM cache tests

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

These tests used .catch() incorrectly, in a way that did not actually guarantee that the promise is rejected, so in 3 cases the promise resolved to known failure values (undefined or an empty array) and this was not being caught as a test failure. This patch fixes those three places, and also rewrites the .catch() usage in another case to guarantee that the promise is indeed rejected.
Assignee: nobody → ehsan
Blocks: cachetests
Attachment #8577804 - Flags: review?(bkelly) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: