rem: $.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; 
add: ok( $.ajax({url: "data/text.php", cache:false}), "test with no parameters" ); ok( $.ajax({url: "data/text.php?pizza=true", cache:false}), "test with 1 parameter" ); ok( $.ajax({url: "data/text.php?_=tobereplaced555", cache:false}), "test with _= parameter" ); ok( $.ajax({url: "data/text.php?pizza=true&_=tobereplaced555", cache:false}), "test with 1 parameter plus _= one" ); ok( $.ajax({url: "data/text.php?_=tobereplaced555&tv=false", cache:false}), "test with 1 parameter plus _= one before it" ); ok( $.ajax({url: "data/text.php?name=David&_=tobereplaced555&washere=true", cache:false}), "test with 2 parameters surrounding _= one" ); 
context: 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;});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/aee221d33c2db2c76639dabeca2b1e3d022e348e/ajax.js/buggy/test/unit/ajax.js