summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_promise.js
blob: 305e016fb564ab5e096b61b477110f8b067ed4ad (plain)
1
2
3
4
5
6
7
function run_test() {
  sb = new Cu.Sandbox('http://www.example.com');
  sb.equal = equal;
  Cu.evalInSandbox('equal(typeof new Promise(function(resolve){resolve();}), "object");',
                   sb);
  Assert.equal(typeof new Promise(function(resolve){resolve();}), "object");
}