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_getObjectPrincipal.js
blob
03c6ffce3da761f9cf0a5bce62def221646a2432
1
function run_test() {
2
Assert.ok(Cu.getObjectPrincipal({}).isSystemPrincipal);
3
var sb = new Cu.Sandbox('http://www.example.com');
4
Cu.evalInSandbox('var obj = { foo: 42 };', sb);
5
Assert.equal(Cu.getObjectPrincipal(sb.obj).origin, 'http://www.example.com');
6
}