summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_import_fail.js
blob: 9ad7fcb0726126d9c8f1114a379a1356dea7ecce (plain)
1
2
3
4
5
6
7
8
9
10
function run_test()
{
  try {
    ChromeUtils.import("resource://test/importer.jsm");
    Assert.ok(false, "import should not succeed.");
  } catch (x) {
    Assert.notEqual(x.fileName.indexOf("syntax_error.jsm"), -1);
    Assert.equal(x.lineNumber, 1);
  }
}