Sha256: 90e2722b1c810a87f3ecad20b9c12a90da0836041a243435e1f6bcf4c35038d8

Contents?: true

Size: 891 Bytes

Versions: 2

Compression:

Stored size: 891 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');
}); 

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js