aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merging in jQuery.proxy() branch.jeresig2010-01-051-0/+19
|\
| * Added in jQuery.proxy(obj, name), like the method described in Secrets of ↵jeresig2009-12-311-0/+19
| | | | | | | | the JavaScript Ninja and in Dojo's Hitch, and added in some unit tests.
* | Rewrite of jQuery.browser to become engine-centric, rather than ↵jeresig2010-01-051-33/+19
|/ | | | browser-centric. Also attempt to determine the engine version in a smarter fashion, less prone to error. Finally, enhanced the test suite with 255 useragent strings from http://user-agent-string.info/download for testing. jQuery.browser.safari is now deprecated, use jQuery.browser.webkit instead.
* Fixed the spacing from the last commit.jeresig2009-12-181-11/+11
|
* Disabled the passthrough .attr(method_name) functionality. You can now use ↵jeresig2009-12-181-1/+17
| | | | it if you do: .attr({method_name: value}, true) OR as an easy initialization method: jQuery('<div/>', {html: '...', id: 'test'}).
* Made isPlainObject() supporting null, undefined, and window values on IE ↵Robert Katic2009-12-191-1/+14
| | | | too. Also added some related tests. Fixes #5669.
* Make sure that dynamically-created elements don't have a parent. Fixes #5638.John Resig2009-12-101-1/+4
|
* Moved some methods around inbetween core.js and traversing.js. Core methods ↵John Resig2009-12-101-31/+79
| | | | shouldn't rely upon other modules (e.g. the selector engine) wherever possible.
* Rewrote .merge() (faster and less obtuse now). Fixed #5610.John Resig2009-12-091-1/+5
|
* Switched jQuery() to represent jQuery([]) instead of jQuery(document).John Resig2009-12-091-1/+1
|
* Renamed isObjectLiteral to isPlainObject (makes more sense, per the ↵John Resig2009-12-061-8/+8
| | | | suggestion of Michael Geary).
* Added some isObjectLiteral tests.jeresig2009-12-021-0/+45
|
* Fixes $.trim for &nbsp; closes #4980Yehuda Katz2009-11-301-0/+11
|
* Generic jQuery.merge and safer jQuery.makeArray(nodeList).Robert Katic2009-11-261-2/+6
| | | | | | | | * Made jQuery.marge more generic supporting null and undefined values, and supporting array like objects as results. Fixes #5527. * Made jQuery.makeArray(nodeList) more safer using jQuery.merge internally. Fixes #5528. * Added a second "results" argument to jQuery.makeArray for internal usage to avoid intermediary arrays in init.
* Corrected some minor errors made by me (rkatic) in last commits.Robert Katic2009-11-131-3/+3
|
* Forgotten to update the number of jQuery.extend related tests.Robert Katic2009-11-121-1/+1
|
* Made jQuery.extend(true, ...) to extend recursively only 'object literal' ↵Robert Katic2009-11-121-3/+7
| | | | values.
* Made isObjectLiteral to work correctly with custom objects with empty ↵Robert Katic2009-11-121-1/+5
| | | | prototypes.
* Made jQuery('<div/>') and jQuery('<div></div>') use the same code path ↵John Resig2009-11-111-1/+4
| | | | (making the second one faster). Fixes #5293.
* Added a method to myKlass. rkatic2009-11-091-0/+2
| | | | If an object's prototype is "empty", then isObject returns true!
* Make .add() take an optional context and - if a context is specified in the ↵John Resig2009-11-071-0/+12
| | | | root selector - use that as the base context.