X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=d1035cf6476bd165c4b23e00aa14da8471087fa9;hb=4805a45c0669b298c24005ce6505b49d88f85fe7;hp=287d709858f0f2f69c47d0be57466bccd6078145;hpb=61504d516abcc7bae036056853f21601ad310826;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 287d709..d1035cf 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() { @@ -425,3 +426,4 @@ test("removeClass(String) - add three classes and remove again", function() { test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); +