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