From c0030bd82e96d172e2f5886240daff118a51db58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20Waara?= Date: Tue, 26 Aug 2008 11:40:43 +0200 Subject: [PATCH] better way to make a xpcshell mac-only without any #ifdefs available. --- xpcom/tests/unit/test_mac_bundle.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpcom/tests/unit/test_mac_bundle.js b/xpcom/tests/unit/test_mac_bundle.js index 484ef89b93c..6c1e2ae266f 100644 --- a/xpcom/tests/unit/test_mac_bundle.js +++ b/xpcom/tests/unit/test_mac_bundle.js @@ -1,8 +1,7 @@ function run_test() { // this is a hack to skip the rest of the code on non-Mac platforms, // since #ifdef is not available to xpcshell tests... - var thisFile = do_get_file("xpcom/tests/unit/test_mac_bundle.js"); - if (!thisFile instanceof Components.interfaces.nsILocalFileMac) + if (!("nsILocalFileMac" in Components.interfaces)) return; // OK, here's the real part of the test: