Closed Bug 1328367 Opened 9 years ago Closed 9 years ago

open_message_from_file() in test-folder-display-helpers.js (Mozmill) should check whether a file exists

Categories

(Thunderbird :: Testing Infrastructure, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 54.0

People

(Reporter: jorgk-bmo, Assigned: aceman)

References

Details

Attachments

(1 file)

open_message_from_file() in test-folder-display-helpers.js (Mozmill) should check whether a file exists and display an appropriate message. If called with a non-existent file, an unhelpful error is currently issued: EXCEPTION: Timed out waiting for message display
Assignee: nobody → acelists
Severity: normal → enhancement
OS: Unspecified → All
Hardware: Unspecified → All
Version: 52 Branch → Trunk
Comment on attachment 8839821 [details] [diff] [review] patch Review of attachment 8839821 [details] [diff] [review]: ----------------------------------------------------------------- Nice, I asked for this, so thanks. ::: mail/test/mozmill/shared-modules/test-folder-display-helpers.js @@ +666,5 @@ > function open_message_from_file(file) { > mark_action("fdh", "open_message_from_file", ["file", file.nativePath]); > > + if (!file.isFile() || !file.isReadable()) > + throw new Error("The requested message file " + file.leafName + " was not found."); ... was not found or is not accessible.
Attachment #8839821 - Flags: review?(jorgk) → review+
Thanks, please do the change if possible when landing the next batch of patches.
Status: NEW → ASSIGNED
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 54.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: