Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / libjar / test / unit / test_bug336691.js
blob4bd2fa2d5c767c33778bb232273cbfa08afb2074
1 // Regression test for bug 336691 - nsZipArchive::Test shouldn't try to ExtractFile on directories.
2 const Cc = Components.classes;
3 const Ci = Components.interfaces;
5 function run_test() {
6   var file = do_get_file("modules/libjar/test/unit/data/test_bug336691.zip");
7   var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"].
8                   createInstance(Ci.nsIZipReader);
9   zipReader.open(file);
10   zipReader.test(null); // We shouldn't crash here.
11   zipReader.close();