michael@0: function run_test() { michael@0: const zipCache = Components.classes["@mozilla.org/libjar/zip-reader-cache;1"] michael@0: .createInstance(Components.interfaces.nsIZipReaderCache); michael@0: zipCache.init(1024); michael@0: try { michael@0: zipCache.getZip(null); michael@0: do_throw("Shouldn't get here!"); michael@0: } catch (e if ((e instanceof Components.interfaces.nsIException) && michael@0: (e.result == Components.results.NS_ERROR_INVALID_POINTER))) { michael@0: // do nothing, this test passes michael@0: } michael@0: }