diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-05-18 18:43:01 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-05-18 18:53:26 +0200 |
commit | 5e028c76f4486ea0814ca71f75459ed934dd13eb (patch) | |
tree | 409271279cddf115891b46bc0d5c50ab8e008264 /test/unit/wrap.js | |
parent | 8ad78cdbc40efd8db01b0a2e6f7e58b8aaf0c977 (diff) | |
download | jquery-5e028c76f4486ea0814ca71f75459ed934dd13eb.tar.gz jquery-5e028c76f4486ea0814ca71f75459ed934dd13eb.zip |
Tests: Remove remaining obsolete jQuery.cache references
PR gh-4586 removed some of those but not all.
Closes gh-4715
Ref gh-4586
(cherry picked from commit d96111e18b42ae1bc7def72a8a0d156ea39e4d0e)
Diffstat (limited to 'test/unit/wrap.js')
-rw-r--r-- | test/unit/wrap.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/test/unit/wrap.js b/test/unit/wrap.js index 21335c36f..3c0990eac 100644 --- a/test/unit/wrap.js +++ b/test/unit/wrap.js @@ -21,7 +21,7 @@ function manipulationFunctionReturningObj( value ) { function testWrap( val, assert ) { - assert.expect( 19 ); + assert.expect( 18 ); var defaultText, result, j, i, cacheLength; @@ -68,12 +68,6 @@ function testWrap( val, assert ) { "Check node,textnode,comment wraps doesn't hurt text" ); - // Try wrapping a disconnected node - cacheLength = 0; - for ( i in jQuery.cache ) { - cacheLength++; - } - j = jQuery( "<label></label>" ).wrap( val( "<li></li>" ) ); assert.equal( j[ 0 ] .nodeName.toUpperCase(), "LABEL", "Element is a label" @@ -82,13 +76,6 @@ function testWrap( val, assert ) { j[ 0 ].parentNode.nodeName.toUpperCase(), "LI", "Element has been wrapped" ); - for ( i in jQuery.cache ) { - cacheLength--; - } - assert.equal( - cacheLength, 0, "No memory leak in jQuery.cache (bug #7165)" - ); - // Wrap an element containing a text node j = jQuery( "<span></span>" ).wrap( "<div>test</div>" ); assert.equal( |