X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=2692715fade51ea01be2629c9bf1a50429522f8a;hb=5a6029c9fe3618a6cc6b43356598ee4bfc4c2f2a;hp=287d709858f0f2f69c47d0be57466bccd6078145;hpb=79f9678bf51285bc7b00470cf130abe0218b6cbb;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 287d709..2692715 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -261,6 +261,7 @@ test("clone()", function() { test("filter()", function() { isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" ); isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" ); + isSet( $("p").filter(function(el) { return !$("a", el).length }).get(), q("sndp", "first"), "filter(Function)" ); }); test("not(String)", function() {