aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #8297. Makes sure response headers with empty values are handled ↵jaubourg2011-02-171-3/+9
| | | | properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
* Fixes #8277. Sets data to undefined rather than null when it is not provided ↵jaubourg2011-02-151-0/+15
| | | | in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
* Remove duplicate test.Anton M2011-02-111-3/+1
|
* Fixes #8219. Introduces the mimeType option to override content-type header ↵jaubourg2011-02-091-0/+28
| | | | in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
* Fixes a bug that prevented headers from being set in an ajaxSend callback. ↵jaubourg2011-02-071-5/+12
| | | | Unit test modified.
* Fixes a typo in the title of the load() unit test.jaubourg2011-02-051-1/+1
|
* Remove an invalid ajax test and some code that is no longer used by any test.Anton M2011-02-051-15/+0
|
* Fixes abort in prefilter. No global event will be fired in that case even if ↵jaubourg2011-02-041-0/+19
| | | | the global option is set to true. Unit test added.
* Fixes #7945. Make jQuery.param() serialize plain objects with a property ↵Anton Kovalyov2011-02-021-1/+6
| | | | named jquery correctly.
* Fixes #8115. Renames all references to jXHR with jqXHR in the code (like was ↵jaubourg2011-02-011-18/+18
| | | | done in the doc).
* Places multiple signature test after all primary callbacks tests.jaubourg2011-02-011-15/+15
|
* Improve $.ajax method signature unit test and placementDan Heberden2011-02-011-19/+15
|
* Bug 8107; Fix argument handling for $.ajax for multiple method signatues and ↵Dan Heberden2011-01-311-0/+19
| | | | add test case
* Fixes #8095. Properly handles the case where browser cache needs to be ↵jaubourg2011-01-311-78/+87
| | | | bypassed while server-side logic still delivers proper 304 responses. Unit test added.
* Script dataType now supports ecmascript mimetypes.jaubourg2011-01-311-8/+14
|
* Makes sure jsonp callback is not left in the global namespace in case of an ↵jaubourg2011-01-311-3/+35
| | | | early abort (beforeSend). Unit test added.
* Makes sure all converters keys are lowercased before any conversion is ↵jaubourg2011-01-311-4/+4
| | | | taking place: dataTypes' names are now truly case insensitive. Unit test edited.
* Fixes #7568. Follow-up fix for #5862. Objects with a length property weren't ↵Anton M2011-01-311-10/+28
| | | | serialized properly by jQuery.param.
* Removed errorThrown test for 404 responses seeing as Safari 3.x XHR sets the ↵jaubourg2011-01-311-1/+7
| | | | statusText as "OK" rather than "Not Found".
* Simplifies the unit test for #8082.jaubourg2011-01-291-8/+3
|
* Fixes #8082. Text to script converter now returns text. Unit test added.jaubourg2011-01-291-3/+9
|
* Fixes #5856. Adds document protocol at the beginning of URLs without ↵jaubourg2011-01-261-0/+12
| | | | protocol (thanks go to skrings for the initial pull request). Simplifies cross-domain detection regexp and logic as a consequence. Also took the opportunity to remove an unused variable. Unit test added.
* Fixes #8054 by reverting feature enhancement 5812 (4920). Regexps no longer ↵jaubourg2011-01-261-19/+2
| | | | searches for %3F in url or data to find jsonp callback placeholders.
* Reworks how values of parameters passed to error callbacks are determined. ↵jaubourg2011-01-251-0/+41
| | | | Fixes #8050.
* Replaces "text in-between" technique with a full-fledged one-level ↵jaubourg2011-01-211-0/+43
| | | | transitive search for converters (unit tests added). Also cleans up auto dataType determination and adds converter checks in order to guess the best dataType possible.
* Makes sure statusCode callbacks are ordered in the same way success and ↵jaubourg2011-01-201-3/+30
| | | | error callbacks are. Unit tests added.
* Cleans up and simplifies code shared by ajaxPrefilter and ajaxTransport. ↵jaubourg2011-01-201-0/+41
| | | | Removes chainability of ajaxSetup, ajaxPrefilter and ajaxTransport. Also makes sure context is handled properly by ajaxSetup (unit test added).
* Moves active counter test after all other ajax tests where it should be.jaubourg2011-01-191-4/+4
|
* Merge in data_nocollide branch. Fixes #6968, improves unit testing framework ↵Colin Snover2011-01-171-1/+1
|\ | | | | | | checks for leaky stuff.
| * Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+1
| | | | | | | | globals and fix all leaks in the tests.
* | Fixed the ajax test regarding the jsonp option set to false and added a test ↵jaubourg2011-01-161-5/+5
| | | | | | | | to control the prefilter actually does not tamper with the url.
* | Revised jsonp unit tests and added a test for when the jsonp option is set ↵jaubourg2011-01-161-259/+222
| | | | | | | | to false.
* | Fixes #2994. Not finding a transport now fires the error callbacks and ↵jaubourg2011-01-161-11/+5
| | | | | | | | doesn't make ajax return false. Had to revise how jsonp and script prefilters & transports work (better separation of concerns). Also took the opportunity to revise jXHR getRequestHeader and abort methods and enabled early transport garbage collection when the request completes.
* | Fixes #4964. Adds a statusCode object together with a new statusCode method ↵jaubourg2011-01-131-0/+70
| | | | | | | | on the jXHR object (deferred behaviour). They accept a map of statusCode/callback(s). Callbacks are fired when the status code of the response correponds to the key (as a success or an error callback depending on how the request completed). Unit tests added.
* | Fixes #4897. Added ?? as a context-insensitive placeholder for the callback ↵jaubourg2011-01-121-2/+55
| | | | | | | | name of a JSONP request. Unit tests provided.
* | Yet another missing semicolon!jaubourg2011-01-111-1/+1
| |
* | Fixes #6230. Added a unit test to control that, since the ajax rewrite, ↵jaubourg2011-01-111-0/+22
| | | | | | | | setting the Accept header actually replaced the previous value and didn't append to it (tested in Safari 4.0.4 for which the problem was specifically reported).
* | Fixes 4825. jQuery.fn.load: use the jXHR's Promise interface to get the ↵jaubourg2011-01-111-0/+12
| | | | | | | | actual response in case ajaxSettings contains a dataFilter. Unit test added.
* | Fixes a race condition in JSONP Local test.jaubourg2011-01-101-1/+1
|/
* Fixes #5812. =? will be detected even when it has been escaped during data ↵jaubourg2011-01-091-1/+17
| | | | serialization.
* Simplified cross-domain detection tests.jaubourg2011-01-091-33/+13
|
* Fixes #5955. Option crossDomain now forces ajax to consider a request as ↵jaubourg2011-01-091-2/+17
| | | | cross-domain even when it is not. Useful for when servers issue redirects to cross-domain urls. Unit test added.
* Added a test for retrying a request on error using jQuery.ajax(this). Works ↵jaubourg2011-01-091-0/+23
| | | | as intended. Fixes #7461.
* Fixes #7465. Reworked the regexp and associated test for cross-domain ↵jaubourg2011-01-091-0/+52
| | | | detection so that it now includes ports. Added cross-domain detection tests for protocol, hostname and port.
* Fixes #7868. ResponseText is now properly propagated for error callbacks.jaubourg2011-01-091-0/+17
|
* Fixes #7881. Setting contentType to false will prevent the Content-Type ↵jaubourg2011-01-091-0/+36
| | | | header from being sent. Unit test added.
* Added missing commas.jaubourg2011-01-071-7/+7
|
* Cleaning up trailing whitespace again.Colin Snover2011-01-051-3/+3
|
* When serializing text, encode all line breaks as CRLF pairs per the ↵Dave Methvin2010-12-311-4/+4
| | | | application/x-www-form-urlencoded specification. Fixes #6876.
* Renamed several ajaxSettings options. Removed cors test, fixed failing cors ↵jaubourg2010-12-311-48/+16
| | | | test.