diff options
author | Ariel Flesler <aflesler@gmail.com> | 2008-07-23 17:00:32 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2008-07-23 17:00:32 +0000 |
commit | a27b5d0468acc5dd8cdfcbff9464546b353e3c04 (patch) | |
tree | fe9f9517f1aa38bc3513b770a1a57bf8b457fa81 /test/unit/selector.js | |
parent | 69212c501f8875b4650847053cc41eaa470e5848 (diff) | |
download | jquery-a27b5d0468acc5dd8cdfcbff9464546b353e3c04.tar.gz jquery-a27b5d0468acc5dd8cdfcbff9464546b353e3c04.zip |
jquery core: closes #2652. val() supports option elements, also simplified the code.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index c8a6e9351..d4830a8cf 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -195,8 +195,8 @@ test("pseudo (:) selectors", function() { t( "Text Contains", "a:contains('Google Groups')", ["groups"] ); t( "Element Preceded By", "p ~ div", ["foo","fx-queue","fx-tests", "moretests"] ); t( "Not", "a.blog:not(.link)", ["mark"] ); - t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d"] ); - t( "Not - complex", "#form option:not([id^='opt']:gt(0):nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d"] ); + t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d", "option3e"] ); + t( "Not - complex", "#form option:not([id^='opt']:gt(0):nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] ); t( "Not - recursive", "#form option:not(:not(:selected))[id^='option3']", [ "option3b", "option3c"] ); t( "nth Element", "p:nth(1)", ["ap"] ); |