Skip to content

Commit 3c46506

Browse files
committed
Changed layout test to include buttons
Former-commit-id: fe61e6d
1 parent 78cd8cb commit 3c46506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d-ui-tests/tests/CCLayoutTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ - (void) setupLayoutBoxTestDynamical
8383

8484
CCSprite* sprite0 = [CCSprite spriteWithImageNamed:@"Sprites/bird.png"];
8585
CCSprite* sprite1 = [CCSprite spriteWithImageNamed:@"Sprites/grossini.png"];
86-
CCSprite* sprite2 = [CCSprite spriteWithImageNamed:@"Sprites/grossinis_sister.png"];
86+
CCButton* sprite2 = [CCButton buttonWithTitle:@"Button" spriteFrame:[CCSpriteFrame frameWithImageNamed:@"Sprites/grossinis_sister.png"]];
8787

8888
[_layout addChild:sprite0];
8989
[_layout addChild:sprite1];

0 commit comments

Comments
 (0)