aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Prevents firefox from hanging on the test (could it be that firefox passes ↵jaubourg2012-03-071-1/+3
| | | | the delay to start?).
* Fixes #11264 or rather seriously limits the risk of global ajaxSettings ↵jaubourg2012-03-071-0/+20
| | | | screwing with script loading in domManip. Gotta love globals and sneaky dependencies. Unit test added.
* Fixes #11426: getting the responseText of an xhr should be tried/caught ↵jaubourg2012-03-071-0/+14
| | | | because of IE's inability to give access to binary data. Unit test added.
* Fix frequent Firefox failures -- force longer timeouts.Dave Methvin2012-03-021-1/+1
|
* fixes #10901, PHP required for unit tests, but still allow the tests to runMike Sherov2012-02-161-9/+2
|
* Fix #10978: Let jQuery.param() accept non-native constructed objects.Rick Waldron2012-01-121-4/+12
|
* Fix #10466. jQuery.param() should treat object-wrapped primitives as primitives.Rick Waldron2011-12-061-0/+13
|
* Take 2 on "Fix ajax to always expect an Error object, per #10646."Dave Methvin2011-11-081-1/+1
| | | | | | We can't use jQuery.error to rethrow anymore since it constructs a new Error from its supposedly-string arg. Also, older IE stringifies Error objects into "[object Error]" so I've loosened the unit test criteria. This reverts commit 586fb059190ecacd89e3cd211c78e776792d2f2b.
* Comment out an ajax test that exposed a bug in Opera, to appease testswarm.timmywil2011-11-071-2/+2
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-100/+100
| | | | deprecated in QUnit.
* We have too many unctions in this function.jaubourg2011-10-021-1/+1
|
* Landing pull request 525. Fixing tests with qunit.Corey Frang2011-10-011-14/+23
| | | | | More Details: - https://github.com/jquery/jquery/pull/525
* Fixes a weird IE7 bug in the unit tests. If anybody can shed some light on ↵jaubourg2011-09-221-1/+6
| | | | this one, I'm a taker.
* Considers Safari XMLHttpRequest's bug when testing for custom status text. ↵jaubourg2011-08-271-2/+2
| | | | Will have to be revisited when $.browser.chrome is introduced.
* Fixes #9854: propagates native statusText onto jqXHR.statusText. statusText ↵jaubourg2011-07-231-0/+13
| | | | in callbacks is still normalized. Unit test added.
* Fixes #9887: ajax now supports circular references into objects passed as ↵jaubourg2011-07-231-0/+16
| | | | context. Prefilter and transport developpers should add their own custom option into flatOptions when needed. Unit test added.
* Fixes #9682. Removes data from the options for request with no content so ↵jaubourg2011-07-011-5/+20
| | | | that it is not used again in case of a retry. Unit test added.
* Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-2/+2
|
* Backing out fix for #6481.John Resig2011-04-161-7/+2
|
* second batchlouisremi2011-04-111-127/+127
|
* Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and ↵Dan Heberden2011-04-051-1/+1
| | | | use native thrown exceptions if window.JSON.parse is available
* Fixes #8509. Makes URL regexp less overzealous and ensures it recognizes URL ↵jaubourg2011-03-151-1/+11
| | | | schemes which do not contain a conformant hierarchical structure ( as per section 2.1.2 of http://www.ietf.org/rfc/rfc2718.txt ). Also adds about: and adobe air's app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed. Unit test added.
* Grouped up the testgnarf2011-02-241-13/+9
|
* A quick change to detect AIR urlsgnarf2011-02-241-0/+12
|
* 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.