mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d7f143eaad
Backed out changeset 647025383676 (bug 1202902) Backed out changeset d70c7fe532c6 (bug 1202902)
13 lines
445 B
JavaScript
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();
|
|
}
|