Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PointerEvent detail=0 test #3351

Merged
merged 2 commits into from Jul 29, 2016
Merged

PointerEvent detail=0 test #3351

merged 2 commits into from Jul 29, 2016

Conversation

NavidZ
Copy link
Member

@NavidZ NavidZ commented Jul 26, 2016

closes #3349 as a test for w3c/pointerevents#116 change in the spec.

@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @EvgenyAgafonchikov, @RByers, @Steditor, @bethge, @jacobrossi, @plehegar, @scottgonzalez, and @staktrace.

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/6747

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@NavidZ
Copy link
Member Author

NavidZ commented Jul 26, 2016

@RByers

@@ -13,9 +13,10 @@ var All_Pointer_Events = [
// Check for conformance to PointerEvent interface
// TA: 1.1, 1.2, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13
function check_PointerEvent(event) {
let pointerTestName = event.pointerType + ' ' + event.type;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use var for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it okay to change all "var" to "let" in this file?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if the W3C has any standard policy on this. I'd personally prefer for us to use var just because PEP runs this test suite and supports IE 10, so there'd be less work involved for us if we didn't have to worry about let.

@scottgonzalez
Copy link
Contributor

Are the id additions related to detail?

@NavidZ
Copy link
Member Author

NavidZ commented Jul 26, 2016

No they are not. It was something I've been meaning to add and just added it to this PR. Should I have created a separate PR for it?

@scottgonzalez
Copy link
Contributor

Should I have created a separate PR for it?

Probably. What's the motivation for adding them?

@NavidZ
Copy link
Member Author

NavidZ commented Jul 26, 2016

Basically all actionable elements in these tests have id. So I thought to be consistent we need id for these items as well as we need to interact with them. We used id in our automation scripts to run these tests and to be consistent and not add more stuff to that I thought maybe it is good to just have id for these two elements as well.

@RByers RByers self-assigned this Jul 29, 2016
@RByers
Copy link
Contributor

RByers commented Jul 29, 2016

LGTM

@RByers RByers merged commit 7a08a35 into web-platform-tests:master Jul 29, 2016
ddorwin pushed a commit to ddorwin/web-platform-tests that referenced this pull request Sep 13, 2016
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.

Add pointerevent test for detail
5 participants