tor-browser

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

browser_dom_basic.js (593B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 const TEST_PAGE_URL = URL_ROOT + "page_basic.html";
      7 
      8 /**
      9 * Basic test that checks content of the DOM panel.
     10 */
     11 add_task(async function () {
     12  info("Test DOM panel basic started");
     13 
     14  const { panel } = await addTestTab(TEST_PAGE_URL);
     15 
     16  // Expand specified row and wait till children are displayed.
     17  await expandRow(panel, "_a");
     18 
     19  // Verify that child is displayed now.
     20  const childRow = getRowByLabel(panel, "_data");
     21  ok(childRow, "Child row must exist");
     22 });