aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | added jQuery.subclassJared Grippe2011-01-141-0/+72
| | | | |
* | | | | 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-122-2/+59
| | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge branch 'master' of github.com:jquery/jquery into jquery-masterColin Snover2011-01-091-1/+1
|\ \ \ \ \
| * | | | | Fixes a race condition in JSONP Local test.jaubourg2011-01-101-1/+1
| | |_|/ / | |/| | |
* / | | | Ensure that buildFragment clones elements properly in all browsers. Fixes ↵Colin Snover2011-01-092-10/+29
|/ / / / | | | | | | | | | | | | #3879, #6655. Also improves form element clone tests and fixes bugs in $.fn.clone exposed by these new test cases related to the values of checkboxes and radio buttons in IE.
* | | | 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-092-0/+22
| | | |
* | | | Fixes #7881. Setting contentType to false will prevent the Content-Type ↵jaubourg2011-01-092-7/+39
| | | | | | | | | | | | | | | | header from being sent. Unit test added.
* | | | Added missing commas.jaubourg2011-01-071-7/+7
| | | |
* | | | Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.jaubourg2011-01-061-11/+11
| | | |
* | | | Renamed src/transports to src/ajax (in case we need prefilters in the future ↵jaubourg2011-01-061-3/+3
| | | | | | | | | | | | | | | | and to avoid a separate prefilters directory).
* | | | Cleaning up trailing whitespace again.Colin Snover2011-01-052-69/+69
| | | |
* | | | Revert "Register as a CommonJS async module if in that kind of environment. ↵wycats2011-01-052-30/+23
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #7102." This reverts commit 6ffa730721a8ebcd128f3dc202706e46d9cfe249. Conflicts: src/core.js
* | | "then" renamed "complete" and new "then" method defined using "complete" and ↵jaubourg2011-01-051-14/+14
| | | | | | | | | | | | "fail" internally. The API is still symetrical (complete/fail), still promotes AOP but is also now Promise/A compliant. Changed unit tests and ajax module accordingly.
* | | 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.
* | | Simplified the way a Promise is tested for (removed promiseMarker). Removed ↵jaubourg2010-12-311-15/+11
| | | | | | | | | | | | isCancelled helper method from _Deferred, wasn't used nor tested. Reworked jQuery.Deferred and removed unnecessary variables. Also ensured a Promise will return itself when asked for a Promise. Finally, the jQuery.when tests have been revamped.
* | | Introduced a new promise method on deferreds that returns an immutable ↵jaubourg2010-12-311-27/+23
| | | | | | | | | | | | object (exposing then, fail, isResolved, isRejected and promise itself only). Remove $.isDeferred and moved logic directly into $.when. Made sure $.when returns a promise by using promise(). Used promise() in ajax code too.
* | | 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-312-163/+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.
* | | Removed custom method in isDeferred and when.unknown2010-12-311-22/+3
| | |
* | | Deferred cannot be cancelled by returning false in a callback. Exception in ↵unknown2010-12-311-74/+7
| | | | | | | | | | | | the callback are still propagated and execution of remaining callbacks is still possible.
* | | Capitalized Deferred & _Deferred to clearly mark them as new types, like Event.unknown2010-12-311-20/+20
| | |
* | | Changed dataConverters key format.unknown2010-12-311-1/+5
| | |
* | | Added deferred to core. Used internally for DOM readyness and ajax callbacks.jaubourg2010-12-311-0/+250
| | |
* | | Remove patch for very early versions of Opera 9 that made it impossible to ↵Colin Snover2010-12-301-0/+17
| | | | | | | | | | | | animate values smaller than -10000. Fixes #7193. Thanks to igorw for initial patch & test case.
* | | Clean trailing whitespace from all files.Colin Snover2010-12-3014-394/+394
| |/ |/|
* | Don't cache non-html strings in buildFragment to avoid possible collision ↵Dave Methvin2010-12-271-0/+17
| | | | | | | | with the names of Object methods like toString. Also makes the unit tests 0.5% to 8% faster. Fixes #6779.
* | When a native browser event is bubbling up the DOM, make sure that the ↵Dave Methvin2010-12-271-0/+35
| | | | | | | | correct isDefaultPrevented value is reflected by jQuery's Event object. Fixes #7793.
* | Register as a CommonJS async module if in that kind of environment. Fixes #7102.jrburke2010-12-272-23/+30
|/
* Don't use for-in loops on Arrays. Fixes #7817. Thanks to dmethvin.Colin Snover2010-12-221-0/+3
|\ | | | | | | | | Conflicts: src/manipulation.js
| * Use a for loop rather than for/in loop when copying events, so that code ↵Dave Methvin2010-12-201-0/+3
| | | | | | | | will work with an augmented Array.prototype. Fixes 7809.
* | More unit tests and a $.hasData that works for JS objects too.Colin Snover2010-12-221-6/+12
| |
* | Update jQuery.hasData to always return a boolean, with unit tests.Colin Snover2010-12-221-12/+21
| |
* | Remove code for ticket #7717 which has been marked WONTFIX to match existing ↵Colin Snover2010-12-221-8/+4
| | | | | | | | $.data functionality and to prevent infinite loops caused by circular references.
* | Fix #7717 and #7165. Thanks to dmethvin and iliakan for their help fixing ↵Colin Snover2010-12-191-6/+22
|/ | | | these issues.
* Merge branch 'bug_7397' of https://github.com/rwldrn/jquery into rwldrn-bug_7397Colin Snover2010-12-141-0/+39
|\
| * Updating #7397 unit tests to correctly test for a persisted display valuerwldrn2010-11-101-11/+15
| |
| * Fixes #7397; 4 supporting unit testsrwldrn2010-11-091-0/+35
| |
* | Speed up & compatibility improvements for new clone mechanism in IE.Colin Snover2010-12-122-2/+10
| |
* | Return test comments to ASCII spaceColin Snover2010-12-121-2/+2
| |
* | Merge branch 'bug5566' into csnover-bug5566. Fixes #4386, #5566, #6997.Colin Snover2010-12-121-62/+108
|\ \ | | | | | | | | | | | | | | | Conflicts: src/manipulation.js test/unit/manipulation.js
| * | Fix the clone method to be a little less insane in IE, which fixes the new ↵Colin Snover2010-12-121-8/+34
| | | | | | | | | | | | event-cloning clone() as well as probably a bunch of IE-related clone bugs.