Test with jQuery
We have a working client for the TO-DO application. But the client-side code we wrote is manipulating the DOM and accessing the web service directly using the functions available in browsers. Manipulating the DOM with the built-in functions can get tiring and the code can turn noisy. The jQuery library provides a number of convenience functions to select DOM elements, to navigate the DOM, and to update the DOM. Code using jQuery is far less noisy than code that directly interacts with the DOM. That’s one of the reasons for the popularity of this library. It’s highly likely that you may prefer to use jQuery to program the client side. To get a good feel for how to automate the tests for code that uses jQuery, we’ll reimplement ...
Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.