X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=a4e82eb6e0ec2e3f695bc2eb07e2ea21af087fee;hb=26731d475bded26fb1323d4f33266f503474d4b8;hp=69a0676560345c4694f0c351be5c1a41c41bb2b3;hpb=481171a3f81c46b9e46ffbf76a5cddcec83be850;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 69a0676..a4e82eb 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1688,13 +1688,6 @@ test("jQuery.each(Object,Function)", function() { equals( total, 3, "Looping over an object, with break" ); }); -test("jQuery.prop", function() { - expect(2); - var handle = function() { return this.id }; - equals( jQuery.prop(jQuery("#ap")[0], handle), "ap", "Check with Function argument" ); - equals( jQuery.prop(jQuery("#ap")[0], "value"), "value", "Check with value argument" ); -}); - test("jQuery.className", function() { expect(6); var x = jQuery("

Hi

")[0]; @@ -1713,7 +1706,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 +1716,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();