Closed
Bug 668563
Opened 14 years ago
Closed 14 years ago
add xpcshell test for pop3 duplicate handling
Categories
(MailNews Core :: Networking: POP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 7.0
People
(Reporter: Bienvenu, Assigned: Bienvenu)
Details
Attachments
(1 file)
1.97 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
in preparation for the pluggable store landing, we should have a unit test for the pop3 duplicate handling actions (or at least the one to delete duplicates, which is the slightly tricky one)
Assignee | ||
Comment 1•14 years ago
|
||
unit test only patch, that makes sure delete duplicate action works. I wrote this for the pluggable store work but it can land separately.
Attachment #543190 -
Flags: review?(mbanner)
Comment 2•14 years ago
|
||
Comment on attachment 543190 [details] [diff] [review]
proposed fix
Review of attachment 543190 [details] [diff] [review]:
-----------------------------------------------------------------
::: a/mailnews/local/test/unit/test_pop3Duplicates.js
@@ +30,5 @@
> + while (enumerator.hasMoreElements())
> + {
> + msgCount++;
> + let hdr = enumerator.getNext().QueryInterface(Ci.nsIMsgDBHdr);
> + do_check_eq(hdr.subject, testSubjects[msgCount - 1]);
You could do msgCount++ here, then you wouldn't need to do the ++ earlier, and the additional -1.
Attachment #543190 -
Flags: review?(mbanner) → review+
Assignee | ||
Comment 3•14 years ago
|
||
fixed, with comments addressed - http://hg.mozilla.org/comm-central/rev/2bfa709f04ce
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 7.0
You need to log in
before you can comment on or make changes to this bug.
Description
•