Bug 589471 - [SeaMonkey 2.1, mochitest-plain-5] permanent "toolkit/components/satchel/test/test_form_submission.html | Test timed out."; (Av1) Disable timing out part of the test on SeaMonkey.
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 04 Dec 2010 12:31:23 +0100
changeset 58601 4c8ae858b8e189b30a808eb67e721857f661f014
parent 58600 c282f8597e0345bdb942c70166397cab192b6e96
child 58602 3e7e476a9ea09e67c845e41fb5a9b39540b9f4d8
push idunknown
push userunknown
push dateunknown
bugs589471
milestone2.0b8pre
Bug 589471 - [SeaMonkey 2.1, mochitest-plain-5] permanent "toolkit/components/satchel/test/test_form_submission.html | Test timed out."; (Av1) Disable timing out part of the test on SeaMonkey. r=dolske a=(test only). DONTBUILD
toolkit/components/satchel/test/test_form_submission.html
--- a/toolkit/components/satchel/test/test_form_submission.html
+++ b/toolkit/components/satchel/test/test_form_submission.html
@@ -423,16 +423,28 @@ function checkSubmit(formNum) {
 
   // Forms 20 and 21 requires browser.formfill.saveHttpsForms to be false
   if (formNum == 19)
     prefBranch.setBoolPref("browser.formfill.saveHttpsForms", false);
   // Reset preference now that 20 and 21 are over
   if (formNum == 21)
     prefBranch.clearUserPref("browser.formfill.saveHttpsForms");
 
+  // End the test now on SeaMonkey.
+  if (formNum == 21 && navigator.userAgent.match(/ SeaMonkey\//)) {
+    Services.obs.removeObserver(checkObserver, "satchel-storage-changed");
+    is(numSubmittedForms, 21, "Ensuring all forms were submitted.");
+
+    todo(false, "Skipping remaining checks on SeaMonkey ftb. (Bug 589471)");
+    // finish(), yet let the test actually end first, to be safe.
+    SimpleTest.executeSoon(SimpleTest.finish);
+
+    return false; // return false to cancel current form submission
+  }
+
   // Form 109 requires browser.formfill.save_https_forms to be true;
   // Form 110 requires it to be false.
   if (formNum == 108)
     prefBranch.setBoolPref("browser.formfill.saveHttpsForms", true);
   if (formNum == 109)
     prefBranch.setBoolPref("browser.formfill.saveHttpsForms", false);
   if (formNum == 110)
     prefBranch.clearUserPref("browser.formfill.saveHttpsForms");