How to test two or more asynchronous calls in a function?
Hi, I am doing jquery Qunit testing in my application, i use only asynchronous ajax calls. In a function i use 2 ajax calls. To test the async calls i use start() and stop(). In the callback of every async call i use start() and in test case after function is called, i use stop(). Original method: ============ function MyOriginalMethod() { Ajax_Async('/Home/Index', null, 'GET', false, MyCallBack1); Ajax_Async('/Home/MyAction', 'myName=ramesh', 'GET', false, MyCallBack2); } var MyCallBack1 =(function(){