aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix #11115: Normalize boolean attributes/properties. Close gh-1066.Richard Gibson2012-12-151-1/+5
|
* Adjust jQuery('html') detection to only match when html starts with '<' (not ↵timmywil2012-12-131-1/+1
| | | | counting space characters). Fixes #11290.
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-6/+6
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* Test case for #12816Dave Methvin2012-10-311-1/+3
|
* Fix #12009. $().find( DOMElement ) should pushStack properly. Close gh-927.Mike Sherov2012-10-301-11/+13
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed inline usage of QUnit.reset() because it is messing with the expectation model as reset does .empty() which does a recursive cleanData on everything in #qunit-fixture, so any expectJqData above .reset() would fail negatively. Instead of calling reset inline, either updated the following assertions to take previous assertions' state into account, or broke the test() up into 2 tests at the point where it would call QUnit.reset. * After introducing the new memory leak discovery a whole bunch of tests were failing as they didn't clean up everything. However I didn't (yet) add QUnit.expectJqData calls all over the place because in most if not all of these cases it is valid data storage. For example in test "data()", there will be an internal data key for "parsedAttrs". This particular test isn't intending to test for memory leaks, so therefor I made the new discovery system only push failures when the test contains at least 1 call to QUnit.expectJqData. When not, we'll assume that whatever data is being stored is acceptable because the relevant elements still exist in the DOM anyway (QUnit.reset will remove the elements and clean up the data automatically). I did add a "Always check jQuery.data" mode in the test suite that will trigger it everywhere. Maybe one day we'll include a call to everywhere, but for now I'm keeping the status quo: Only consider data left in storage to be a problem if the test says so ("opt-in"). * Had to move #fx-tests inside the fixture because ".remove()" test would otherwise remove stuff permanently and cause random other tests to fail as "#hide div" would yield an empty collection. (Why wasn't this in the fixture in the first place?) As a result moving fx-tests into the fixture a whole bunch of tests failed that relied on arbitrary stuff about the document-wide or fixture-wide state (e.g. number of divs etc.). So I had to adjust various tests to limit their sample data to not be so variable and unlimited... * Moved out tests for expando cleanup into a separate test. * Fixed implied global variable 'pass' in effects.js that was causing "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that uses a global variable "pass = function () {};" ... * Removed spurious calls to _removeData. The new test exposed various failures e.g. where div[0] isn't being assigned any data anyway. (queue.js and attributes.js toggleClass). * Removed spurious clean up at the bottom of test() functions that are already covered by the teardown (calling QUnit.reset or removeClass to supposedly undo any changes). * Documented the parentheses-less magic line in toggleClass. It appeared that it would always keep the current class name if there was any (since the assignment started with "this.className || ...". Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently). Only added the comment for now, though I prefer clarity with logical operators, I'd rather not face the yayMinPD[1] in this test-related commit. * Updated QUnit urlConfig to the new format (raw string is deprecated). * Clean up odd htmlentities in test titles, QUnit escapes this. (^\s+test\(.*)(&gt\;) → $1> (^\s+test\(.*)(&lt\;) → $1< [1] jQuery MinJsGz Release Police Department (do the same, download less)
* Update Sizzle: allows disconnected sorting. Change add to always sort with ↵Timmy Willison2012-10-161-6/+3
| | | | added nodes, even when disconnected.
* Return correct index for no-arg index() calls. Fixes #10977. Closes gh-971MORGAN2012-10-161-0/+9
|
* enforce double quotes via JSHint. Closes gh-975Mike Sherov2012-10-161-11/+11
|
* Enforce expects in events.js ↵James Huston2012-10-151-1/+3
| | | | (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-962
* Fix a regression where has with multiple contexts was not filtering ↵Timmy Willison2012-07-271-2/+5
| | | | correctly. Test added.
* Fail silently if closest is somehow called on a document. Fixes #10726.Timmy Willison2012-07-251-1/+4
|
* Fix #11969. Never a null moment when checking siblings.Dave Methvin2012-06-261-1/+2
|
* Unit tests are linted and passing.Rick Waldron2012-06-211-7/+8
|
* jQuery#addBack supports an optional selector that can be used to filter the ↵Ben Alman2012-05-291-1/+2
| | | | prior set before adding it back. Fixes #9800
* Rename .andSelf to .addBack, deprecate .andSelf #9800Dave Methvin2012-05-151-5/+5
|
* Fix #11738. Remove deprecated .closest(Array) => Array.Dave Methvin2012-05-111-12/+0
|
* Fix #11543: .has should work on detached elements.Richard Gibson2012-04-051-3/+12
|
* Fix #11370: .siblings() shouldn't throw exception on a detached elementRichard Gibson2012-02-231-1/+2
|
* Use Sizzle.Expr.match.globalPOS for identifying POS selectors in traversing. ↵timmywil2011-12-121-3/+5
| | | | Fixes #10970.
* Coerce eq() argument all the time. Fixes #10616Rick Waldron2011-11-061-3/+13
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-183/+183
| | | | deprecated in QUnit.
* Landing pull request 491. Fix #7322. Make `.is()` with a positional selector ↵Dave Methvin2011-09-191-0/+40
| | | | | | | | work like delegated event logic. Fixes #7322. More Details: - https://github.com/jquery/jquery/pull/491 - http://bugs.jquery.com/ticket/7322
* Move filter tests to proper locationtimmywil2011-09-191-44/+45
|
* Added filtering tests and updating sizzle to fix filtering with positional ↵timmywil2011-09-191-0/+43
| | | | selectors. Fixes #10315.
* Override Sizzle attribute retrieval with jQuery.attr. Fixes #5637, #7128, ↵timmywil2011-09-191-2/+6
| | | | | | #9261, #9570, #10178. Bug fixed on the side: $(window).is('a') was throwing an exception. Fixes #10178.
* Fixes assertion counts and dom element fixture issueRick Waldron2011-08-051-8/+8
|
* Quick improvement to the performace of .index() with no arguments - Adding a ↵gnarf2011-06-141-2/+4
| | | | unit test for .index() of a node without a parent returns -1
* 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
|\|