Skip to content
Permalink
Browse files

ajax test: Removed test for extending with null.

  • Loading branch information
scottgonzalez committed May 7, 2008
1 parent 96ca83d commit 5311565223cca0158cb44f4fffa812ce8dd4a4c8
Showing with 2 additions and 6 deletions.
  1. +2 −6 test/unit/ajax.js
@@ -298,18 +298,14 @@ test("ajax cache", function () {
});

test("global ajaxSettings", function() {
expect(3);
expect(2);

var tmp = jQuery.extend({}, jQuery.ajaxSettings);
var orig = { url: "data/with_fries.xml", data: null };
var orig = { url: "data/with_fries.xml" };
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);

0 comments on commit 5311565

Please sign in to comment.
You can’t perform that action at this time.