Sha256: 023664f78c031c13f912b7f07c26ab5ae2f2db53c69dfdaa1899c4108d230418

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

// ==========================================================================
// Project:   CoreTools.Test
// Copyright: ©2011 Apple Inc.
// ==========================================================================
/*globals CoreTools */

/**

  (Document your Model here)

  @extends SC.Record
  @version 0.1
*/
CoreTools.Test = SC.Record.extend(
/** @scope CoreTools.Test.prototype */ {

  primaryKey: "url",

  /**
    The filename for this test.
  */
  filename: SC.Record.attr(String),

  /**
    The test URL.
  */
  url: SC.Record.attr(String),

  /**
    Display name to show in the tests UI.  This is computed by removing some
    generic cruft from the filename.
  */
  displayName: function() {
    return (this.get('filename') || '').replace(/^tests\//,'');
  }.property('filename').cacheable(),

  /**
    Test icon.  To be replaced eventually with actual pass|fail icons
  */
  icon: 'sc-icon-document-16',

  /**
    Shows the "branch" at the right of the list.  Eventually this will be
    computed based on whether the test is a summary of other tests or not.
  */
  isRunnable: YES

});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js