tor-browser

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

toplevel.html (902B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <script src="/resources/testdriver.js"></script>
      5 <script src="/resources/testdriver-actions.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="../resources/input-onmessage.js"></script>
     10 <script src="../resources/pending-input-utils.js"></script>
     11 </head>
     12 <body>
     13  <p>Ensure that pointer events dispatched the to the toplevel document are detectable by isInputPending.</p>
     14  <script>
     15    window.addEventListener('load', () => {
     16      PendingInputUtils.testDetectDiscretePendingInput(window, () => {
     17        return new test_driver.Actions()
     18          .addPointer('p', 'mouse')
     19          .pointerMove(10, 10)
     20          .pointerDown()
     21          .pointerUp();
     22      }, 'toplevel mouse events detected');
     23    });
     24  </script>
     25 </body>
     26 </html>