diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2015-07-18 11:27:11 -0700 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-09-08 20:22:54 +0200 |
commit | 0e982433eb94391b3e9f6838d9b8fbf9bb31abf9 (patch) | |
tree | 8a31c3546949a82aa3f6fea775b2a3dda06b1605 /test/unit/manipulation.js | |
parent | d4def22e4cd1c2eb2571f449e226b38384fb6d81 (diff) | |
download | jquery-0e982433eb94391b3e9f6838d9b8fbf9bb31abf9.tar.gz jquery-0e982433eb94391b3e9f6838d9b8fbf9bb31abf9.zip |
Data: avoid using delete on DOM nodes
Closes gh-2479
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d9f1b0247..37da12062 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2086,7 +2086,7 @@ QUnit.test( "jQuery.cleanData eliminates all private data (gh-2127)", function( } ); QUnit.test( "jQuery.cleanData eliminates all public data", function( assert ) { - assert.expect( 2 ); + assert.expect( 3 ); var key, div = jQuery( "<div/>" ); @@ -2100,7 +2100,7 @@ QUnit.test( "jQuery.cleanData eliminates all public data", function( assert ) { // Make sure the expando is gone for ( key in div[ 0 ] ) { if ( /^jQuery/.test( key ) ) { - assert.ok( false, "Expando was not removed when there was no more data" ); + assert.strictEqual( div[ 0 ][ key ], undefined, "Expando was not removed when there was no more data" ); } } } ); |