Core: Deprecate jQuery.isWindow

Fixes gh-3629
Close gh-3702
This commit is contained in:
Shashanka Nataraj
2017-06-23 04:14:43 +00:00
committed by Timmy Willison
parent 490db839fb
commit c18d608537
9 changed files with 45 additions and 40 deletions

View File

@@ -76,7 +76,7 @@ QUnit.test( "show/hide", function( assert ) {
}
QUnit.test( "core", function( assert ) {
assert.expect( 27 );
assert.expect( 25 );
var elem = jQuery( "<div></div><span></span>" );
@@ -100,9 +100,6 @@ QUnit.test( "core", function( assert ) {
"<?xml version='1.0' encoding='UTF-8'?><foo bar='baz'></foo>"
) ), "jQuery.isXMLDoc" );
assert.ok( jQuery.isWindow( window ), "jQuery.isWindow(window)" );
assert.ok( !jQuery.isWindow( 2 ), "jQuery.isWindow(Number)" );
assert.strictEqual( jQuery.inArray( 3, [ "a", 6, false, 3, {} ] ), 3, "jQuery.inArray - true" );
assert.strictEqual(
jQuery.inArray( 3, [ "a", 6, false, "3", {} ] ),