diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-12-09 00:26:24 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2012-12-15 23:16:48 -0500 |
commit | a763ae72775f69509d0a8a6b50702bcf2c7e6fbf (patch) | |
tree | b88d062c5199bec72e02e3145c0120aea542fb1d /test/unit/traversing.js | |
parent | 55a8ba52268ba0ef33cb750f5795add38f29d067 (diff) | |
download | jquery-a763ae72775f69509d0a8a6b50702bcf2c7e6fbf.tar.gz jquery-a763ae72775f69509d0a8a6b50702bcf2c7e6fbf.zip |
Fix #11115: Normalize boolean attributes/properties. Close gh-1066.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index fa945365c..94ee061dc 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -329,7 +329,11 @@ test("not(Selector|undefined)", function() { equal( jQuery("#qunit-fixture > p#ap > a").not("#google").length, 2, "not('selector')" ); deepEqual( jQuery("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" ); deepEqual( jQuery("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" ); - deepEqual( jQuery("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d", "option3e", "option4e","option5b"), "not('complex selector')"); + deepEqual( + jQuery("#form option").not("option.emptyopt:contains('Nothing'),optgroup *,[value='1']").get(), + q("option1c", "option1d", "option2c", "option2d", "option3c", "option3d", "option3e", "option4d", "option4e", "option5a", "option5b"), + "not('complex selector')" + ); deepEqual( jQuery("#ap *").not("code").get(), q("google", "groups", "anchor1", "mark"), "not('tag selector')" ); deepEqual( jQuery("#ap *").not("code, #mark").get(), q("google", "groups", "anchor1"), "not('tag, ID selector')" ); |