aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge branch '4321' of https://github.com/rwldrn/jquery into rwldrn-4321Dave Methvin2011-04-051-1/+2
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | 4321 returns empty jquery objectrwldrn2011-01-011-1/+2
| | | | |
* | | | | Moves Deferred-related code into a separate module. Context handling has ↵jaubourg2011-03-031-221/+0
| | | | | | | | | | | | | | | | | | | | been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).
* | | | | Fix for #8421. Makes sure resolveWith can be called with only one parameter.jaubourg2011-03-031-5/+11
| |/ / / |/| | |
* | | | Revert "Adds an invert method to promises that returns a "inverted" promise ↵jaubourg2011-02-181-41/+9
| | | | | | | | | | | | | | | | | | | | | | | | that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved." This reverts commit 4e975430510f443ef76a90d077bc8956fb8b8cc0.
* | | | Fix some unscoped tests which failed after recent changes to QUnit.Anton M2011-02-151-5/+5
| | | |
* | | | Adds an invert method to promises that returns a "inverted" promise that is ↵jaubourg2011-01-311-9/+41
| | | | | | | | | | | | | | | | resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved.
* | | | Rename jQuery.subclass() to jQuery.sub().jeresig2011-01-311-6/+6
| | | |
* | | | Make sure subclass is a proper subclass not just subclassing the fn methods. ↵Digitalxero2011-01-271-0/+49
| |_|/ |/| | | | | | | | Fixes #7979.
* | | Renames Deferred's fire and fireReject methods as resolveWith and rejectWith ↵jaubourg2011-01-201-1/+1
| | | | | | | | | | | | respectively.
* | | Merge in data_nocollide branch. Fixes #6968, improves unit testing framework ↵Colin Snover2011-01-171-1/+7
|\ \ \ | | | | | | | | | | | | checks for leaky stuff.
| * | | Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+4
| | | | | | | | | | | | | | | | globals and fix all leaks in the tests.
* | | | 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.
* | | | Fix a failing subclass test due to a change in masterwycats2011-01-141-5/+5
| | | |
* | | | added jQuery.subclassJared Grippe2011-01-141-0/+72
| | | |
* | | | Ensure that buildFragment clones elements properly in all browsers. Fixes ↵Colin Snover2011-01-091-1/+6
|/ / / | | | | | | | | | #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.
* | | Renamed "complete" to "done" in order to avoid conflicts with jXHR.complete.jaubourg2011-01-061-11/+11
| | |
* | | Cleaning up trailing whitespace again.Colin Snover2011-01-051-66/+66
| | |
* | | Revert "Register as a CommonJS async module if in that kind of environment. ↵wycats2011-01-051-24/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | 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.
* | 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
| |
* | Added deferred to core. Used internally for DOM readyness and ajax callbacks.jaubourg2010-12-311-0/+250
| |
* | Register as a CommonJS async module if in that kind of environment. Fixes #7102.jrburke2010-12-271-22/+24
|/
* Backing out fb6c038bf00296480234c971a1664ac01ca1479e, was causing ↵jeresig2010-12-091-11/+4
| | | | jQuery.param tests to fail - unfixes #7413.
* Merge branch 'bug_7413' of https://github.com/rwldrn/jquery into rwldrn-bug_7413jeresig2010-12-091-4/+11
|\
| * Fixes #7413; isEmptyObject() check to see if obj passes isPlainObjectrwldrn2010-11-091-4/+11
| |
* | Improve performance of get() for negative indices. Fixes #5476.Anton M2010-11-191-5/+5
|/
* Test jQuery.type also with document.Robert Katic2010-09-231-1/+2
|
* Made jQuery.type more consistent with host objects.Robert Katic2010-09-231-1/+5
|
* Added some tests for #5991.Robert Katic2010-09-231-1/+5
|
* Ensured that arrays are not considered same as plain object on deep ↵Robert Katic2010-09-231-2/+1
| | | | extending. Fixes #5991.
* Add some tests for jQuery.isWindow and make sure that we're operating ↵jeresig2010-09-221-0/+19
| | | | against an object before testing.
* Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-1/+2
| | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.
* Added some tweaks to $.type to handle null and undefined. Added a bunch of ↵John Resig2010-08-271-0/+23
| | | | unit tests as well.
* Fixing getting/setting classes and makeArray(RegExp) for Blackberry 4.7. ↵John Resig2010-08-231-15/+28
| | | | Fixes #6930, #6931.
* Replace usage of the removed global reset() method with QUnit.reset().jzaefferer2010-07-281-2/+2
|
* Adjust isPlainObject test to run in an iframe.jeresig2010-03-241-1/+1
|
* Landing a faster trim method. Based upon the work by Travis Hardiman and ↵jeresig2010-03-091-6/+12
| | | | DBJDBJ. More details here: http://forum.jquery.com/topic/faster-jquery-trim Fixes #2279, #4452, and #4835.
* Make sure leading whitespace is trimmed for parseJSON. Fixes #6031.jeresig2010-02-131-2/+4
|
* Landing some minor perf optimization to jQuery().jeresig2010-01-281-1/+1
|
* Make empty strings (and other non-string values) simply return null from ↵jeresig2010-01-231-0/+25
| | | | parseJSON. Also added some parseJSON tests. Fixes #5859.
* Moved add() tests from core to traversing.jeresig2010-01-231-55/+0
|
* Make sure that disconnected nodes aren't sorted/uniqued. Fixes #5791.jeresig2010-01-131-4/+9
|
* Fixed typo in logic, also disabled function setters in this case to allow ↵jeresig2010-01-121-1/+7
| | | | the functions to passthrough and bind.
* Make sure to do a deep copy on arrays. #5750Filipe Fortes2010-01-071-2/+7
|