rem: $.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(); 
add:  $.ajax({ url: base + "data/test.js", type: "POST", dataType: "script", success: function(data, status){ ok( foobar, "Script results returned (GET, no callback)" ); equals( status, "success", "Script results returned (GET, no callback)" ); start(); } 
context: test("$.getJSON(String, Hash, Function) - JSON array", function() {	expect(4);	stop();	$.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();	});});
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/c6a44c7943f460594a6a75081ad9bce76fea80f0/ajax.js/buggy/test/unit/ajax.js