Bug 786938 - Disable test_handlerApps.xhtml on OS X. a=test-only
authorPhil Ringnalda <philringnalda@gmail.com>
Sat, 17 Jan 2015 10:32:49 -0800
changeset 242916 d1b7588f273b
parent 242915 e6df6527d52e
child 242917 54a53a093110
push id4340
push userryanvm@gmail.com
push date2015-01-20 15:10 +0000
treeherdermozilla-beta@d1b7588f273b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs786938
milestone36.0
Bug 786938 - Disable test_handlerApps.xhtml on OS X. a=test-only
uriloader/exthandler/tests/mochitest/handlerApps.js
uriloader/exthandler/tests/mochitest/mochitest.ini
--- a/uriloader/exthandler/tests/mochitest/handlerApps.js
+++ b/uriloader/exthandler/tests/mochitest/handlerApps.js
@@ -4,24 +4,16 @@
 
 // handlerApp.xhtml grabs this for verification purposes via window.opener
 var testURI = "webcal://127.0.0.1/rheeeeet.html";
 
 const Cc = SpecialPowers.Cc;
 
 function test() {
 
-  const isOSXMtnLion = navigator.userAgent.indexOf("Mac OS X 10.8") != -1;
-  const isOSXMavericks = navigator.userAgent.indexOf("Mac OS X 10.9") != -1;
-  if (isOSXMtnLion || isOSXMavericks) {
-    todo(false, "This test fails on OS X 10.8 and 10.9, see bug 786938");
-    SimpleTest.finish();
-    return;
-  }
-
   // set up the web handler object
   var webHandler = Cc["@mozilla.org/uriloader/web-handler-app;1"].
     createInstance(SpecialPowers.Ci.nsIWebHandlerApp);
   webHandler.name = "Test Web Handler App";
   webHandler.uriTemplate =
       "http://mochi.test:8888/tests/uriloader/exthandler/tests/mochitest/" + 
       "handlerApp.xhtml?uri=%s";
   
--- a/uriloader/exthandler/tests/mochitest/mochitest.ini
+++ b/uriloader/exthandler/tests/mochitest/mochitest.ini
@@ -2,10 +2,10 @@
 skip-if = buildapp == 'b2g' || e10s
 support-files =
   handlerApp.xhtml
   handlerApps.js
   unsafeBidiFileName.sjs
 
 [test_badMimeType.html]
 [test_handlerApps.xhtml]
-skip-if = toolkit == 'android'
+skip-if = (toolkit == 'android' || os == 'mac') # OS X: bug 786938
 [test_unsafeBidiChars.xhtml]