rem: test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: url("data/name.php?wait=5"), error: pass, success: fail });  $.ajaxTimeout(0); }); 
add: $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); 
context: test("$.ajaxTimeout(Number) - with global timeout", function() {	stop();	var passed = 0;	var timeout;	$.ajaxTimeout(1000);	var pass = function() {		passed++;		if(passed == 2) {			ok( true, 'Check local and global callbacks after timeout' );			clearTimeout(timeout);	     $('#main').unbind("ajaxError");			start();		}	};	var fail = function() {		ok( false, 'Check for timeout failed' );		start();	};	timeout = setTimeout(fail, 1500);	$('#main').ajaxError(pass);	$.ajax({	  type: "GET",	  url: url("data/name.php?wait=5"),	  error: pass,	  success: fail	});	// reset timeout	$.ajaxTimeout(0);});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/d776dc9d5c5322e81b56272728325990ed6892bb/ajaxTest.js/clean/src/ajax/ajaxTest.js