summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug604362.js
blob: f158d9497cf1fd991b9f4384cc8370ef76a66fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function run_test() {
  var Cc = Components.classes;
  var Ci = Components.interfaces;
  var sp = Cc["@mozilla.org/systemprincipal;1"].
           createInstance(Ci.nsIPrincipal);
  var s = Components.utils.Sandbox(sp);
  s.a = [];
  s.Cu = Components.utils;
  s.C = Components;
  s.do_check_neq = do_check_neq;
  Components.utils.evalInSandbox("do_check_neq(Cu.import, undefined);", s);
}