Closed
Bug 1258835
Opened 9 years ago
Closed 9 years ago
Give tests easier means to spin up calendar services
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
5.0
People
(Reporter: Fallen, Assigned: Fallen)
References
Details
Attachments
(1 file, 1 obsolete file)
25.19 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
Right now we have a lot of tests that run either one of the calendar services, or manually spin up various services. It would be nice to simplify this a bit.
I noticed some of our tests are swallowing errors that timezones are not defined because they are not spinning up the timezone service.
Assignee | ||
Comment 1•9 years ago
|
||
Geoff, can you take a look at this patch?
Attachment #8733544 -
Flags: review?(geoff)
Comment 2•9 years ago
|
||
Comment on attachment 8733544 [details] [diff] [review]
Fix - v1
Review of attachment 8733544 [details] [diff] [review]:
-----------------------------------------------------------------
::: calendar/test/unit/test_storage.js
@@ +2,5 @@
> * License, v. 2.0. If a copy of the MPL was not distributed with this
> * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
>
> function run_test() {
> + do_calendar_startup(run_next_test);
This doesn't apply properly, I think you must have another patch applied.
@@ +7,3 @@
> }
>
> +add_task(function testAttachRoundtrip() {
Should be add_test, no?
Attachment #8733544 -
Flags: review?(geoff) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #2)
> This doesn't apply properly, I think you must have another patch applied.
Yes, I have bug 1115667 applied, sorry about that!
> > +add_task(function testAttachRoundtrip() {
>
> Should be add_test, no?
Good catch!
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8733544 -
Attachment is obsolete: true
Attachment #8741097 -
Flags: review+
Assignee | ||
Comment 5•9 years ago
|
||
Please push this together with bug 1115667 (applies on top of the patches in that bug)
Keywords: checkin-needed
There was a slight conflict in test_items.js. Hopefully I fixed it correctly:
https://hg.mozilla.org/comm-central/rev/69b4c4164312c107137efa4fae17c63608fa30d1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 5.0
Comment 7•9 years ago
|
||
This regressed Bug 1264782.
You need to log in
before you can comment on or make changes to this bug.
Description
•