aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Removed re-usability from jXHR object (no more open, send & ↵jaubourg2010-12-311-162/+4
| | | | onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
* Changed dataConverters key format.unknown2010-12-311-1/+5
|
* Clean trailing whitespace from all files.Colin Snover2010-12-301-54/+54
|
* Simplified headers tests: removed multiline headers (support is far too ↵jaubourg2010-12-111-25/+6
| | | | servers & browsers dependant) and made all the tests in a single request.
* Tweaked the headers test to be apache independent and actually work.jaubourg2010-12-111-5/+5
|
* Changed document.location to window.location per Ben Alman advice.jaubourg2010-12-101-1/+1
|
* Removed non-standard (and not that useful) xhr emulation methods & reworked ↵jaubourg2010-12-101-20/+32
| | | | the headers test as a consequence.
* Rewrite of the Ajax module by Julian Aubourg. Some (dated) details can be ↵jaubourg2010-12-091-14/+524
| | | | found here: http://oksoclap.com/6Y26bm1ZsB more details are forthcoming. Fixes #7195.
* Merge branch 'bug7531' of https://github.com/csnover/jquery into csnover-bug7531John Resig2010-12-061-0/+10
|\
| * Coerce s.url to string before calling replace, since replace is also a ↵Colin Snover2010-11-171-0/+10
| | | | | | | | method of a Location object. Fixes #7531.
* | Add unit test for fix to #7578.Anton M2010-11-241-2/+13
|/
* Ensure that AJAX requests are actually aborted in all browsers. Fix #7422.Colin Snover2010-11-061-1/+4
|
* Backing out fix for #5803 from 3b50eaca2cd0b1439235e39c4e98a6438e8f55b2.John Resig2010-10-251-15/+0
|
* Allow DELETE requests to have a content body, and properly serialize data to ↵dmethvin2010-10-251-0/+26
| | | | the url for HEAD requests. Fixes #7285.
* Fixes #7229 and #5803rwldrn2010-10-241-0/+15
|
* Fix broken Ajax test after recent revert to jQuery.ajax namespace.jeresig2010-10-131-1/+1
|
* Disable 304/Not Modified Ajax tests in Opera due to lack of suitable ↵jeresig2010-10-101-5/+22
| | | | workaround. See: http://gist.github.com/599419
* Tweak broken serialize tests from commit ↵John Resig2010-09-301-3/+3
| | | | 879799fe955f01b85b59fd8a0096d415fc48df03. Thanks to @jaubourg for the catch.