browser_dom_basic.js 640 B

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