From 06ee2c16f1c466a77fb25e07991e5adaa3385656 Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 22 Dec 2013 08:53:19 +0400 Subject: Ajax: support non-RFC2616 methods for oldIE Closes gh-1466 Fixes #13240 --- test/unit/ajax.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/unit') diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 766a1b6a9..c52f1cdd9 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1575,6 +1575,17 @@ module( "ajax", { } } ); + ajaxTest( "#13240 - jQuery.ajax() - support non-RFC2616 methods", 1, { + url: "data/echoQuery.php", + method: "PATCH", + success: function() { + ok( true, "success" ); + }, + error: function() { + ok( false, "error" ); + } + }); + // Support: Chrome 31. // Chrome 31 doesn't fire Ajax requests in beforeunload event handler. // There is no way for us to workaround it and it's been fixed in Chrome 32 -- cgit v1.2.3