$.getJSON(url("data/json.php"), {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); 
test("$.ajax() - script, Remote with scheme-less URL", function() { expect(2);  var base = window.location.href.replace(/\?.*$/, ""); base = base.replace(/^.*?\/\  stop();  window.foobar = null; $.ajax({ url: base + "data/test.js", dataType: "script", success: function(data){ ok( foobar, "Script results returned (GET, no callback)" ); start(); } 
	$.getJSON(url("data/json.php"), {json: "array"}, function(json) {	  ok( json[0].name == 'John', 'Check JSON: first, name' );	  ok( json[0].age == 21, 'Check JSON: first, age' );	  ok( json[1].name == 'Peter', 'Check JSON: second, name' );	  ok( json[1].age == 25, 'Check JSON: second, age' );	  start();	});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/06c2f06a2183ef17a8119ef25a383a02572c0b55/ajax.js/clean/test/unit/ajax.js