Skip to content

Commit

Permalink
Merge pull request cocos2d#13558 from WenhaiLin/v3.8-testcase-refine2
Browse files Browse the repository at this point in the history
[cpp-tests]Refine test cases about label
  • Loading branch information
pandamicro committed Aug 25, 2015
2 parents 44c1624 + d6ed3b4 commit b6de58c
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 243 deletions.
1 change: 1 addition & 0 deletions tests/cpp-tests/Classes/BaseTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ bool TestCase::init()

ttfConfig.fontSize = 16;
_subtitleLabel = Label::createWithTTF(ttfConfig, subtitle());
_subtitleLabel->setMaxLineWidth(VisibleRect::getVisibleRect().size.width);
addChild(_subtitleLabel, 9999);
_subtitleLabel->setPosition(VisibleRect::center().x, VisibleRect::top().y - 60);

Expand Down
Loading

0 comments on commit b6de58c

Please sign in to comment.