X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=03f8f32c8e7666745f1183067f5c779c165a16eb;hb=d40083c866738727aa7ffd7f13d2955bc9575d5e;hp=49976345d55e4e3c1ccbe9171706405c5b43dbb7;hpb=b30af34f28074b491929445f5aad3d62c63e772f;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 4997634..03f8f32 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -13,7 +13,7 @@ test("text()", function() { }); var testWrap = function(val) { - expect(15); + expect(18); var defaultText = 'Try them out:' var result = jQuery('#first').wrap(val( '
' )).text(); equals( defaultText, result, 'Check for wrapping of on-the-fly html' ); @@ -37,7 +37,7 @@ var testWrap = function(val) { var j = jQuery("#nonnodes").contents(); j.wrap(val( "" )); equals( jQuery("#nonnodes > i").length, 3, "Check node,textnode,comment wraps ok" ); - equals( jQuery("#nonnodes > i").text(), j.text() + j[1].nodeValue, "Check node,textnode,comment wraps doesn't hurt text" ); + equals( jQuery("#nonnodes > i").text(), j.text(), "Check node,textnode,comment wraps doesn't hurt text" ); // Try wrapping a disconnected node j = jQuery("