tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

browser_oversized.js (770B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 const ROOT =
      5  "http://mochi.test:8888/browser/browser/base/content/test/favicons/";
      6 
      7 add_task(async () => {
      8  await BrowserTestUtils.withNewTab(
      9    { gBrowser, url: "about:blank" },
     10    async browser => {
     11      let faviconPromise = waitForFaviconMessage(true, `${ROOT}large.png`);
     12 
     13      BrowserTestUtils.startLoadingURIString(
     14        browser,
     15        ROOT + "large_favicon.html"
     16      );
     17      await BrowserTestUtils.browserLoaded(browser);
     18 
     19      await Assert.rejects(
     20        faviconPromise,
     21        result => {
     22          return result.iconURL == `${ROOT}large.png`;
     23        },
     24        "Should have failed to load the large icon."
     25      );
     26    }
     27  );
     28 });