Sha256: 7aef5d4f16f88a7f479b91b8c92d4751dabb9aa55668ab0efe4727f319995ea8
Contents?: true
Size: 1015 Bytes
Versions: 27
Compression:
Stored size: 1015 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== // ======================================================================== // SC.UserDefaults Base Tests // ======================================================================== /*globals module test ok isObj equals expects */ var obj; //global variables module("User Defaults",{ setup: function(){ obj = SC.Object.create({ bck : 'green' }); } }); test("To check if the user defaults are stored and read from local storage",function(){ SC.userDefaults.writeDefault('Back',obj.bck); equals(SC.userDefaults.readDefault('Back'), obj.bck, 'should read written property'); });
Version data entries
27 entries across 27 versions & 1 rubygems