michael@0: function run_test() { michael@0: var zReader = Components.classes["@mozilla.org/libjar/zip-reader;1"] michael@0: .createInstance(Components.interfaces.nsIZipReader); michael@0: try { michael@0: zReader.open(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_NULL_POINTER)) { michael@0: // do nothing, this test passes michael@0: } michael@0: }