tor-browser

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

browser_about_settings.js (746B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 add_task(async function test_openPreferences_aboutSettings() {
      7  await BrowserTestUtils.withNewTab(
      8    {
      9      gBrowser,
     10      url: "about:settings",
     11    },
     12    async () => {
     13      is(
     14        gBrowser.currentURI.spec,
     15        "about:settings",
     16        "about:settings should open normally"
     17      );
     18 
     19      //  using `openPreferencesViaOpenPreferencesAPI` would introduce an extra about:blank tab we need to take care of
     20      await openPreferences("paneGeneral");
     21 
     22      is(
     23        gBrowser.currentURI.spec,
     24        "about:settings#general",
     25        "openPreferences should keep about:settings"
     26      );
     27    }
     28  );
     29 });