summaryrefslogtreecommitdiffstats
path: root/modules/libjar/test/unit/test_uncompressed.js
blob: 2b0e4820e9721aa464ad49ea6f434fea7d2da497 (plain)
1
2
3
4
5
6
7
8
9
10
// Make sure uncompressed files pass crc
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();
}