Sha256: fa49442fd86a9d252b96686ff66f74bb29f986e5c61916eba2c3b8dab75cd7f6

Contents?: true

Size: 1008 Bytes

Versions: 41

Compression:

Stored size: 1008 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Apple Inc. and contributors.
// License:   Licensed 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

41 entries across 41 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js