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:  window.foobar = null; $.ajax({ url: base + "data/test.js", dataType: "script", success: function(data){ ok( foobar, "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: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/e1af5faf80ff9a457bcb78757c3eb04b55e931d1/ajax.js/buggy/test/unit/ajax.js