How to test the focus/blur events in AngularJS using Jasmine/Mocha?

436 views
Skip to first unread message

Oleg

unread,
Aug 13, 2015, 4:43:12 AM8/13/15
to AngularJS

It links the container (element) and the inner input (inputElement). If the focus/blur event fired on input, it fires focus/blur event on the container using element.triggerHandler. If the focus came to the container, it is transferred focus to input using inputElement[0].focus

How to test this functionality? I try to do it here (by Jasmine): https://github.com/tamtakoe/oi.select/blob/master/src/services.spec.js#L63.
Reply all
Reply to author
Forward
0 new messages