tor-browser

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

browser_check_tooltips_in_navbar.js (729B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 add_task(async function check_tooltips_in_navbar() {
      8  await startCustomizing();
      9  let homeButtonWrapper = document.getElementById("wrapper-home-button");
     10  let homeButton = document.getElementById("home-button");
     11  is(
     12    homeButtonWrapper.getAttribute("tooltiptext"),
     13    homeButton.getAttribute("label"),
     14    "the wrapper's tooltip should match the button's label"
     15  );
     16  ok(
     17    homeButtonWrapper.getAttribute("tooltiptext"),
     18    "the button should have tooltip text"
     19  );
     20  await endCustomizing();
     21 });