Sha256: 92b61701f2e33d4f06532a4e4f0ccd9b9bf0c26a451720534d0486f0840d6832

Contents?: true

Size: 767 Bytes

Versions: 22

Compression:

Stored size: 767 Bytes

Contents

// ==========================================================================
// TestRunner.Test
// ==========================================================================

require('core');

TestRunner.Test = SC.Record.extend({
  
  // TODO: Add your own code here.
  title: function() {
    if (!this._title) {
      var parts = (this.get('name') || '').split('/') ;
      var ret = parts.pop() || '' ;
      this._title = ret.replace(/\.rhtml$/,'').replace(/_/g,' ');
    }
    return this._title ;
  }.property('name'),
  
  group: function() {
    if (!this._group) {
      var parts = (this.get('name') || '').split('/') ;
      this._group = parts.slice(0,parts.length-1).join('/').toLowerCase() ;
    }
    return this._group; 
  }.property('name')
  
}) ;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sproutcore-0.9.12 clients/sc_test_runner/models/test.js
sproutcore-0.9.10 clients/sc_test_runner/models/test.js
sproutcore-0.9.11 clients/sc_test_runner/models/test.js
sproutcore-0.9.14 clients/sc_test_runner/models/test.js
sproutcore-0.9.13 clients/sc_test_runner/models/test.js
sproutcore-0.9.15 clients/sc_test_runner/models/test.js
sproutcore-0.9.19 clients/sc_test_runner/models/test.js
sproutcore-0.9.16 clients/sc_test_runner/models/test.js
sproutcore-0.9.18 clients/sc_test_runner/models/test.js
sproutcore-0.9.17 clients/sc_test_runner/models/test.js
sproutcore-0.9.2 clients/sc_test_runner/models/test.js
sproutcore-0.9.21 clients/sc_test_runner/models/test.js
sproutcore-0.9.20 clients/sc_test_runner/models/test.js
sproutcore-0.9.23 clients/sc_test_runner/models/test.js
sproutcore-0.9.22 clients/sc_test_runner/models/test.js
sproutcore-0.9.4 clients/sc_test_runner/models/test.js
sproutcore-0.9.5 clients/sc_test_runner/models/test.js
sproutcore-0.9.3 clients/sc_test_runner/models/test.js
sproutcore-0.9.7 clients/sc_test_runner/models/test.js
sproutcore-0.9.6 clients/sc_test_runner/models/test.js