Test#triggerEvent()

triggerEvent (selector, context, type, options) RSVP.Promisepublic

Defined in packages/ember-testing/lib/helpers/trigger_event.js:6
Available since 1.5.0

Triggers the given DOM event on the element identified by the provided selector. Example: javascript triggerEvent('#some-elem-id', 'blur'); This is actually used internally by the keyEvent helper like so: javascript triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });

Parameters:

selector String
jQuery selector for finding element on the DOM
context [String]
jQuery selector that will limit the selector argument to find only within the context's children
type String
The event type to be triggered.
options [Object]
The options to be passed to jQuery.Event.

Returns:

RSVP.Promise
doc_EmberJs
2016-11-30 16:53:44
Comments
Leave a Comment

Please login to continue.