X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=9d91c4f754d040a71c0e8f80fe14cd59730c7fa4;hb=a37ca9e9058243169725982e91bce60801b9857d;hp=69a0676560345c4694f0c351be5c1a41c41bb2b3;hpb=db62240fcfe5636393fd3838fbb5ab62c363ad31;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 69a0676..9d91c4f 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1713,7 +1713,7 @@ test("jQuery.className", function() { }); test("remove()", function() { - expect(6); + expect(7); jQuery("#ap").children().remove(); ok( jQuery("#ap").text().length > 10, "Check text is not removed" ); equals( jQuery("#ap").children().length, 0, "Check remove" ); @@ -1723,6 +1723,9 @@ test("remove()", function() { ok( jQuery("#ap").text().length > 10, "Check text is not removed" ); equals( jQuery("#ap").children().length, 1, "Check filtered remove" ); + jQuery("#ap").children().remove("a, code"); + equals( jQuery("#ap").children().length, 0, "Check multi-filtered remove" ); + // using contents will get comments regular, text, and comment nodes equals( jQuery("#nonnodes").contents().length, 3, "Check node,textnode,comment remove works" ); jQuery("#nonnodes").contents().remove();