tor-browser

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

browser_events_show.js (673B)


      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 /**
      8 * Test show event
      9 */
     10 addAccessibleTask(
     11  '<div id="div" style="visibility: hidden;"></div>',
     12  async function (browser) {
     13    let onShow = waitForEvent(EVENT_SHOW, "div");
     14    await invokeSetStyle(browser, "div", "visibility", "visible");
     15    let showEvent = await onShow;
     16    ok(
     17      showEvent.accessibleDocument instanceof nsIAccessibleDocument,
     18      "Accessible document not present."
     19    );
     20  },
     21  { iframe: true, remoteIframe: true }
     22 );