Commit Graph

131 Commits

Author SHA1 Message Date
jeresig
e01e8d434d Accidentally removed the module teardown code. 2011-01-17 18:08:51 -05:00
jeresig
3ab7b72919 Opera was falling back to undefined, which it didn't appreciate. 2011-01-17 18:07:52 -05:00
jeresig
733eb5e253 Merge branch 'master' of github.com:jquery/jquery 2011-01-17 17:44:54 -05:00
jeresig
0c1ffe3cb3 Fixed a couple issues with escaping of attribute values in selectors. Fixes #6093. 2011-01-17 17:44:42 -05:00
Colin Snover
e2941d5a98 Update unit tests with a leak detection mechanism for the various jQuery globals and fix all leaks in the tests. 2011-01-09 15:58:47 -06:00
Colin Snover
3e0cc81504 Clean trailing whitespace from all files. 2010-12-30 00:34:48 -06:00
John Resig
d1a88b2e58 Merge branch 'fixAdjacentTests' of https://github.com/jitter/jquery into jitter-fixAdjacentTests 2010-11-09 15:49:07 -05:00
John Resig
b0e1e83aa9 Ensure that unquoted attribute selectors are quoted (allowing them to go into qSA/matchesSelector properly). Fixes #7216. 2010-11-09 14:03:11 -05:00
Anton M
a42f7a2590 Fix selector tests broken by newer version of Qunit. 2010-11-09 18:13:39 +01:00
jeresig
62c83a764c Only change ID on nodes that don't already have an ID for rooted qSA. Fixes #7212. 2010-11-01 19:29:11 -04:00
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
John Resig
b438d83916 Tweaked one of the selector tests. 2009-01-22 00:11:11 +00:00
John Resig
d45f193948 A follow-up for bug #3945. ID selectors don't work in querySelectorAll on XML documents, so we just fall back to the normal engine. 2009-01-21 23:31:29 +00:00
John Resig
7d9d210540 Make sure that [name=foo] and #id selectors don't use the native methods on XML documents (since id and name attributes may not be defined by a DTD and will return nothing instead. Fixes jQuery bug #3945. 2009-01-21 23:19:30 +00:00
John Resig
f9a5849723 Now handle the case where Safari's querySelectorAll fails on uppercase characters in quirks mode. Added a test to check for it and re-worked some of the existing tests to better handle document order issues. Fixes jQuery bug #3840. 2009-01-21 22:57:07 +00:00
John Resig
9b3804a8ec After discussing it with a number of users I've decided to revert the change to [name!=value]. It is now equal to :not([attr!=value]). Attempting to switch it to [attr]:not([attr!=value]) produced some really non-obvious results and confused users. Fixes jQuery bug #3884. 2009-01-21 22:36:21 +00:00
John Resig
626961c4a5 CHILD positions were being cached improperly. Tweaked it and added a test to make sure it doesn't happen again. Fixes jQuery bug #3924. 2009-01-21 22:01:50 +00:00
John Resig
aa7616cf9a Added support for a[name^='foo['] style selectors. Fies jQuery bug #3928. 2009-01-20 19:44:08 +00:00
John Resig
8e8d7ade43 Merged some recent fixes in from Sizzle. 2009-01-19 18:09:11 +00:00
John Resig
6dc30ae7f6 Merged Sizzle changes back into jQuery. 2009-01-13 16:40:19 +00:00
John Resig
f796ad14fd Fixed an issue with how broken selector tests were handled in IE (the exception was misdirected). 2009-01-05 20:43:58 +00:00
John Resig
122b672f70 Landed cross-browser support for tabIndex, by Scott, closes ticket #3649. 2009-01-05 17:34:42 +00:00
John Resig
989667c9fd Synced with the Sizzle repository. 2009-01-05 00:21:13 +00:00
John Resig
c85243dfc4 Landing the new Sizzle selector engine. There'll need to be some later tweaks (to make the tests a little more pragmatic - especially for document order elements). But it appears to be passing well and that's enough. Closes #3563. 2008-12-20 01:19:17 +00:00
John Resig
0865b073f8 A test was using the old / child selector syntax - updating to the new style. 2008-08-21 17:08:50 +00:00
Ariel Flesler
a27b5d0468 jquery core: closes #2652. val() supports option elements, also simplified the code. 2008-07-23 17:00:32 +00:00
Ariel Flesler
9e48649729 test runner: the changes are:
- Replaced all the $ for jQuery in the tests and suite.
- Added a noConflict to testrunner.js.
- Modified the test for noConflict() so that it still work.
- Added jQuery 1.2.1 and 1.2.3 to otherlibs.
2008-05-28 23:18:25 +00:00
Ariel Flesler
ba48be3ada test runner: translated all the ok() with '==' to equals(), as it gives more information on failures. 2008-05-06 18:56:02 +00:00
David Serduke
da33a981c6 Fixed #1854 by using wizzud's suggestion. The only real difference is the code is only called when there is more than a single selector. So there should be no speed decrease in the current working cases. Only additional functionality for cases that used to fail. 2007-12-13 22:24:59 +00:00
David Serduke
e2ef3df86d Fixed #1095 bug where radio buttons became unchecked during show(). Also added unit test and had to fix a selector test that was broken by the new testing div in test/index.html. Last made some whitespace changes. 2007-11-16 23:39:23 +00:00
David Serduke
084079d2fd Fixed #1727 bug where :nth-child() was non-standard with CSS3 plus two minor white space changes in selector.js. 2007-11-16 19:01:53 +00:00
John Resig
6728e3cf74 Finished up some of the reorganization. 2007-09-08 12:46:01 +00:00