tor-browser

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

browser_styleeditor_xul.js (573B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 // Test that the style-editor initializes correctly for XUL windows.
      5 
      6 "use strict";
      7 
      8 waitForExplicitFinish();
      9 
     10 const TEST_URL = TEST_BASE + "doc_xulpage.xhtml";
     11 
     12 add_task(async function () {
     13  const tab = await addTab(TEST_URL);
     14  const toolbox = await gDevTools.showToolboxForTab(tab, {
     15    toolId: "styleeditor",
     16  });
     17  const panel = toolbox.getCurrentPanel();
     18 
     19  ok(
     20    panel,
     21    "The style-editor panel did initialize correctly for the XUL window"
     22  );
     23 });