Add tests for legacy-activation-behaviors#25020
Merged
Conversation
saschanaz
commented
Aug 14, 2020
| ev.preventDefault(); | ||
| input.dispatchEvent(ev); | ||
| setTimeout(t.step_func_done(() => assert_false(input.checked))); | ||
| }, `disabled checkbox should get legacy-canceled-activation behavior 2`); |
Member
Author
There was a problem hiding this comment.
This fails on Firefox but passes when input.onclick = () => {} is added. The spec does not require such thing, right?
3 tasks
domenic
reviewed
Aug 14, 2020
dom/events/Event-dispatch-click.html
Outdated
| input.onclick = t.step_func(ev => { | ||
| assert_true(input.checked); | ||
| ev.preventDefault(); | ||
| setTimeout(t.step_func_done(() => { |
Member
There was a problem hiding this comment.
I think lint will fail on setTimeout usage. queueMicrotask() should suffice, right? Otherwise t.step_timeout() would work.
domenic
approved these changes
Aug 17, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corresponds to whatwg/html#5827