aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
Commit message (Collapse)AuthorAgeFilesLines
...
* 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   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.
* Switched from using QUnit's isObj/isSet to the more robust same method.John Resig2009-09-291-19/+19
|
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID). $("<div/>").after("<span/>") => [ div, span ] (calling after on a disconnected DOM node adds the nodes to the end of the jQuery set) $("<div/>").before("<span/>") => [ span, div ] (calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set) $("div").add("span") => [ div, span, span, div, span ] (results now come out in document order) $("div").find("code").andSelf(); => [ div, code, code ] (results now come out in document order) Same goes for .parents(), .nextAll(), .prevAll(), and .siblings(). Exception: .parents() will still return the results in reverse document order. jQuery.data(elem) => { object of data } (no longer returns the unique ID assigned to the node)
* jquery core: Fixed #5202. Fixing selector generation when a manipulation ↵Ariel Flesler2009-09-141-1/+8
| | | | function receives a jQuery object.
* Split out the fragment-building code from domManip. Switched core.js to ↵John Resig2009-09-071-1/+1
| | | | using that instead. Also moved the standalone tag detection to $(...) for performance.
* Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was ↵John Resig2009-08-271-1/+1
| | | | handling the case where documentElement is undefined (which only occurs on HTML documents in IE).
* Tweaked the isXMLDoc iframe test case to test the document, not the body ↵John Resig2009-08-271-3/+3
| | | | element (which doesn't exist in IE). Also made the isXMLDoc code handle cases where elem is null, undefined, etc.
* Added an improvement to quickExpr and some more tests for jQuery('html'). ↵John Resig2009-07-271-1/+9
| | | | Fixes #4979.
* Added an extra documentElement check to isXMLDoc for IE - and added a number ↵John Resig2009-07-271-1/+34
| | | | of unit tests for isXMLDoc. Fixes #4833.
* Add test for jQuery(jQueryObj) cloning and simplify new get() codeYehuda Katz2009-07-171-1/+4
|
* jquery core: Simplifying isEmptyObject() and adding tests.Ariel Flesler2009-07-161-0/+10
|
* Add a test for index()Yehuda Katz2009-07-161-0/+6
|
* jQuery.extend(true, Object, Object) copies custom objects correctly.Yehuda Katz2009-07-161-2/+12
| | | | - Also update jQuery.isObject to handle this case correctly
* jQuery.extend(true, Object, Object) copies objects with length keys correctlyYehuda Katz2009-07-161-1/+7
|
* Clear some dangling whitespaceYehuda Katz2009-07-161-5/+5
|
* Add support for .get(-Number) Closes #4188Yehuda Katz2009-07-161-0/+7
|
* Make toArray an alias for .get(). Closes #3999Yehuda Katz2009-07-161-0/+7
|
* jquery core: Closes #2827. jQuery.each iterates over functionsAriel Flesler2009-06-201-1/+8
|
* another unit test for index methodBrandon Aaron2009-05-071-1/+2
|
* testrunner: Updating an orphaned testAriel Flesler2009-05-031-1/+1
|
* jquery core: $() -> $(document) and $(undefined) -> $([]). Removed a ↵Ariel Flesler2009-05-031-7/+13
| | | | duplicated block.
* actually should be 6330, not 6329Brandon Aaron2009-05-021-1/+1
|
* index now works in reverse when passed a selector or undefined. fixes #3971Brandon Aaron2009-05-021-21/+31
|
* Unified the formatting of core.js. === or !== are used wherever appropriate, ↵John Resig2009-03-311-1/+1
| | | | syntax has been normalized, braces are added in all cases, and jQuery() now returns an empty set.
* breaking jquery out into smaller modules. added attributes.js, ↵Brandon Aaron2009-03-181-1349/+12
| | | | manipulation.js, and traversing.js
* fix for #3688, setting type attribute on button causes IE to throw errorBrandon Aaron2009-03-171-1/+11
|
* Simplified the structure of the .css() and .attr() methods (reducing the ↵John Resig2009-02-281-7/+0
| | | | number of calls). Need to optimize $.css/$.curCSS/$.attr still. Fixes #4269.
* Made sure that .remove now uses multiFilter. Fixes bug #4205.John Resig2009-02-201-1/+4
|
* Fixed some tests that were changed (fixed!) by fixing #3966.John Resig2009-02-181-6/+6
|
* Made it so that appendTo, etc. return the inserted elements (thus using ↵John Resig2009-02-181-1/+22
| | | | pushStack, as well). Fixes bugs #3966 and #4182.
* Updated the show() tests to work without the use of jQuery.browser (the test ↵John Resig2009-02-171-7/+10
| | | | suite now passes 100% in IE8).
* Reorganized and disabled some of the height/width tests. Need to look in to ↵John Resig2009-02-171-16/+18
| | | | better abornormal-padding/margin/border support at some point.
* Made the div showing a little more explicit - making sure that it doesn't ↵John Resig2009-02-171-1/+1
| | | | affect the fx tests.
* Reorganized some of the animation tests to work with the new hide/show changes.John Resig2009-02-171-1/+1
|
* Fixed some more CSS/visibility tests.John Resig2009-02-171-5/+5
|
* Changed a bunch of the DOM tests to work in Document Order.John Resig2009-02-171-23/+11
|
* Updated some of the display/visible/hidden tests to work on an appropriate ↵John Resig2009-02-171-5/+5
| | | | element.