$.ajaxSetup({ timeout: 0 });  $.ajax({ url: url("data/name.html"), beforeSend: function(xml) { check = true; }, success: function(data) { ok( check, "check beforeSend was executed" ); 
 $.ajax({url: url("data/name.html"), beforeSend: send, success: success, error: error, complete: function() { equals( counter.error, 0, 'Check succesful request, error callback' ); equals( counter.success, 2, 'Check succesful request, success callback' ); equals( counter.complete, 3, 'Check succesful request, complete callback' ); equals( counter.send, 2, 'Check succesful request, send callback' );  if ( !isLocal ) { counter.error = counter.success = counter.complete = counter.send = 0; $.ajaxTimeout(500);  $.ajax({url: url("data/name.php?wait=5"), beforeSend: send, success: success, error: error, complete: function() { equals( counter.error, 2, 'Check failed request, error callback' ); equals( counter.success, 0, 'Check failed request, success callback' ); equals( counter.complete, 3, 'Check failed request, failed callback' ); equals( counter.send, 2, 'Check failed request, send callback' ); 
test("$.ajax - beforeSend", function() {	expect(1);	stop();		var check = false;		$.ajaxSetup({ timeout: 0 });		$.ajax({		url: url("data/name.html"), 		beforeSend: function(xml) {			check = true;		},		success: function(data) {			ok( check, "check beforeSend was executed" );			start();		}	});});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/0477a6e99e95ae93da983e7fc2a30bf16ea8ca77/ajaxTest.js/clean/src/ajax/ajaxTest.js