This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Mouse: Mouse is always an active pointer #282
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
20 changes: 20 additions & 0 deletions
20
tests/functional/pointerevent_releasepointercapture_invalid_pointerid-manual.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
define(function(require) { | ||
var registerSuite = require('intern!object'); | ||
var w3cTest = require('../support/w3cTest'); | ||
var name = 'pointerevent_releasepointercapture_invalid_pointerid-manual'; | ||
|
||
registerSuite({ | ||
name: name, | ||
|
||
main: function() { | ||
return w3cTest(this.remote, name + '.html') | ||
.findById('target0') | ||
.moveMouseTo(50, 25) | ||
.pressMouseButton(0) | ||
.moveMouseTo(60, 25) | ||
.releaseMouseButton(0) | ||
.end() | ||
.checkResults(); | ||
} | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
tests/functional/pointerevent_setpointercapture_inactive_button_mouse-manual.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
define(function(require) { | ||
var registerSuite = require('intern!object'); | ||
var w3cTest = require('../support/w3cTest'); | ||
var name = 'pointerevent_setpointercapture_inactive_button_mouse-manual'; | ||
|
||
registerSuite({ | ||
name: name, | ||
|
||
main: function() { | ||
return w3cTest(this.remote, name + '.html') | ||
.findById('target0') | ||
.moveMouseTo(50, 25) | ||
.moveMouseTo(60, -25) | ||
.end() | ||
.checkResults(); | ||
} | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
tests/functional/pointerevent_setpointercapture_invalid_pointerid-manual.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
define(function(require) { | ||
var registerSuite = require('intern!object'); | ||
var w3cTest = require('../support/w3cTest'); | ||
var name = 'pointerevent_setpointercapture_invalid_pointerid-manual'; | ||
|
||
registerSuite({ | ||
name: name, | ||
|
||
main: function() { | ||
return w3cTest(this.remote, name + '.html') | ||
.findById('target0') | ||
.moveMouseTo(50, 25) | ||
.clickMouseButton(0) | ||
.end() | ||
.checkResults(); | ||
} | ||
}); | ||
}); |
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh look, a sane API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not supported on IE11 is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😠 You're right, we still can't use this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sane API should have given it away. 😈 I'm having the same problem when spitballing jQuery 4.0 event work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😭 We'll need to find a way to set the buttons property on IE's mouse event. I think it is only relevant for IE9, since IE10 uses
MSPointerEvent
and IE11 has native pointer events.The need for a valid buttons property arises from proper button state checking during capture.
Alternatively, with more and more functional tests, we may be able to skip the four capture related unit tests on IE9 (or in general).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, well PEP doesn't support IE9 :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that solves it. 😆