tor-browser

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

test_key_space_single_summary.html (631B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5  <script src="/tests/SimpleTest/EventUtils.js"></script>
      6  <script>
      7  SimpleTest.waitForExplicitFinish();
      8  function runTest() {
      9    const summary = document.querySelector("summary");
     10    summary.focus();
     11    synthesizeKey(" ");
     12 
     13    const details = document.querySelector("details");
     14    ok(details.open, "Dispatch space key on summary should open details.");
     15 
     16    SimpleTest.finish();
     17  }
     18  </script>
     19 </head>
     20 <body onload="runTest();">
     21  <details>
     22    <summary>Summary</summary>
     23    <p>This is the details.</p>
     24  </details>
     25 </body>
     26 </html>