summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/testdriver/click.html
blob: 37721ad9ef3df10f8cdc1da74c27a2259d4601f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset="utf-8">
<title>TestDriver click method</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<button type="button" id="button">Button</button>

<script>
async_test(t => {
  let button = document.getElementById("button");
  test_driver
    .click(button)
    .then(() => t.done())
    .catch(t.unreached_func("click failed"));
});
</script>