rem: 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(); } 
add: $.getScript(url("data/test.js"), function() { equals( foobar, "bar", 'Check if script was evaluated' ); setTimeout(start, 100); 
context: 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();		}	});	$.ajax({		url: "data/jsonp.php?callback=?",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (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();		}	});	$.ajax({		url: "data/jsonp.php",		dataType: "jsonp",		data: { callback: "?" },		success: function(data){			ok( data.data, "JSON results returned (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();		}	});	$.ajax({		type: "POST",		url: "data/jsonp.php",		data: "callback=?",		dataType: "jsonp",		success: function(data){			ok( data.data, "JSON results returned (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();		}	});});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/aee221d33c2db2c76639dabeca2b1e3d022e348e/ajax.js/buggy/test/unit/ajax.js