aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
* Disabling .add(form.elements) unit test.John Resig2011-04-221-2/+7
|
* Merge branch 'qunit_fixture'timmywil2011-04-171-34/+34
|\
| * Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-34/+34
| |
* | Make sure that forms and selects are added to a jQuery set correctly. Fixes ↵John Resig2011-04-171-2/+3
|/ | | | #6912.
* Adjust the unit tests in traversing - is(jQuery) to avoid long-running ↵timmywil2011-04-141-8/+6
| | | | script alerts
* merge with master and resolve more conflictslouisremi2011-04-121-2/+1
|\
| * Run order problem when running full test suite in Opera 11, removed failing ↵timmywil2011-04-111-2/+1
| | | | | | | | test as it passed by itself and there are others just like it
| * Fix broken merge.jeresig2011-04-111-7/+2
| |
* | resolve conflictlouisremi2011-04-121-8/+3
| |
* | third batchlouisremi2011-04-121-115/+115
|/
* Merge branch 'bug_7369' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-0/+4
|\ | | | | | | timmywil-bug_7369
| * Fixes #7369 - Using an attribute selector for a non-existent attribute ↵timmywil2011-03-301-1/+5
| | | | | | | | raised an exception on disconnected nodes
* | Merge branch '2773_find_closest' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-1/+46
|\ \ | | | | | | | | | | | | | | | | | | timmywil-2773_find_closest Conflicts: test/unit/traversing.js
| * | Remove test for bug #7369 to move the fix to a separate branch for a sooner pulltimmywil2011-03-301-3/+0
| | |
| * | Bug #7369: Check non-existent attribute as well to be suretimmywil2011-03-251-1/+2
| | |
| * | Bug #7369: Add test for disconnected node in closest when passing attribute ↵timmywil2011-03-251-1/+3
| | | | | | | | | | | | selector; this was recently fixed in 1.5.2rc
| * | Closest unit tests: add one for passing a jQuery collection with multiple ↵timmywil2011-03-231-2/+4
| | | | | | | | | | | | elements
| * | Add node and jQuery object support to $.fn.closesttimmywil2011-03-211-0/+14
| | |
| * | 2773: first pass adding node/jQuery object support to jQuery.fn.find; unit ↵timmywil2011-03-161-5/+20
| | | | | | | | | | | | tests added
| * | Starting with adding the testtimmywil2011-03-131-0/+9
| |/
* | Traversing unit tests: added tests for passing invalid arguments to $.fn.not ↵timmywil2011-03-231-19/+12
| | | | | | | | (should have no effect on existing object rather than return an empty object as filter does)
* | Merge branch 'master' of git://github.com/jquery/jquery into bug_2773timmywil2011-02-261-3/+3
|\|
| * Fix some unscoped tests which failed after recent changes to QUnit.Anton M2011-02-151-3/+3
| |
* | Fix bug #2773, jQuery.fn.is to accept JQuery and node objects, and a small ↵Timmy Willison2011-01-241-5/+55
|/ | | | fix for winnow getting an undefined selector
* Merge branch 'fix-7853-add-context' of https://github.com/dmethvin/jquery ↵John Resig2011-01-201-8/+9
|\ | | | | | | into dmethvin-fix-7853-add-context
| * Rework unit tests to check actual result elements.Dave Methvin2011-01-191-6/+6
| |
| * By default, use document root rather than current selection's context when ↵Dave Methvin2010-12-281-8/+9
| | | | | | | | add()ing elements. Fixes #7853.
* | Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+1
| | | | | | | | globals and fix all leaks in the tests.
* | Clean trailing whitespace from all files.Colin Snover2010-12-301-12/+12
|/
* The child selector-prefix branch doesn't work with selectors that have a ↵John Resig2010-10-121-1/+2
| | | | larger depth. Removing for now - will need to re-evaluate in the future.
* Make sure that .find() with multiple direct child selectors is handled ↵John Resig2010-10-121-1/+2
| | | | correctly. Fixes #7144.
* Make sure closest works on disconnected DOM nodes. Fixes #7142.John Resig2010-10-111-2/+4
|
* Handle child selectors in particular - away from the selector engine. Fixes ↵John Resig2010-09-281-1/+3
| | | | #7029.
* Make sure that ambiguous val() selection works correctly.John Resig2010-09-281-2/+2
|
* Removing unique check on closest(Array) (it wasn't appropriate there and ↵jeresig2010-09-271-1/+2
| | | | broke functionality elsewhere) - follow-up to commit 8c41325a081f4009aa94748b9b6045e50a78422e. Also added another test for closest(Array) after a discussion with @jitter in 26b0e913dda386b6b2848196689a02a2da6aa40d.
* Merge branch 'closestbug-6700' of http://github.com/ajpiano/jquery into ↵jeresig2010-09-271-1/+5
|\ | | | | | | ajpiano-closestbug-6700
| * .closest() should return a unique set of elements, not duplicates of the ↵adam j. sontag2010-06-211-1/+5
| | | | | | | | same ancestor. Fixes #6700
* | Don't have .val() return selected-but-disabled options, or selected options ↵Dave Methvin2010-09-241-2/+2
|/ | | | inside a disabled optgroup. Doesn't change the .val() returned for a disabled select. Fixes #3240, adapted from Nathan Hammond's patch there.
* Add in the new level information to the closest(Array) test.jeresig2010-03-021-6/+6
|
* Moved add() tests from core to traversing.jeresig2010-01-231-0/+55
|
* fixed jQuery.dir regression introduced with 1.4 *untils patch that errored ↵Ben Alman2010-01-241-1/+3
| | | | when traversing XHTML text nodes with an until test
* Moved some methods around inbetween core.js and traversing.js. Core methods ↵John Resig2009-12-101-85/+37
| | | | shouldn't rely upon other modules (e.g. the selector engine) wherever possible.
* Make sure that the correct args are passed in to the filter callback (and by ↵John Resig2009-12-091-1/+3
| | | | extension, the not callback). Fixes #5594.
* Landing in jQuery.contains, jQuery.fn.contains, and jQuery.fn.has support. ↵Yehuda Katz2009-12-091-1/+37
| | | | Fixes #4101.
* Landing Ben Alman's patch to add nextUntil, prevUntil, and parentsUntil. ↵Ben Alman2009-12-041-1/+73
| | | | Also adds some tests for prevAll and nextAll, and fixes an test edge case in parents.
* Added in the new .closest(Array) method, will be used to improve the ↵jeresig2009-12-021-0/+11
| | | | performance of live filtering.
* Switched from using QUnit's isObj/isSet to the more robust same method.John Resig2009-09-291-55/+55
|
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.John Resig2009-09-091-2/+14
|
* Added support for .closest(filter, DOMElement). Fixes #4072.John Resig2009-07-281-1/+7
|