In what ways can I test an image slideshow javascript code?
Posted
by
Rahul
on Programmers
See other posts from Programmers
or by Rahul
Published on 2012-11-30T08:44:24Z
Indexed on
2012/11/30
11:20 UTC
Read the original article
Hit count: 183
JavaScript
|testing
I have a slideshow of images (and links) on a page. These images are part of a JSON response to a request sent after the page loads. The slideshow is set to play at an interval of 2 seconds. The slideshow can be paused, played over, and all other controls a normal slideshow would have.
As a Rails dev, I proposed cucumber but the javascript guys in the team are not comfortable with ruby. I saw some cucumber for javascript libraries coming up, still in experimental stage.
I checked out jasmine and related tutorials but all I could get from them is how I can carry out any internal functional testing such as credit-cart validation, etc. - which I think could actually be handled in unit testing?
(Screw the research I did and) How should I go about testing this and similar components?
© Programmers or respective owner