michael@0: function run_test() { michael@0: // this is a hack to skip the rest of the code on non-Mac platforms, michael@0: // since #ifdef is not available to xpcshell tests... michael@0: if (!("nsILocalFileMac" in Components.interfaces)) michael@0: return; michael@0: michael@0: // OK, here's the real part of the test: michael@0: // make sure these two test bundles are recognized as bundles (or "packages") michael@0: var keynoteBundle = do_get_file("data/presentation.key"); michael@0: var appBundle = do_get_file("data/SmallApp.app"); michael@0: michael@0: do_check_true(keynoteBundle instanceof Components.interfaces.nsILocalFileMac); michael@0: do_check_true(appBundle instanceof Components.interfaces.nsILocalFileMac); michael@0: michael@0: do_check_true(keynoteBundle.isPackage()); michael@0: do_check_true(appBundle.isPackage()); michael@0: }