diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2014-05-30 09:48:43 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2014-06-02 16:41:00 -0400 |
commit | 479e37f436a6676b5b52a31a54c6efe3103d73f3 (patch) | |
tree | bc05803e3e886344ab44ea94a28992f7e21062a2 /test/unit/ajax.js | |
parent | 8530a2fc726bf70cf57631c6054dd99488e890d7 (diff) | |
download | jquery-479e37f436a6676b5b52a31a54c6efe3103d73f3.tar.gz jquery-479e37f436a6676b5b52a31a54c6efe3103d73f3.zip |
Ajax: Support usage without jQuery.event
Fixes #15118
Closes gh-1588
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 68628a2d3..97372c5a0 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -415,6 +415,22 @@ module( "ajax", { }; }); + ajaxTest( "#15118 - jQuery.ajax() - function without jQuery.event", 1, function() { + var holder; + return { + url: url( "data/json.php" ), + setup: function() { + holder = jQuery.event; + delete jQuery.event; + }, + complete: function() { + ok( true, "Call can be made without jQuery.event" ); + jQuery.event = holder; + }, + success: true + }; + }); + ajaxTest( "jQuery.ajax() - context modification", 1, { url: url("data/name.html"), context: {}, |