Part of bug 777063, fix broken MozMill unit tests caused by unknown change. r=Standard8
authorJoshua Cranmer <Pidgeot18@gmail.com>
Tue, 31 Jul 2012 10:54:17 +0100
changeset 10779 9fbaed73944332d85253263519f3b93e0d49a747
parent 10778 08016b9719a327fc084c6c109f145456b652c65a
child 10780 05c45f78b6e48155f97dbc161a1459e6690f00b9
push id8099
push userbugzilla@standard8.plus.com
push dateTue, 31 Jul 2012 09:54:39 +0000
treeherdercomm-central@9fbaed739443 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs777063
Part of bug 777063, fix broken MozMill unit tests caused by unknown change. r=Standard8
mail/test/mozmill/composition/test-forward-headers.js
--- a/mail/test/mozmill/composition/test-forward-headers.js
+++ b/mail/test/mozmill/composition/test-forward-headers.js
@@ -48,17 +48,17 @@ function forward_selected_messages_and_g
   plan_for_window_close(cwc);
   // mwc is modal window controller
   plan_for_modal_dialog("commonDialog", function click_save (mwc) {
       //accept saving
       mwc.window.document.documentElement.getButton('accept').doCommand();
     });
 
   // quit -> do you want to save ?
-  cwc.keypress(null, "w", {shiftKey: false, accelKey: true});
+  cwc.window.goDoCommand('cmd_close');
   // wait for the modal dialog to return
   wait_for_modal_dialog();
   // actually quite the window
   wait_for_window_close();
 
   let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
                   .getService(Ci.nsIMsgAccountManager);
   let draftsFolder = acctMgr.localFoldersServer.rootFolder.getChildNamed("Drafts");