AMO:Developers/JavaScriptTesting: Difference between revisions

m
(Created page with "The [http://github.com/jbalogh/zamboni Zamboni Django app] has quite a bit of JavaScript now for features on the site. We currently don't have any automated tests to develop on ...")
 
Line 35: Line 35:
To simulate errors and not depend on a web server, it makes sense to mock out Ajax requests.
To simulate errors and not depend on a web server, it makes sense to mock out Ajax requests.


* [http://enterprisejquery.com/2010/07/mock-your-ajax-requests-with-mockjax-for-rapid-development/ mockjax] jQuery plugin works well for this
* The [http://enterprisejquery.com/2010/07/mock-your-ajax-requests-with-mockjax-for-rapid-development/ mockjax] jQuery plugin works well for this
Confirmed users
324

edits