rem: $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); 
add: 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 }); }); 
context: 	  $('math', xml).each(function() {		    ok( $('calculation', this).text() == '5-2', 'Check for XML' );		    ok( $('result', this).text() == '3', 'Check for XML' );		 });
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1375/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/buggy/src/ajax/ajaxTest.js