Bug 881361 - Fix permanent orange in test_re_test_config by adding a delay to let the stack unwind in-between opening the account dialogs. r=aceman,a=Standard8 and unit test fix for CLOSED TREE
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 02 Jul 2013 08:30:37 +0100
changeset 15818 a7b8008b37c7410c84f22ec51ecf03e0f017ce4f
parent 15817 73fe0c8b8409ac5b5c4f798382651980ad65f96f
child 15819 0f58049a758d72d27d83be367008649172275a1a
push idunknown
push userunknown
push dateunknown
reviewersaceman, Standard8
bugs881361
Bug 881361 - Fix permanent orange in test_re_test_config by adding a delay to let the stack unwind in-between opening the account dialogs. r=aceman,a=Standard8 and unit test fix for CLOSED TREE
mail/test/mozmill/account/test-retest-config.js
--- a/mail/test/mozmill/account/test-retest-config.js
+++ b/mail/test/mozmill/account/test-retest-config.js
@@ -41,16 +41,19 @@ function setupModule(module) {
 // Select File > New > Mail Account to open the Mail Account Setup Wizard
 function open_mail_account_setup_wizard(k) {
   wh.plan_for_modal_dialog("mail:autoconfig", k);
   mc.click(new elib.Elem(mc.menus.menu_File.menu_New.newMailAccountMenuItem));
   return wh.wait_for_modal_dialog("mail:autoconfig", 30000);
 }
 
 function test_re_test_config() {
+  // Opening multiple windows in the same run seems to require letting the stack
+  // unwind before opening the next one, so do that here.
+  mc.sleep(0);
   open_mail_account_setup_wizard(function (awc) {
     // Input user's account information
     awc.e("realname").focus();
     input_value(awc, user.name);
     awc.keypress(null, "VK_TAB", {});
     input_value(awc, user.email);
 
     // Click "continue" button