aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Allow 304/Not Modified tests to complete in Opera.jeresig2010-09-271-1/+16
|
* Serialize keys with empty arrays/object values in jQuery.param(). Fixes #6481.temp012010-09-241-1/+6
|
* Make sure that #... are trimmed from Ajax request URLs. Fixes #4987.John Resig2010-09-221-0/+29
|
* Use a different workaround for detecting when Opera finds a status 304 page. ↵John Resig2010-09-211-0/+12
| | | | Fixes #6060.
* Fixing request data param issue. Thanks to mislav for the patch. Fixes #5123.jeresig2010-06-141-0/+13
|
* Fix for http://dev.jquery.com/ticket/6451malsup2010-06-151-0/+6
|
* Update other remote test URLs as well.jeresig2010-03-231-4/+4
|