repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git]
/
js
/
xpconnect
/
tests
/
unit
/
test_promise.js
blob
305e016fb564ab5e096b61b477110f8b067ed4ad
1
function run_test() {
2
sb = new Cu.Sandbox('http://www.example.com');
3
sb.equal = equal;
4
Cu.evalInSandbox('equal(typeof new Promise(function(resolve){resolve();}), "object");',
5
sb);
6
Assert.equal(typeof new Promise(function(resolve){resolve();}), "object");
7
}