mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
ajax test: Removed test for extending with null.
This commit is contained in:
parent
96ca83d150
commit
5311565223
@ -298,18 +298,14 @@ test("ajax cache", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("global ajaxSettings", function() {
|
test("global ajaxSettings", function() {
|
||||||
expect(3);
|
expect(2);
|
||||||
|
|
||||||
var tmp = jQuery.extend({}, jQuery.ajaxSettings);
|
var tmp = jQuery.extend({}, jQuery.ajaxSettings);
|
||||||
var orig = { url: "data/with_fries.xml", data: null };
|
var orig = { url: "data/with_fries.xml" };
|
||||||
var t;
|
var t;
|
||||||
|
|
||||||
$.ajaxSetup({ data: {foo: 'bar', bar: 'BAR'} });
|
$.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 = jQuery.extend({}, orig);
|
||||||
t.data = {};
|
t.data = {};
|
||||||
$.ajax(t);
|
$.ajax(t);
|
||||||
|
Loading…
Reference in New Issue
Block a user