tor-browser

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

details-toggle-source-commandfor.tentative.html (1081B)


      1 <!DOCTYPE html>
      2 <link rel=author href="mailto:jarhar@chromium.org">
      3 <link rel=help href="https://github.com/whatwg/html/issues/9111">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 <script src="/resources/testdriver-actions.js"></script>
      9 <script src="../../popovers/resources/toggle-event-source-test.js"></script>
     10 
     11 <button id=commandsource commandfor=details command=toggle>command source</button>
     12 <details id=details>
     13  <summary>summary</summary>
     14  details
     15 </details>
     16 
     17 <script>
     18 const details = document.getElementById('details');
     19 const commandsource = document.getElementById('commandsource');
     20 
     21 createToggleEventSourceTest({
     22  description: 'ToggleEvent.source on <details> elements: command invokers.',
     23  target: details,
     24  openFunc: async () => commandsource.click(),
     25  closeFunc: async () => commandsource.click(),
     26  openSource: commandsource,
     27  closeSource: commandsource,
     28  skipBeforetoggle: true
     29 });
     30 </script>