Commit graph

71 commits

Author SHA1 Message Date
jeresig d9a3e0080a Fix broken selector code from last commit. 2010-10-22 01:48:32 -04:00
jeresig 424500bcf0 Make sure that +, >, ~ leading, rooted, selectors go to the old engine. Thanks to @rkatic for the catch! Fixes #7220. 2010-10-22 01:18:58 -04:00
jeresig 6bc30425f6 Make sure that we don't use matchesSelector on XML Documents (same as with qSA). Fixes #7219. 2010-10-22 00:40:06 -04:00
jeresig 4fc86d5eb1 Make sure that we aren't reading one of the bad expandos. Fixes #7212. 2010-10-22 00:36:07 -04:00
jeresig 9be7461c3c Adding another test for an issue in Gecko's matchesSelector implementation. Fixes #7243. 2010-10-21 23:46:21 -04:00
jeresig 21d389ccea Testing *, * was unnecessary - especially in slower browsers. 2010-10-14 22:06:27 -04:00
John Resig 879799fe95 Make sure that ambiguous val() selection works correctly. 2010-09-28 08:36:28 -07:00
Dave Methvin 2c4b20809e Don't have .val() return selected-but-disabled options, or selected options inside a disabled optgroup. Doesn't change the .val() returned for a disabled select. Fixes #3240, adapted from Nathan Hammond's patch there. 2010-09-24 17:26:22 -04:00
Karl Swedberg 116f3b7c72 added "#main" ancestor selector to an "Only Child" and "Last Child" test to fix broken tests caused by QUnit commit abfab1713ccb588aa87136b199a9ddc8d1b56c4b (Aug 29, 2010) 2010-09-07 08:53:06 -04:00
John Resig 97cbd76695 Fix the order of the element test arguments. 2010-09-02 16:15:54 -04:00
John Resig 90a4abd511 Tweaked the name unit tests to specify the exact nodes from which to test against. 2010-09-02 15:13:10 -04:00
John Resig d48db1f440 Remove cases of :contains() where quotes are used - not using quotes follows more closely with the CSS Selector recommendation. 2010-09-02 14:56:32 -04:00
jzaefferer 6f031c1015 Replace usage of the removed global reset() method with QUnit.reset(). 2010-07-28 17:19:01 +02:00
jeresig 4151ddef9d Bringing some selector tests back from Sizzle. 2010-01-11 23:55:02 -05:00
John Resig f0505c6d75 Bringing Sizzle test suite changes back in. 2009-12-19 17:50:56 -05:00
jeresig ba86cc0294 Reworked some more of the selector tests as well to clean up after themselves. 2009-12-17 13:34:38 -05:00
jeresig 3a4bcf8a9c Added some more tests around the name tests to catch possible regressions. 2009-12-17 13:23:39 -05:00
John Resig 872d18c10e Check Sizzle or jQuery. 2009-12-07 15:33:14 -08:00
John Resig 813886a4df Only run the visibility selectors if the filter exists. 2009-12-07 15:31:25 -08:00
jeresig 9d6c4d8413 Removed broken hidden/visible test. 2009-12-03 12:26:25 -05:00
jeresig 0f0fd1aee3 Re-arranged many of the selector tests, breaking them into smaller test groups and into more-appropriate sections. 2009-12-03 11:45:38 -05:00
John Resig 805832afc7 Updated the jQuery suite to use the updated QUnit CSS styling. 2009-09-29 22:48:25 +00:00
John Resig b996026e38 Adapted the jQuery test suite to handle the toolbar moving inline. 2009-09-29 21:40:17 +00:00
John Resig b0306cc3a6 Updated the jQuery suite to use the new 'qunit-' prefix on specific elements. 2009-09-29 21:34:12 +00:00
John Resig 4bda398e6a Switched from using QUnit's isObj/isSet to the more robust same method. 2009-09-29 19:49:43 +00:00
John Resig a64ad8b4e9 Temporarily disabled some tests for Opera 10 - a variety of problems with input elements and selectors exist. 2009-08-26 16:29:46 +00:00
Brandon Aaron 31b573185b fix :hidden selector that was accidentally reverted in previous commit, also fixed tests for :hidden selector in IE6 2009-05-04 00:19:57 +00:00
Brandon Aaron 2c31a1624f fix for #4374, gap in :hidden, :visible logic 2009-03-18 17:55:07 +00:00
John Resig db8623ebc8 Fixed one of the selector tests that was reporting incorrectly in browsers that actually supported type="search" inputs. 2009-02-19 21:35:33 +00:00
John Resig 3e6c7f083c Missed an other search-related test. 2009-02-18 21:57:46 +00:00
John Resig ca79d866fe Made it so that search input elements are now serialized. Fixes bug #4107. 2009-02-18 19:43:14 +00:00
John Resig 4b7e1c906f Brought back the compareDocumentPosition code. While it is redundant in Firefox it's much faster than using indexOf. 2009-02-17 17:43:05 +00:00
John Resig f20c974644 Tweaked some of the selector tests to handle some of the test page changes. 2009-02-17 15:58:11 +00:00
John Resig 7b5cfb78ec Disabled one of the ordering tests that was taking a while to run. 2009-02-17 14:13:39 +00:00
John Resig 048fc4555f Added support for class selectors and class attribute selectors on XML documents. Fixes jQuery bug #4167. 2009-02-16 18:23:59 +00:00
John Resig 8533da939d Fixed an issue with :nth-child selectors embedded in :not() filters. Fixes jQuery bug #4156. 2009-02-16 17:58:33 +00:00
John Resig e25c4a132f Change the behavior of how :visible and :hidden work. :hidden is when an element is display none, a parent element is display none, or the element has a width of 0. :visible is when the element is not display none and all of its ancesotrs are not display none and its width is larger than 0. Fixes jQuery bugs #1349, #3265, and #3895. 2009-02-16 15:52:15 +00:00
John Resig 5586fedf29 Fixed a bug with certain + selectors failing (Fixes jQuery bug #4023). Also tweaked the + and > functions a little bit. 2009-02-16 15:36:42 +00:00
John Resig f0189d6181 Fixed the issue where weird characters were being used in ID selectors. Fixes jQuery bug #3913. 2009-02-15 22:46:54 +00:00
John Resig 22c9c9b9d3 Make sure that [name=FOO] searches actually have the specified name (IE includes elements that have the ID, as well). 2009-02-15 22:33:19 +00:00
John Resig 20827707a9 Added fixes for two different :not() bugs. One with p:not(p.foo) failing and another with a weird combination of multiple selectors and filters. Fixes jQuery bug #4101. 2009-02-15 21:13:33 +00:00
John Resig f9a7cfacf7 Updated the copy of jQuery and added some more context tests. 2009-02-15 18:20:01 +00:00
John Resig 21dde30348 Provide a graceful failover for [name=foo] queries that are looking for non-input/iframe/form elements. Fixes jQuery bug #4081. 2009-02-14 22:24:55 +00:00
John Resig 6f4b08cdf9 Added support for sorting in Safari - when querySelectorAll isn't able to be used. 2009-02-14 18:10:45 +00:00
John Resig 868f262eed Disabled expando selector tests - they don't work in all browsers. 2009-02-14 17:13:08 +00:00
John Resig e16c7fe0f8 Make sure that elements are returned in document order - and that the results are unique. 2009-02-14 16:59:10 +00:00
John Resig 9aa0c69c43 Fixed bubbling of live events (if an inner element handles an event first - and stops progatation - then the parent event doesn't encounter the event). Thanks to Irae for the patch. Fixes bug #3980. 2009-02-09 23:29:57 +00:00
John Resig b16da9d762 Reworked the attribute selection code to be able to select false-y values - and added some tests to verify that they work well against expandos. 2009-02-09 15:18:07 +00:00
John Resig f38648c7cd Added a fix for empty attribute selection values. Fixes jQuery bug #3990. 2009-02-07 17:41:30 +00:00
John Resig 2b7642cff0 Added logic for not using getElementsByClassName in different failure states. Fixes jQuery bugs #4058 and #4042. 2009-02-07 16:54:11 +00:00