This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation MBEntity : OJTestCase | |
{ | |
//MBEntity testEntity; | |
} | |
- (void)testTest | |
{ | |
[self assertTrue:true]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "../MBMonster.j" | |
@implementation MBMonsterTest : OJTestCase | |
{ | |
MBMonster testMonster; | |
} | |
- (void)setUp | |
{ | |
// Use MBMonster's default initialization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BagOfTricks.Monster = SC.Record.extend( | |
/** @scope BagOfTricks.Monster.prototype */ { | |
name: SC.Record.attr(String, { defaultValue: 'Unspecified' }), | |
level: SC.Record.attr(Number, { defaultValue: 0 }), | |
keywords: SC.Record.attr(Array, { defaultValue: function() { return [ 'Unspecified' ] } }) | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Testing the relations | |
// DON'T FORGET TO SET THE ID! THIS IS IMPORTANT! | |
var testSpeed = BagOfTricks.store.createRecord( BagOfTricks.Speed, {}, 2 ); | |
defaultMonster.get('speeds').pushObject(testSpeed); | |
equals(defaultMonster.get('speeds').objectAt(0), testSpeed, 'relation to speed'); // AND USE objectAt()! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<style type="text/css"> | |
p.clear { | |
clear:both; | |
} | |
img.newsPhoto { | |
border-radius: 3px; | |
border: 3px solid #fff; | |
box-shadow: 0px 2px 2px #888888; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sc-view { | |
position: relative; | |
overflow: visible; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<style type="text/css"> | |
body { | |
margin-top: 0px; | |
margin-bottom: 0px; | |
margin-left: 0px; | |
margin-right: 0px; | |
font-size: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Project: MonsterDesigner | |
// Copyright: @2011 My Company, Inc. | |
// ========================================================================== | |
/*globals MonsterDesigner */ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page | |
// load. | |
MonsterDesigner.mainPage = SC.Page.design({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Project: MonsterDesigner | |
// Copyright: @2011 My Company, Inc. | |
// ========================================================================== | |
/*globals MonsterDesigner */ | |
MonsterDesigner = SC.Application.create({ | |
store: SC.Store.create().from(SC.Record.fixtures) | |
}); |
OlderNewer