summaryrefslogtreecommitdiffstats
path: root/modules/libjar/test/unit/test_bug458158.js
blob: 15e327fba5b9af7382009ab34fafb40bfe14f9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function run_test() {
  var zReader = Cc["@mozilla.org/libjar/zip-reader;1"].createInstance(
    Ci.nsIZipReader
  );
  try {
    zReader.open(null);
    do_throw("Shouldn't get here!");
  } catch (e) {
    if (
      !(e instanceof Ci.nsIException && e.result == Cr.NS_ERROR_NULL_POINTER)
    ) {
      throw e;
    }
    // do nothing, this test passes
  }
}