rem: $.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' ); }); 
add: $.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' ); 
context: 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();	});});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/06c2f06a2183ef17a8119ef25a383a02572c0b55/ajax.js/clean/test/unit/ajax.js