rem: if (tmpFile.exists()) print("*** SOMEHOW THE TEMP FILE STILL EXISTS EVEN THOUGH IT SHOULD BE DELETED!"); 
context: function run_test(){  if (tmpFile.exists())    print("*** SOMEHOW THE TEMP FILE STILL EXISTS EVEN THOUGH IT SHOULD BE DELETED!");  zipW.open(tmpFile, PR_RDWR | PR_CREATE_FILE | PR_TRUNCATE);  // Shouldn't be there to start with.  do_check_false(zipW.hasEntry(FILENAME));  do_check_false(zipW.inQueue);  var stream = Cc["@mozilla.org/io/string-input-stream;1"]                .createInstance(Ci.nsIStringInputStream);  stream.setData(DATA, DATA.length);  zipW.addEntryStream(FILENAME, time * PR_USEC_PER_MSEC,                      Ci.nsIZipWriter.COMPRESSION_NONE, stream, false);  // Check that zip state is right at this stage.  testpass(zipW);  zipW.close();  do_check_eq(tmpFile.fileSize,              DATA.length + ZIP_FILE_HEADER_SIZE + ZIP_CDS_HEADER_SIZE +              (FILENAME.length * 2) + ZIP_EOCDR_HEADER_SIZE);  // Check to see if we get the same results loading afresh.  zipW.open(tmpFile, PR_RDWR);  testpass(zipW);  zipW.close();  // Test the stored data with the zipreader  var zipR = new ZipReader(tmpFile);  testpass(zipR);  zipR.test(FILENAME);  var stream = Cc["@mozilla.org/scriptableinputstream;1"]                .createInstance(Ci.nsIScriptableInputStream);  stream.init(zipR.getInputStream(FILENAME));  var result = stream.read(DATA.length);  stream.close();  zipR.close();  do_check_eq(result, DATA);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/0de0974e41b57c46fcbc4810de4fd3aa5c44864b/test_storedata.js/buggy/modules/libjar/zipwriter/test/unit/test_storedata.js