toolkit/content/tests/browser/browser_bug594509.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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 }
     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);
    15       ok(true, "about:rights loaded");
    16       executeSoon(function() { check_about_rights(tab); });
    17     }, true);
    18   browser.loadURI("about:rights", null, null);
    19 }

mercurial