rem: test("synchronous request with callbacks", function() { expect(2); var result; $.ajax({url: url("data/json_obj.js"), async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } }); ok( /^{ "data"/.test( result ), "check returned text" ); 
add: test("pass-through request object", function() { expect(7); stop(true);  var target = "data/name.html"; var count = 0; var success = function() { if(count++ == 5) start(); };  ok( $.get(url(target), success), "get" ); ok( $.getIfModified(url(target), success), "getIfModified" ); ok( $.post(url(target), success), "post" ); ok( $.getScript(url("data/test.js"), success), "script" ); ok( $.getJSON(url("data/json_obj.js"), success), "json" ); ok( $.ajax({url: url(target), success: success}), "generic" ); 
context: test("synchronous request with callbacks", function() {	expect(2);	var result;	$.ajax({url: url("data/json_obj.js"), async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } });	ok( /^{ "data"/.test( result ), "check returned text" );});
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/2ef4093cf7f52383dd43bd361864edcda27e5c3c/ajaxTest.js/buggy/src/ajax/ajaxTest.js