Skip to content
Permalink
Browse files

Add unit test for fix to #7578.

  • Loading branch information...
jitter committed Nov 24, 2010
1 parent 8259efe commit a2c2d68d7f29eb543d937a72bdf4b5399b7aa14a
Showing with 13 additions and 2 deletions.
  1. +13 −2 test/unit/ajax.js
@@ -710,10 +710,10 @@ test("jQuery.getScript(String, Function) - no callback", function() {
});

test("jQuery.ajax() - JSONP, Local", function() {
expect(8);
expect(9);

var count = 0;
function plus(){ if ( ++count == 8 ) start(); }
function plus(){ if ( ++count == 9 ) start(); }

stop();

@@ -828,6 +828,17 @@ test("jQuery.ajax() - JSONP, Local", function() {
plus();
}
});

//#7578
jQuery.ajax({
url: "data/jsonp.php",
dataType: "jsonp",
beforeSend: function(){
strictEqual( this.cache, false, "cache must be false on JSON request" );
plus();
return false;
}
});
});

test("JSONP - Custom JSONP Callback", function() {

0 comments on commit a2c2d68

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