accessible/tests/mochitest/elm/test_shadowroot.html
author Mark Banner <standard8@mozilla.com>
Fri, 19 Oct 2018 12:55:39 +0000
changeset 490493 edc4ae8f78e2fb02647d7cd85cb19830a17dcd1d
parent 444050 bdd0bea249e3ded6e7e9a263ee002205ec30abf9
permissions -rw-r--r--
Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop Differential Revision: https://phabricator.services.mozilla.com/D8389

<!DOCTYPE html>
<html>
<head>
  <title>ShadowRoot tests</title>
  <link rel="stylesheet" type="text/css"
        href="chrome://mochikit/content/tests/SimpleTest/test.css" />

  <script type="application/javascript"
          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>

</head>
<body>

  <a target="_blank"
    title="Ensure accessible objects are created for shadow root"
    href="https://bugzilla.mozilla.org/show_bug.cgi?id=1026125">
     Mozilla Bug 1026125
  </a><br/>
  <p id="display"></p>
  <div id="content" style="display: none"></div>
  <pre id="test">
  </pre>

  <script>
    SimpleTest.waitForExplicitFinish();
    SpecialPowers.pushPrefEnv({
      set: [
        ["dom.webcomponents.shadowdom.enabled", true],
      ],
    }, function() {
      // This test loads in an iframe, to ensure that the element instance is
      // loaded with the correct value of the preference.
      var iframe = document.createElement("iframe");
      iframe.src = "test_shadowroot_subframe.html";
      document.body.appendChild(iframe);
    });
  </script>

</body>
</html>