test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post(url("data/name.php"), {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); 
$.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' ); 
test("$.post(String, Hash, Function) - simple with xml", function() {	expect(2);	stop();	$.post(url("data/name.php"), {xml: "5-2"}, function(xml){	  $('math', xml).each(function() {		    ok( $('calculation', this).text() == '5-2', 'Check for XML' );		    ok( $('result', this).text() == '3', 'Check for XML' );		 });	  start();	});});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/2ef4093cf7f52383dd43bd361864edcda27e5c3c/ajaxTest.js/clean/src/ajax/ajaxTest.js