rem: url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be the custom header sent" ); start(); } 
add: dataType: "html", url: "data/test.html", success: function(data) { ok( data.match(/^html text/), 'Check content for datatype html' ); ok( testFoo == "foo", 'Check if script was evaluated for datatype html' ); setTimeout(verifyEvaluation, 600); } 
context: test("$.ajax - beforeSend", function() {	expect(1);	stop();	var customHeader = "value";	$.ajax({		url: "data/name.php", 		data: {'req': true},		beforeSend: function(xml) {			xml.setRequestHeader('X-Custom-Header', customHeader);		},		success: function(data) {			ok( data == customHeader, "check return value, should be the custom header sent" );			start();		}	});});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2798/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/clean/src/ajax/ajaxTest.js