|
1 function check_about_rights(tab) { |
|
2 let doc = gBrowser.getBrowserForTab(tab).contentDocument; |
|
3 ok(doc.getElementById("your-rights"), "about:rights content loaded"); |
|
4 gBrowser.removeTab(tab); |
|
5 finish(); |
|
6 } |
|
7 |
|
8 function test() { |
|
9 waitForExplicitFinish(); |
|
10 let tab = gBrowser.selectedTab = gBrowser.addTab("about:blank"); |
|
11 let browser = gBrowser.getBrowserForTab(tab); |
|
12 browser.addEventListener("load", function() { |
|
13 browser.removeEventListener("load", arguments.callee, true); |
|
14 |
|
15 ok(true, "about:rights loaded"); |
|
16 executeSoon(function() { check_about_rights(tab); }); |
|
17 }, true); |
|
18 browser.loadURI("about:rights", null, null); |
|
19 } |