How to test the focus/blur events in AngularJS?

29 views
Skip to first unread message

Oleg I.

unread,
Aug 13, 2015, 11:18:38 AM8/13/15
to Jasmine

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 usinginputElement[0].focus

How to test this functionality? I try to do it here: https://github.com/tamtakoe/oi.select/blob/master/src/services.spec.js#L63.

Oleg I.

unread,
Aug 13, 2015, 11:18:38 AM8/13/15
to Jasmine
Reply all
Reply to author
Forward
0 new messages