Open
Bug 825797
Opened 13 years ago
Updated 3 years ago
wait_for_message_display_completion does not work after switch to wide mail layout
Categories
(Thunderbird :: Testing Infrastructure, defect)
Thunderbird
Testing Infrastructure
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: joachim.herb, Unassigned)
Details
Attachments
(1 file)
|
3.35 KB,
application/x-javascript
|
Details |
In a mozmill test the function wait_for_message_display_completion from shared module folder-display-helpers.js does not work (i.e. runs into timeout) if the View->Layout->Wide is chosen (see attached sample mozmill test file).
A work around is to close the 3pane window and reopen it:
let abwc = openAddressBook();
close3PaneWindow();
mc = open3PaneWindow();
abwc.window.close();
function openAddressBook() {
let windowWatcher = Cc["@mozilla.org/embedcomp/window-watcher;1"].
getService(Ci.nsIWindowWatcher);
windowHelper.plan_for_new_window("mail:addressbook");
windowWatcher.openWindow(
null,
"chrome://messenger/content/addressbook/addressbook.xul", "",
"all,chrome,dialog=no,status,toolbar",
null);
return windowHelper.wait_for_new_window("mail:addressbook");
}
| Reporter | ||
Comment 1•13 years ago
|
||
Forgot this function for the workaround:
function open3PaneWindow() {
let windowWatcher = Cc["@mozilla.org/embedcomp/window-watcher;1"].
getService(Ci.nsIWindowWatcher);
windowHelper.plan_for_new_window("mail:3pane");
windowWatcher.openWindow(null,
"chrome://messenger/content/messenger.xul", "",
"all,chrome,dialog=no,status,toolbar",
null);
return windowHelper.wait_for_new_window("mail:3pane");
}
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•