rem: test("$.ajaxTimeout(Number) - with global timeout", function() { stop();  var passed = 0;  $.ajaxTimeout(1000);  var pass = function() { passed++; if ( passed == 2 ) { ok( true, 'Check local and global callbacks after timeout' ); $('#main').unbind("ajaxError"); start(); } };  var fail = function(a,b,c) { ok( false, 'Check for timeout failed ' + a + ' ' + b ); start(); };  $('#main').ajaxError(pass);  $.ajax({ type: "GET", url: url("data/name.php?wait=5"), error: pass, success: fail 
add: $.post(url("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;	$.ajaxTimeout(1000);		var pass = function() {		passed++;		if ( passed == 2 ) {			ok( true, 'Check local and global callbacks after timeout' );	     	$('#main').unbind("ajaxError");			start();		}	};		var fail = function(a,b,c) {		ok( false, 'Check for timeout failed ' + a + ' ' + b );		start();	};		$('#main').ajaxError(pass);		$.ajax({	  type: "GET",	  url: url("data/name.php?wait=5"),	  error: pass,	  success: fail	});		// reset timeout	$.ajaxTimeout(0);});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/0477a6e99e95ae93da983e7fc2a30bf16ea8ca77/ajaxTest.js/buggy/src/ajax/ajaxTest.js