Closed Bug 669647 Opened 14 years ago Closed 14 years ago

need a unit test for undoing local message move/copy

Categories

(Thunderbird :: Testing Infrastructure, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 8.0

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 file, 1 obsolete file)

I'm pretty sure undo doesn't work correctly with the maildir pluggable store, but the unit tests all pass, so I think we need xpcshell tests for this. We have tests for imap undo.
Attached patch proposed fix (obsolete) — Splinter Review
This also adds firstMsgHdr to mailTestUtils.js because it's useful in a lot of tests. In a follow-on fix, I'm going to fix some callers of loadFileToString to use loadMessageToString (some of them are loading a folder file to a string, which won't work with non-berkeley mail stores)
Attachment #544510 - Flags: review?(mbanner)
Attachment #544510 - Attachment is obsolete: true
Attachment #544519 - Flags: review?(mbanner)
Attachment #544510 - Flags: review?(mbanner)
I should add redo to this, as well as undo/redo of multiple message move/copy, though I can leave that for a follow-on.
Comment on attachment 544519 [details] [diff] [review] use LoadMessageToString in a few more places + function undoDelete() { + gMsgWindow.transactionManager.undoTransaction(); + // There's no listener for this, so we'll just have to wait a little. + do_timeout(1500, function(){doTest(++gCurTestNum);}); + }, The alternative would if you could watch the folder for notification that the message had been added back to the folder. I don't mind if we do that in a follow-up improvement though.
Attachment #544519 - Flags: review?(mbanner) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 8.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: