X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=inline;f=test%2Funit%2Fmanipulation.js;h=52f76ed6983b9e4cdf05189bee124611e93e7afc;hb=2a47ceae5b9bdc45fdc890e3cd5ec01c82db1688;hp=23ed898eaa56d00dc8e17249a0245df80f4e1e5b;hpb=cec68e2b00d86357c18b576cbaed52cc1ea42a74;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 23ed898..52f76ed 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -51,7 +51,7 @@ test("text(Function) with incoming value", function() { }); var testWrap = function(val) { - expect(18); + expect(19); var defaultText = 'Try them out:' var result = jQuery('#first').wrap(val( '
' )).text(); equals( defaultText, result, 'Check for wrapping of on-the-fly html' ); @@ -80,10 +80,20 @@ var testWrap = function(val) { equals( jQuery("#nonnodes > i").text(), j.text(), "Check node,textnode,comment wraps doesn't hurt text" ); // Try wrapping a disconnected node + var cacheLength = 0; + for (var i in jQuery.cache) { + cacheLength++; + } + j = jQuery("