tor-browser

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

browser_inspector_highlighter-eyedropper-image.js (606B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 // Test that the eyedropper icon in the toolbar is enabled when viewing an image.
      7 
      8 const TEST_URL =
      9  URL_ROOT + "img_browser_inspector_highlighter-eyedropper-image.png";
     10 
     11 add_task(async function () {
     12  const { inspector } = await openInspectorForURL(TEST_URL);
     13  info("Check the inspector toolbar when viewing an image");
     14  const button = inspector.panelDoc.querySelector(
     15    "#inspector-eyedropper-toggle"
     16  );
     17  ok(!button.disabled, "The button is enabled in the toolbar");
     18 });