1 // ========================================================================== 2 // Project: CoreTools.Test 3 // Copyright: ©2011 Apple Inc. 4 // ========================================================================== 5 /*globals CoreTools */ 6 7 /** 8 9 (Document your Model here) 10 11 @extends SC.Record 12 @version 0.1 13 */ 14 CoreTools.Test = SC.Record.extend( 15 /** @scope CoreTools.Test.prototype */ { 16 17 primaryKey: "url", 18 19 /** 20 The filename for this test. 21 */ 22 filename: SC.Record.attr(String), 23 24 /** 25 The test URL. 26 */ 27 url: SC.Record.attr(String), 28 29 /** 30 Display name to show in the tests UI. This is computed by removing some 31 generic cruft from the filename. 32 */ 33 displayName: function() { 34 return (this.get('filename') || '').replace(/^tests\//,''); 35 }.property('filename').cacheable(), 36 37 /** 38 Test icon. To be replaced eventually with actual pass|fail icons 39 */ 40 icon: 'sc-icon-document-16', 41 42 /** 43 Shows the "branch" at the right of the list. Eventually this will be 44 computed based on whether the test is a summary of other tests or not. 45 */ 46 isRunnable: YES 47 48 }); 49