Closed Bug 1309705 Opened 8 years ago Closed 8 years ago

Folder-display-helpers cannot be used from within Calendar tests

Categories

(Thunderbird :: Testing Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 52.0

People

(Reporter: MakeMyDay, Assigned: MakeMyDay)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

test-folder-display-helpers.js cannot be used properly when included from within Calendar Mozmill tests, installInto(module) fails.

The problem is that FILE_LOAD_PATHS doesn't include an appropriate releative path to work from within calendar tests.
Aceman, you're doing a lot of mozmill stuff, so I assign the review to you.
Attachment #8800415 - Flags: review?(acelists)
Blocks: 1010294
Summary: Folder-disply-helpers cannot be used from within Calendar tests → Folder-display-helpers cannot be used from within Calendar tests
Blocks: 1225784
Comment on attachment 8800415 [details] [diff] [review]
FixFolderDisplayHelpersForCalendar-V1.diff

Review of attachment 8800415 [details] [diff] [review]:
-----------------------------------------------------------------

Calendar tests do not seem to use the file yet. Are you planning to use it?
Also, in the load_via_src_path() the patch is said to be 'relative to comm-central source path'. What does that mean?
The paths in FILE_LOAD_PATHS are not relative to that files position and also not relative to e.g. the comm-central root. Can you update that comment to make it clear where it starts from?
Attachment #8800415 - Flags: review?(acelists) → review+
Thanks. Yes, currently we have no mozmill tests for email inviations, which is going to be changed.

The comment regarding a relative path is imho correct. The starting point is floating: the shared-modules are stored on a different directory level in calendar than in mail when being staged (at least for local test runs). That codes tries to determine the relative path based on the location of the test-folder-display-helpers.js file, but the places to look at are restricted by FILE_LOAD_PATHS.
So can the comment say 'relative to the comm-central location of test-folder-display-helpers.js file' ?
https://hg.mozilla.org/comm-central/rev/a5008a01e8e3f06b06bfbac44338afd882769273
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: