test_bug453254.js (404B)
1 function run_test() { 2 const zipCache = Cc["@mozilla.org/libjar/zip-reader-cache;1"].createInstance( 3 Ci.nsIZipReaderCache 4 ); 5 zipCache.init(1024); 6 try { 7 zipCache.getZip(null); 8 do_throw("Shouldn't get here!"); 9 } catch (e) { 10 if ( 11 !(e instanceof Ci.nsIException && e.result == Cr.NS_ERROR_INVALID_POINTER) 12 ) { 13 throw e; 14 } 15 // do nothing, this test passes 16 } 17 }