X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=52f76ed6983b9e4cdf05189bee124611e93e7afc;hb=7f617e0c9f39d5cc608a05f808e6defade498fda;hp=6c3ecf8af800d4b7f0f44e21f3c108416d23335b;hpb=8b33e23ea07b206e96e39bb194675de80cff10ab;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 6c3ecf8..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("