diff options
author | John Resig <jeresig@gmail.com> | 2009-02-07 17:41:30 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-02-07 17:41:30 +0000 |
commit | f38648c7cd3a37f4070b77b2c92151f68aa66fef (patch) | |
tree | dba6898bb86f72337360a57da2455c9f6421b70a /test/unit/selector.js | |
parent | 31597b7b3ce7737ead61eec55d9f66b9e9836cf7 (diff) | |
download | jquery-f38648c7cd3a37f4070b77b2c92151f68aa66fef.tar.gz jquery-f38648c7cd3a37f4070b77b2c92151f68aa66fef.zip |
Added a fix for empty attribute selection values. Fixes jQuery bug #3990.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index e85fce7fd..4c63a7a19 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -215,7 +215,7 @@ test("child and adjacent", function() { }); test("attributes", function() { - expect(35); + expect(37); t( "Attribute Exists", "a[title]", ["google"] ); t( "Attribute Exists", "*[title]", ["google"] ); t( "Attribute Exists", "[title]", ["google"] ); @@ -252,6 +252,9 @@ test("attributes", function() { t( "Attribute Ends With", "a[href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[href *= 'google']", ["google","groups"] ); t( "Attribute Is Not Equal", "#ap a[hreflang!='en']", ["google","groups","anchor1"] ); + + t("Empty values", "#select1 option[value='']", ["option1a"]); + t("Empty values", "#select1 option[value!='']", ["option1b","option1c","option1d"]); t("Select options via :selected", "#select1 option:selected", ["option1a"] ); t("Select options via :selected", "#select2 option:selected", ["option2d"] ); |