$.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; 
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" ); 
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;});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/aee221d33c2db2c76639dabeca2b1e3d022e348e/ajax.js/buggy/test/unit/ajax.js