gecko/modules/libjar/test/unit/test_bug336691.js
Carsten "Tomcat" Book d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00

13 lines
445 B
JavaScript

// Regression test for bug 336691 - nsZipArchive::Test shouldn't try to ExtractFile on directories.
var Cc = Components.classes;
var Ci = Components.interfaces;
function run_test() {
var file = do_get_file("data/test_bug336691.zip");
var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"].
createInstance(Ci.nsIZipReader);
zipReader.open(file);
zipReader.test(null); // We shouldn't crash here.
zipReader.close();
}