Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Commented Unassigned: Timeout exception: Callback functions [153]

$
0
0
Hi:

I'm getting timeout exception while running a qunit test case using Chutzpah.
This test case ran to success if I use a test runner HTML file:

Issue Description:

I have to test a function that contains an AJAX call

my ajax function

myFunction(params, successCallbackfunction){

//ajax call other steps avoided
success: function(data){
//some data processing
if(successCallbackfunction){
successCallbackfunction();
}
}
}
Qunit test case:
test("testAJAX",function(){
stop();
myFunction(params, function(){

start();
//assertion
expect(1);
});
});

Chutzpah: Version: 2.3.0
Comments: Hi Matt: Could you please let me know, do you have a solution for this issue?

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>