Skip to content

Commit

Permalink
html/semantics/forms/the-input-element/radio.html: Assert that events…
Browse files Browse the repository at this point in the history
… initiated via HTMLElement.click() shouldn't be trusted

Fixes #1418
  • Loading branch information
cvrebert authored and zcorpan committed Feb 11, 2016
1 parent 3775815 commit 5d1a5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/semantics/forms/the-input-element/radio.html
Expand Up @@ -90,7 +90,7 @@
assert_true(click_fired, "input event should fire after click event");
assert_false(change_fired, "input event should fire before change event");
assert_true(e.bubbles, "input event should bubble")
assert_true(e.isTrusted, "input event should be trusted");
assert_false(e.isTrusted, "click()-initiated input event shouldn't be trusted");
assert_false(e.cancelable, "input event should not be cancelable");
});

Expand All @@ -99,7 +99,7 @@
assert_true(click_fired, "change event should fire after click event");
assert_true(input_fired, "change event should fire after input event");
assert_true(e.bubbles, "change event should bubble")
assert_true(e.isTrusted, "change event should be trusted");
assert_false(e.isTrusted, "click()-initiated change event shouldn't be trusted");
assert_false(e.cancelable, "change event should not be cancelable");
});

Expand Down

0 comments on commit 5d1a5c1

Please sign in to comment.