Sha256: 7198c8eb47ed2c30f8d2d88d7956b729ba7cb3ffa86646c1ffe0b50c0572e8b5

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            Portions ©2008-2009 Apple, Inc. All rights reserved.
// License:   Licened 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

11 entries across 11 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js