Sha256: 4ab4dc2209a7cff491c3762173b53ab3d9a409a701de254832e4eb29740c1771

Contents?: true

Size: 1.42 KB

Versions: 41

Compression:

Stored size: 1.42 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
/*globals module test ok equals same */

var TestRunner;
module("Sample Model from TestRunner Application", { 
  setup: function() {

    // namespace
    TestRunner = SC.Object.create({
      store: SC.Store.create()
    });

    // describes a single target.  has target name, target type, and url to 
    // load tests.
    TestRunner.Target = SC.Record.extend({

      /** test name */
      name: SC.Record.attr(String),
      
      /** test type - one of 'app', 'framework', 'sproutcore' */
      type: SC.Record.attr(String, { only: 'single group all'.w() }),

      /** Fetches list of tests dynamically */
      tests: SC.Record.fetch('TestRunner.Test')

    });

    /* JSON:
    
     { 
       link_test:  "url to laod test",
        },
    */ 
    TestRunner.Test = SC.Record.extend({
      
      // testName
      testUrl: SC.Record.attr({
        key: 'link_test'
      }),
      
      target: SC.Record.attr('TestRunner.Target', {
        inverse: 'tests',
        isMaster: YES,
        isEditable: NO
      })
      
    });

  }
});

Version data entries

41 entries across 41 versions & 1 rubygems

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