Closed Bug 668563 Opened 14 years ago Closed 14 years ago

add xpcshell test for pop3 duplicate handling

Categories

(MailNews Core :: Networking: POP, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 7.0

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 file)

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)
Attached patch proposed fixSplinter Review
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 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+
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.

Attachment

General

Created:
Updated:
Size: