Sha256: 1690b2f7de697b27388e23e2824e7bebdf45bbb6840c3e0f00011c645694b30d

Contents?: true

Size: 1007 Bytes

Versions: 15

Compression:

Stored size: 1007 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Apple Inc. and contributors.
// License:   Licened under MIT license (see license.js)
// ==========================================================================
/*globals module ok equals same test MyApp */

// This file tests the initial state of the store when it is first created
// either independently or as a chained store.

module("SC.Store#init");

test("initial setup for root store", function() {
  var store = SC.Store.create();
  
  equals(SC.typeOf(store.dataHashes), SC.T_HASH, 'should have dataHashes');
  equals(SC.typeOf(store.revisions), SC.T_HASH, 'should have revisions');
  equals(SC.typeOf(store.statuses), SC.T_HASH, 'should have statuses');
  ok(!store.editables, 'should not have editables');
  ok(!store.recordErrors, 'should not have recordErrors');
  ok(!store.queryErrors, 'should not have queryErrors');
}); 

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js