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