rem: var file = do_get_topsrcdir(); file.append("modules"); file.append("libjar"); file.append("test"); file.append("unit"); file.append("data"); file.append("test_bug333423.zip") dump("Using " + file.path + " for testing\n"); 
add: var file = do_get_file("modules/libjar/test/unit/data/test_bug333423.zip"); 
context: function run_test() {  const Cc = Components.classes;  const Ci = Components.interfaces;  // the build script have created the zip we can test on in the current dir.  var file = do_get_topsrcdir();  file.append("modules");  file.append("libjar");  file.append("test");  file.append("unit");  file.append("data");  file.append("test_bug333423.zip")  dump("Using " + file.path + " for testing\n");  var zipreader = Cc["@mozilla.org/libjar/zip-reader;1"].                  createInstance(Ci.nsIZipReader);  zipreader.open(file);  zipreader.close();  var entries = zipreader.findEntries('*.*');  do_check_true(!entries.hasMore()); // this shouldn't crash}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/45bb59aa847ad0bfe7fadbff4adeca8b0aaa2b78/test_bug333423.js/buggy/modules/libjar/test/unit/test_bug333423.js