test("$.ajax() - JSONP, Local", function() { expect(7);  var count = 0; function plus(){ if ( ++count == 7 ) start(); }  stop();  $.ajax({ url: "data/jsonp.php", dataType: "jsonp", success: function(data){ ok( data.data, "JSON results returned (GET, no callback)" ); plus(); }, error: function(data){ ok( false, "Ajax error JSON (GET, no callback)" ); plus(); } 
$.getScript(url("data/test.js"), function() { equals( foobar, "bar", 'Check if script was evaluated' ); setTimeout(start, 100); 
test("$.ajax() - JSONP, Local", function() {	expect(7);	var count = 0;	function plus(){ if ( ++count == 7 ) start(); }	stop();	$.ajax({		url: "data/jsonp.php",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (GET, no callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (GET, no callback)" );			plus();		}	});	$.ajax({		url: "data/jsonp.php?callback=?",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (GET, url callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (GET, url callback)" );			plus();		}	});	$.ajax({		url: "data/jsonp.php",		dataType: "jsonp",		data: "callback=?",		success: function(data){			ok( data.data, "JSON results returned (GET, data callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (GET, data callback)" );			plus();		}	});	$.ajax({		url: "data/jsonp.php",		dataType: "jsonp",		data: { callback: "?" },		success: function(data){			ok( data.data, "JSON results returned (GET, data obj callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (GET, data obj callback)" );			plus();		}	});	$.ajax({		type: "POST",		url: "data/jsonp.php",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (POST, no callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (GET, data obj callback)" );			plus();		}	});	$.ajax({		type: "POST",		url: "data/jsonp.php",		data: "callback=?",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (POST, data callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (POST, data callback)" );			plus();		}	});	$.ajax({		type: "POST",		url: "data/jsonp.php",		data: { callback: "?" },		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (POST, data obj callback)" );			plus();		},		error: function(data){			ok( false, "Ajax error JSON (POST, data obj callback)" );			plus();		}	});});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/06c2f06a2183ef17a8119ef25a383a02572c0b55/ajax.js/clean/test/unit/ajax.js