From 06fe29534ce6e6a865f9282bd0cd2bae808288c7 Mon Sep 17 00:00:00 2001 From: Brian Crowder Date: Mon, 15 Nov 2010 12:01:57 +1300 Subject: [PATCH] b=599878 restore showAlertNotification and disable unit_ipc tests for MacOS r=joshmatthews a=test --HG-- rename : uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js => uriloader/exthandler/tests/unit_ipc/test_encoding.js extra : rebase_source : ee1a0d39f4f54d40ab0816a24c3fdcd6a9913018 --- uriloader/exthandler/tests/Makefile.in | 3 +++ .../unit_ipc/{disable_t_encoding.js => test_encoding.js} | 8 ++++++++ 2 files changed, 11 insertions(+) rename uriloader/exthandler/tests/unit_ipc/{disable_t_encoding.js => test_encoding.js} (97%) diff --git a/uriloader/exthandler/tests/Makefile.in b/uriloader/exthandler/tests/Makefile.in index d2dcee91501..92f839d5e42 100644 --- a/uriloader/exthandler/tests/Makefile.in +++ b/uriloader/exthandler/tests/Makefile.in @@ -52,8 +52,11 @@ MODULE = test_uriloader_exthandler XPCSHELL_TESTS = unit ifdef MOZ_IPC +#FIXME/bug 575918: out-of-process xpcshell is broken on OS X +ifneq ($(OS_ARCH),Darwin) XPCSHELL_TESTS += unit_ipc endif +endif CPPSRCS = \ WriteArgument.cpp \ diff --git a/uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js b/uriloader/exthandler/tests/unit_ipc/test_encoding.js similarity index 97% rename from uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js rename to uriloader/exthandler/tests/unit_ipc/test_encoding.js index 9dba572c91e..49630ced79a 100644 --- a/uriloader/exthandler/tests/unit_ipc/disable_t_encoding.js +++ b/uriloader/exthandler/tests/unit_ipc/test_encoding.js @@ -86,8 +86,16 @@ DownloadMgrUI.prototype = { getAttention: function () { } } +function AlertsSVC() { } +AlertsSVC.prototype = { + QueryInterface: XPCOMUtils.generateQI([Ci.nsIAlertsService]), + contractID: "@mozilla.org/alerts-service;1", + showAlertNotification: function (url, title, text, clickable, cookie, listener, name) { }, +} + registerTemporaryComponent(HelperAppDlg); registerTemporaryComponent(DownloadMgrUI); +registerTemporaryComponent(AlertsSVC); function initChildTestEnv() {