X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=12b405644ac4dc2c6b5ce8b4d6575d214e13d664;hb=da33a981c6fb18a195377d55a6d243e2de887f45;hp=4e774857853490b82400ba5c29b69ed96fc04a93;hpb=279f77e9609fba62c11a06f8c65221b16f7bc7d4;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 4e77485..12b4056 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1052,10 +1052,12 @@ test("filter()", function() { }); test("not()", function() { - expect(3); + expect(5); ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" ); + isSet( $("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" ); isSet( $("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" ); isSet( $("p").not($("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" ); + isSet( $("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d" ), "not('complex selector')"); }); test("andSelf()", function() {