summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/forms/resetting-a-form/reset-event.html
blob: f7d98f721653cd5ed98aa602e367cea635cd5820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<title>Test aspects of the reset event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
  async_test((t) => {
    var form = document.createElement("form")
    form.onreset = t.step_func_done((e) => {
      assert_true(e.bubbles)
      assert_true(e.cancelable)
      assert_true(e.isTrusted)
      assert_equals(e.target, form)
    })
    form.reset()
    assert_unreached()
  })
</script>