-
Notifications
You must be signed in to change notification settings - Fork 676
t.dispatchEvent method #6103
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
t.dispatchEvent method #6103
Conversation
❌ Tests for the commit 4bf1bdd have failed. See details: |
@@ -0,0 +1,93 @@ | |||
import hammerhead from '../deps/hammerhead'; |
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.
Rewrite all new files with TypeScript.
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 1dc17e9 have failed. See details: |
❌ Tests for the commit 992b6c4 have failed. See details: |
❌ Tests for the commit d50f3a8 have failed. See details: |
✅ Tests for the commit d50f3a8 have passed. See details: |
t.dispatchEvent method
Dispatches an event over a specified webpage element.
Has the following params:
For mouse/drag events - MouseEvent constructor is called
For input events (beforeinput, input) - InputEvent constructor is called
For keayboard events - KeyboardEvent constructor is called
For focus events - FocusEvent constructor is called
For pointer events - PointerEvent constructor is called
For any other events the
CustomEvent
constructor is called.If the
eventConstructor
property is passed throuth the options, then theeventConstructor
Ctor is called.By default, events have bubbles and cancelable properties set to true.
For mouseevents - buttons property is set to 1 (left button)
the
relatedTarget
property for focus events is supported.Complex events such as TouchEvent are supported only as CustomEvents
The feature is not supported in IE11