rem: test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post("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' ); }); 
add: $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); 
context: test("$.post(String, Hash, Function) - simple with xml", function() {	expect(2);	stop();	$.post("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();	});});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3217/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js