aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-04-08 13:51:32 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-04-08 13:54:23 +0300
commitce6c83f710c28108ccb4d50a7b924baa890dc961 (patch)
treea7d4fc28e0870a5c44c4c4db1b918ac080993505 /test/unit
parent91850ecbbe04ad8f5d89dc050aa1d9002047c435 (diff)
downloadjquery-ce6c83f710c28108ccb4d50a7b924baa890dc961.tar.gz
jquery-ce6c83f710c28108ccb4d50a7b924baa890dc961.zip
Core: add test for `jQuery.isPlainObject(localStorage)`
Ref gh-3045
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index f18ad2e82..a42346d00 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -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 );