rem: test("pass-through request object", function() { expect(7); stop(true); var count = 0; var success = function() { if(count++ == 6) start(); } var target = "data/name.html"; 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" ); 
add: test("global ajaxSettings", function() { expect(3);  var tmp = jQuery.extend({}, jQuery.ajaxSettings); var orig = { url: "data/with_fries.xml", data: null }; var t;  $.ajaxSetup({ data: {foo: 'bar', bar: 'BAR'} });  t = jQuery.extend({}, orig); $.ajax(t); ok( t.url.indexOf('foo') > -1 && t.url.indexOf('bar') > -1, "Check extending null" );  t = jQuery.extend({}, orig); t.data = {}; $.ajax(t); ok( t.url.indexOf('foo') > -1 && t.url.indexOf('bar') > -1, "Check extending {}" );  t = jQuery.extend({}, orig); t.data = { zoo: 'a', ping: 'b' }; $.ajax(t); ok( t.url.indexOf('ping') > -1 && t.url.indexOf('zoo') > -1 && t.url.indexOf('foo') > -1 && t.url.indexOf('bar') > -1, "Check extending { zoo: 'a', ping: 'b' }" );  jQuery.ajaxSettings = tmp; 
context: test("pass-through request object", function() {	expect(7);	stop(true);	var count = 0;	var success = function() {		if(count++ == 6)			start();	}	var target = "data/name.html";	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" );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/2ef4093cf7f52383dd43bd361864edcda27e5c3c/ajaxTest.js/clean/src/ajax/ajaxTest.js