$.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' ); }); });  $.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(base + "data/json_assigned_obj.js", function() { ok( typeof json_assigned_obj == "object", 'Check JSON loaded' ); equals( json_assigned_obj.test, "worked", 'Check JSON obj.test' ); 
test("$.post(String, Hash, Function) - simple with xml", function() {	expect(4);	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' );		 });	});	$.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/4b8f6cdc86c395fb92c7d50e8642118963232af4/ajax.js/buggy/test/unit/ajax.js