Mark,

As far as i know its best to use 
protractor<https://github.com/angular/protractor> for 
event based testing instead of karma.


On Monday, 28 April 2014 02:01:29 UTC+5:30, Mark Volkmann wrote:
>
> I have a directive that limits the allowed keypresses in an input to 
> digits and navigation keys. I'd like to write a Karma test for it, but I'm 
> becoming convinced that it is not possible. The reason is that triggering a 
> keypress event on an input element does NOT change the value of the input! 
> See 
> http://stackoverflow.com/questions/15729913/execute-triggered-keypress-javascript
> .
>
> Is it correct that there is no way to write a Karma test for this kind of 
> directive?
>
> -- 
> R. Mark Volkmann
> Object Computing, Inc. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to