X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=a9c3e26d1d5b32002a2a91d0811e50cfa4c759f1;hb=c96b991493b3e432fe095a18cab29b046577976c;hp=28ba00702907155cb97f00aa21bd01542e401ce7;hpb=2550b1ea6a6eb6ba50d378a5dcfbc8146ca88bff;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 28ba007..a9c3e26 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -494,10 +494,11 @@ test("filter()", function() { isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" ); }); -test("not(String)", function() { - expect(2); +test("not()", function() { + expect(3); ok( $("#main > p#ap > a").not("#google").length == 2, "not('selector')" ); 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)" ); });