Core: add test for jQuery.isPlainObject(localStorage)

Ref gh-3045
This commit is contained in:
Oleg Gaidarenko 2016-04-08 13:51:32 +03:00
parent 91850ecbbe
commit ce6c83f710

View File

@ -382,6 +382,12 @@ QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)"
assert.equal( jQuery.isPlainObject( Object( Symbol() ) ), false, "Symbol inside an object" );
} );
QUnit.test( "isPlainObject(localStorage)", function( assert ) {
assert.expect( 1 );
assert.equal( jQuery.isPlainObject( localStorage ), false );
} );
QUnit[ "assign" in Object ? "test" : "skip" ]( "isPlainObject(Object.assign(...))",
function( assert ) {
assert.expect( 1 );