aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
|
* Add another tweak for handling CSP - we need to make sure that we don't ↵John Resig2011-01-181-0/+30
| | | | trigger any eval on load (not sure if it's the best tweak, definitely not ideal). Add a test page as well so that it's easier to catch problem.
* Update unit test for #7608 which was leaking timers.rwldrn2011-01-171-11/+2
|
* Disabled a broken test for now, until WebKit browsers become more current.jeresig2011-01-171-2/+5
|
* Accidentally removed the module teardown code.jeresig2011-01-171-1/+1
|
* Opera was falling back to undefined, which it didn't appreciate.jeresig2011-01-171-1/+1
|
* Merge branch 'master' of github.com:jquery/jqueryjeresig2011-01-1715-131/+371
|\
| * Merge in data_nocollide branch. Fixes #6968, improves unit testing framework ↵Colin Snover2011-01-1715-131/+371
| |\ | | | | | | | | | checks for leaky stuff.
| | * Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-0915-38/+189
| | | | | | | | | | | | globals and fix all leaks in the tests.
| | * Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-094-93/+179
| | | | | | | | | | | | collision between user data and internal data. Fixes #6968.
* | | Fixed a couple issues with escaping of attribute values in selectors. Fixes ↵jeresig2011-01-171-12/+55
|/ / | | | | | | #6093.
* | Merge branch '7608' of https://github.com/rwldrn/jquery into rwldrn-7608jeresig2011-01-171-0/+22
|\ \
| * | whitespace fixes in unit testsrwldrn2011-01-101-18/+18
| | |
| * | Bug #7608 elem.runtimeStyle throws exception in Operarwldrn2011-01-051-0/+22
| | |
* | | Merging pull request 183 for #7793.jeresig2011-01-171-4/+12
|\ \ \
| * | | Update test case to feature-detect Opera's lack of defaultPrevented and skip ↵Dave Methvin2011-01-151-1/+8
| | | | | | | | | | | | | | | | the test for it.
| * | | Test for standard createEvent before IE-specific click method.Dave Methvin2010-12-271-7/+4
| | | | | | | | | | | | | | | | Don't fallback to fake click; let's see which browsers fail, if any.
| * | | When a native browser event is bubbling up the DOM, make sure that the ↵Dave Methvin2010-12-231-0/+38
| | | | | | | | | | | | | | | | correct isDefaultPrevented value is reflected by jQuery's Event object. Fixes #7793.
* | | | Added unit tests to check and demonstrate new jQuery.Deferred() works.jaubourg2011-01-171-1/+20
| | | |
* | | | Implements joined jQuery.when statements. Makes it so calling jQuery.when ↵jaubourg2011-01-161-3/+43
| | | | | | | | | | | | | | | | with no parameter returns a resolved promise. Ensures promise method on promises supports the promise(obj) signature. Ensures a deferred and its promise always return the same promise (itself for the promise). Unit tests provided.
* | | | 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.
* | | | So embarrassing :( wycats2011-01-141-8/+0
| | | |
* | | | Fix a failing subclass test due to a change in masterwycats2011-01-141-5/+5
| | | |
* | | | Overwrite CRLF with LFwycats2011-01-141-0/+8
| | | |
* | | | 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.