Skip to content

TouchEvent: expose legacy touch event APIs#33608

Merged
zcorpan merged 2 commits intomasterfrom
expose-legacy-touch-event-apis
Apr 12, 2022
Merged

TouchEvent: expose legacy touch event APIs#33608
zcorpan merged 2 commits intomasterfrom
expose-legacy-touch-event-apis

Conversation

@zcorpan
Copy link
Copy Markdown
Member

@zcorpan zcorpan commented Apr 12, 2022

Copy link
Copy Markdown
Member

@mustaqahmed mustaqahmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a suggestion.

<script src="/resources/testharnessreport.js"></script>
<script>
function supportsTouchEvents() {
assert_implements_optional('ontouchstart' in document, "'expose legacy touch event APIs' is false");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I don't know what assert_implements_optional logs in each case, but this still asserts true. Any chance the word "false" here could be misleading? What if we output a string similar to Line 15 below?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed is false.

@zcorpan zcorpan merged commit 3ac0fc0 into master Apr 12, 2022
@zcorpan zcorpan deleted the expose-legacy-touch-event-apis branch April 12, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants