Sha256: 418e29c8f8ebc1028d11cdbd4463865d44459bf904eb5048148b4b0a19df5557

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 KB

Contents

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

/** @class

  (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

23 entries across 23 versions & 1 rubygems

Version Path
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/core_tools/models/test.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/core_tools/models/test.js