Sha256: eb673c2ce09691f329e7e4188b64d2eccbec346ea2fb36d0f468e092765f4710

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

// ==========================================================================
// QUnit.Test
// ==========================================================================

QUnit.Test = SC.Record.extend({
  
  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

2 entries across 2 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/apps/sc_qunit/models/test.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/apps/sc_qunit/models/test.js