var tmp = jQuery.extend({}, jQuery.ajaxSettings); var orig = { url: "data/with_fries.xml", data: null }; var t; 
$("#firstp").bind("ajaxSuccess", function (e, xml, s) { var re = /_=(.*?)(&|$)/g; var oldOne = null; for (var i = 0; i < 6; i++) { var ret = re.exec(s.url); if (!ret) { break; } oldOne = ret[1]; } equals(i, 1, "Test to make sure only one 'no-cache' parameter is there"); ok(oldOne != "tobereplaced555", "Test to be sure parameter (if it was there) was replaced"); if(++count == 6) start(); }); 
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