PageRenderTime 14ms CodeModel.GetById 7ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/libjar/test/unit/test_uncompressed.js

http://github.com/zpao/v8monkey
JavaScript | 12 lines | 10 code | 1 blank | 1 comment | 0 complexity | ec786a779208d002bd54d2e39a375cd9 MD5 | raw file
 1// Make sure uncompressed files pass crc
 2const Cc = Components.classes;
 3const Ci = Components.interfaces;
 4
 5function run_test() {
 6  var file = do_get_file("data/uncompressed.zip");
 7  var zipReader = Cc["@mozilla.org/libjar/zip-reader;1"].
 8                  createInstance(Ci.nsIZipReader);
 9  zipReader.open(file);
10  zipReader.test("hello");
11  zipReader.close();
12}