Re: How to TDD JavaScript so it thinks it is in a browser.
Nayan Hajratwala <[email protected]> Fri, 4 Apr 2014 17:47:48 -0400
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
Have you tried webdriver + phantomjs? --- Nayan Hajratwala ... @nhajratw ... 734.658.6032 ... http://agileshrugged.com > On Apr 4, 2014, at 5:35 PM, Ian <[email protected]> wrote: > > Hi all, > > How can I set up some programmed tests to test JavaScript, so it thinks > its in a browser? > > The JavaScript code modifies the style objects and the DOM. > > Have tried various utilities that claim to test JavaScript in the > browser, and they have > proved impractically slow. (A paste of a 25 character string took over 3 > minutes!) > > So I guess the JavaScript has to be run elsewhere (WSH?) and made to > think it is in a browser, > but I have no ideas how to do this. > > I can use Windows or Linux - (No mac :( ). > > Thanks > > Ian > >