tor-browser

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

browser_baselinecoverage_browser-chrome.js (604B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 /* eslint-disable mozilla/no-arbitrary-setTimeout */
      4 
      5 "use strict";
      6 
      7 add_task(async function () {
      8  requestLongerTimeout(2);
      9  let newWin = await BrowserTestUtils.openNewBrowserWindow();
     10 
     11  await BrowserTestUtils.withNewTab(
     12    {
     13      gBrowser,
     14      url: "about:blank",
     15    },
     16    async function () {
     17      ok(true, "Collecting baseline coverage for browser-chrome tests.");
     18      await new Promise(c => setTimeout(c, 30 * 1000));
     19    }
     20  );
     21 
     22  await BrowserTestUtils.closeWindow(newWin);
     23 });