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: "data/name.php?wait=5", error: pass, success: fail 
add: $.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); start(); 
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: "data/name.php?wait=5",	  error: pass,	  success: fail	});});
meta: 6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js