diff -r 000000000000 -r 6474c204b198 modules/libjar/test/unit/test_bug453254.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/libjar/test/unit/test_bug453254.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,12 @@ +function run_test() { + const zipCache = Components.classes["@mozilla.org/libjar/zip-reader-cache;1"] + .createInstance(Components.interfaces.nsIZipReaderCache); + zipCache.init(1024); + try { + zipCache.getZip(null); + do_throw("Shouldn't get here!"); + } catch (e if ((e instanceof Components.interfaces.nsIException) && + (e.result == Components.results.NS_ERROR_INVALID_POINTER))) { + // do nothing, this test passes + } +}