Closed Bug 861620 Opened 13 years ago Closed 13 years ago

Improve test coverage in backend components

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fallen, Assigned: Fallen)

References

Details

Attachments

(1 file)

The components in base/src/ can easily be tested using unit tests, we should improve our test coverage in that area. While creating a patch for this bug, I have also found some issues with our code.
These are the testcases that will cover the other patches.
Attachment #737267 - Flags: review?(matthew.mecca)
Comment on attachment 737267 [details] [diff] [review] New and Improved Testcases - v1 Review of attachment 737267 [details] [diff] [review]: ----------------------------------------------------------------- Everything looks good as far as I can see. r=mmecca ::: calendar/test/unit/test_alarm.js @@ +145,5 @@ > } catch (e) {} > > + // No attendee yet, should not be initialized > + do_check_throws(function() { > + alarm.icalComponent; nit - a 4 space indent would match the rest of the file ::: calendar/test/unit/test_recur.js @@ +385,3 @@ > // removeOccurrenceAt/restoreOccurreceAt > + var occDate1 = cal.createDateTime("20020403T114500Z"); > + var occDate2 = cal.createDateTime("20020404T114500Z"); A few var's could be changed to let's in this file
Attachment #737267 - Flags: review?(matthew.mecca) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: