>
> How to implement waits behavior with waitsFor?
waitsFor(function () {return jig.httpResponse;}, "getting status ", 35000);
pass a function that returns a truthy value when Jasmine can stop waiting. In this case, when a response has been received from an HTTP server.
Doug Reeder
reed...@gmail.com
http://reeder29.livejournal.com/
https://twitter.com/reeder29
https://twitter.com/hominidsoftware
http://outlinetracker.com
In my scenario, i just have to wait for an amount of time (because i'm testing that a function is called after a while) so, for me, waits function is the perfect fit. I just don't understand why this function is considered deprecated, given that the alternative implementations feels more like a workaround.
--To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/P8DEPiRhkYYJ.
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.