Bug 749872. (Bv1) test_handlerApps.xhtml: OS X SeaMonkey workaround wrt iCal. r=dmose.
authorSerge Gautherie <sgautherie.bz@free.fr>
Fri, 01 Jun 2012 17:48:34 +0200
changeset 97728 10f674b1208917e111e9561fdc429f0dc12f598b
parent 97727 12ab69851e05bae26fd3aca63686b588086242f7
child 97729 def37b64a7581fdb3cb5aa5d32d33d73449bc408
child 97802 2f0587ab5933679d13c7d6117b2f6d351e08db3c
push id1439
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 20:19:22 +0000
treeherdermozilla-aurora@ea74834dccd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmose
bugs749872
milestone15.0a1
Bug 749872. (Bv1) test_handlerApps.xhtml: OS X SeaMonkey workaround wrt iCal. r=dmose.
uriloader/exthandler/tests/mochitest/handlerApps.js
--- a/uriloader/exthandler/tests/mochitest/handlerApps.js
+++ b/uriloader/exthandler/tests/mochitest/handlerApps.js
@@ -61,16 +61,27 @@ function test() {
 
   } else if (osString == "Darwin") { 
     var localAppsDir = dirSvc.getFile("LocApp", {});
     exe = localAppsDir.clone();
     exe.append("iCal.app"); // lingers after the tests finish, but this seems
                             // seems better than explicitly killing it, since
                             // developers who run the tests locally may well
                             // information in their running copy of iCal
+
+    if (navigator.userAgent.match(/ SeaMonkey\//)) {
+      // SeaMonkey tinderboxes don't like to have iCal lingering (and focused)
+      // on next test suite run(s).
+      todo(false, "On SeaMonkey, testing OS X as generic Unix. (Bug 749872)");
+
+      // assume a generic UNIX variant
+      exe = Components.classes["@mozilla.org/file/local;1"].
+            createInstance(Components.interfaces.nsILocalFile);
+      exe.initWithPath("/bin/echo");
+    }
   } else {
     // assume a generic UNIX variant
     exe = Components.classes["@mozilla.org/file/local;1"].
           createInstance(Components.interfaces.nsILocalFile);
     exe.initWithPath("/bin/echo");
   }
 
   localHandler.executable = exe;