Sha256: 79932dce9d5f813e4ea27dd64c14f411a6dd4ba281c37dabf9f6ce0de73090cd

Contents?: true

Size: 1008 Bytes

Versions: 7

Compression:

Stored size: 1008 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 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

7 entries across 7 versions & 1 rubygems

Version Path
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js