X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=9f3fb6f2c0f6598e6abf8c7b6ff57d16bf489c02;hb=70ae356e4ed1f74bb008939b345437fbe7deb26d;hp=3c0c6761da801d014e2f9d2df54736ffdd3271a2;hpb=e2ef3df86d5f54274bf2b779d882c30aa0886bfe;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 3c0c676..9f3fb6f 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -182,7 +182,7 @@ test("attributes", function() { }); test("pseudo (:) selectors", function() { - expect(32); + expect(35); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); @@ -195,6 +195,9 @@ 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 - recursive", "#form option:not(:not(:selected))[id^='option3']", [ "option3b", "option3c"] ); t( "nth Element", "p:nth(1)", ["ap"] ); t( "First Element", "p:first", ["firstp"] );