tor-browser

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

property-reflection-imperative-setup.html (1095B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <script src="/html/resources/common.js"></script>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7  <script src="/resources/testdriver.js"></script>
      8  <script src="/resources/testdriver-vendor.js"></script>
      9  <script src="/resources/testdriver-actions.js"></script>
     10  <script src="/wai-aria/scripts/aria-utils.js"></script>
     11  <script src="resources/property-reflection-helper.js"></script>
     12 </head>
     13 <body>
     14  <div id="host-container"></div>
     15  <script>
     16    function append_test_imperatively(host_container, referenced_element_type) {
     17      host_container.setHTMLUnsafe('<div id="host-id"></div>');
     18      const host = host_container.firstElementChild;
     19      host.attachShadow({ mode: 'open', referenceTarget: 'target' });
     20      host.shadowRoot.innerHTML = `<${referenced_element_type} id="target"></${referenced_element_type}>`;
     21      return host;
     22    }
     23 
     24    run_test_for_all_reflecting_properties(append_test_imperatively, test_property_reflection, " with imperative setup");
     25  </script>
     26 </body>
     27 </html>