mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
Bug 1081537 - Tests. r=bz
This commit is contained in:
parent
3268a57801
commit
b1a0136a16
@ -2,3 +2,4 @@
|
||||
support-files = bug592641_img.jpg
|
||||
|
||||
[browser_bug592641.js]
|
||||
[browser_bug1081537.js]
|
||||
|
11
content/html/document/test/browser_bug1081537.js
Normal file
11
content/html/document/test/browser_bug1081537.js
Normal file
@ -0,0 +1,11 @@
|
||||
// This test is useful because mochitest-browser runs as an addon, so we test
|
||||
// addon-scope paths here.
|
||||
let ifr;
|
||||
function test() {
|
||||
ifr = document.createElement('iframe');
|
||||
document.getElementById('main-window').appendChild(ifr);
|
||||
is(ifr.contentDocument.nodePrincipal.origin, "[System Principal]");
|
||||
ifr.contentDocument.open();
|
||||
ok(true, "Didn't throw");
|
||||
}
|
||||
registerCleanupFunction(() => ifr.remove());
|
Loading…
Reference in New Issue
Block a user