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)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 8.0
People
(Reporter: Bienvenu, Assigned: Bienvenu)
Details
Attachments
(1 file, 1 obsolete file)
7.46 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•14 years ago
|
||
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)
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #544510 -
Attachment is obsolete: true
Attachment #544519 -
Flags: review?(mbanner)
Attachment #544510 -
Flags: review?(mbanner)
Assignee | ||
Comment 3•14 years ago
|
||
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 4•14 years ago
|
||
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+
Assignee | ||
Comment 5•14 years ago
|
||
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.
Description
•