Sha256: 017d06c59bc88cef91de9af15b5572e006782cdf847101faaa00176d0c3f74de
Contents?: true
Size: 816 Bytes
Versions: 10
Compression:
Stored size: 816 Bytes
Contents
// ======================================================================== // 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); SC.userDefaults.readDefault('Back'); // [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" // location: "http://localhost:4020/static/sproutcore/foundation/en/current/source/system/user_defaults.js?1234934251 Line: 131"] });
Version data entries
10 entries across 10 versions & 1 rubygems