summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/browser_jsterm_document_no_xray.js
blob: 8f6e6bda3ed5fa2ed77ff1534609bbe16f3a3a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

const TEST_URI = "data:text/html,<!DOCTYPE html>Test evaluating document";

add_task(async function () {
  const hud = await openNewTabAndConsole(TEST_URI);

  // check for occurrences of Object XRayWrapper, bug 604430
  const { node } = await executeAndWaitForResultMessage(
    hud,
    "document",
    "HTMLDocument"
  );
  is(node.textContent.includes("xray"), false, "document - no XrayWrapper");
});