diff options
author | karan-96 <karanbatra96@gmail.com> | 2017-01-17 22:22:50 +0530 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2017-03-01 11:48:11 +0100 |
commit | ac9e3016645078e1e42120822cfb2076151c8cbe (patch) | |
tree | 51eecd51ad23004e68a20a448fc34fbde9d474b6 /test/unit/core.js | |
parent | bd984f0ee2cf40107a669d80d92566b8625b1e6b (diff) | |
download | jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.tar.gz jquery-ac9e3016645078e1e42120822cfb2076151c8cbe.zip |
Core: Deprecate jQuery.nodeName
Fixes gh-3475
Closes gh-3505
Diffstat (limited to 'test/unit/core.js')
-rw-r--r-- | test/unit/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 312e20ad0..adccfb58f 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -696,7 +696,7 @@ QUnit.test( "jQuery(element with non-alphanumeric name)", function( assert ) { var tagName = tag + symbol + "test"; var el = jQuery( "<" + tagName + "></" + tagName + ">" ); assert.ok( el[ 0 ], "Create a " + tagName + " element" ); - assert.ok( jQuery.nodeName( el[ 0 ], tagName.toUpperCase() ), + assert.ok( el[ 0 ].nodeName === tagName.toUpperCase(), tagName + " element has expected node name" ); } ); @@ -704,7 +704,7 @@ QUnit.test( "jQuery(element with non-alphanumeric name)", function( assert ) { var tagName = [ "tr", "multiple", "symbol" ].join( symbol ); var el = jQuery( "<" + tagName + "></" + tagName + ">" ); assert.ok( el[ 0 ], "Create a " + tagName + " element" ); - assert.ok( jQuery.nodeName( el[ 0 ], tagName.toUpperCase() ), + assert.ok( el[ 0 ].nodeName === tagName.toUpperCase(), tagName + " element has expected node name" ); } ); } ); |