summaryrefslogtreecommitdiffstats
path: root/modules/libjar/test/unit/test_uncompressed.js
blob: 80fbbcee592b9dba621f4663aa99f9583a328107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Make sure uncompressed files pass crc
var Cc = Components.classes;
var Ci = Components.interfaces;

function run_test() {
  var file = do_get_file("data/uncompressed.zip");
  var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"].
                  createInstance(Ci.nsIZipReader);
  zipReader.open(file);
  zipReader.test("hello");
  zipReader.close();
}