| 73 | //------------------------------------------------------------------ |
| 74 | |
| 75 | void CrashTest::onEnter() |
| 76 | { |
| 77 | ActionManagerTest::onEnter(); |
| 78 | |
| 79 | auto child = Sprite::create(s_pathGrossini); |
| 80 | child->setPosition(VisibleRect::center()); |
| 81 | addChild(child, 1, kTagGrossini); |
| 82 | |
| 83 | // Sum of all action's duration is 1.5 second. |
| 84 | child->runAction(RotateBy::create(1.5f, 90)); |
| 85 | child->runAction(Sequence::create(DelayTime::create(1.4f), FadeOut::create(1.1f), nullptr)); |
| 86 | |
| 87 | // After 1.5 second, self will be removed. |
| 88 | child->runAction(Sequence::create(DelayTime::create(1.4f), |
| 89 | CallFunc::create(AX_CALLBACK_0(CrashTest::removeThis, this)), nullptr)); |
| 90 | } |
| 91 | |
| 92 | void CrashTest::removeThis() |
| 93 | { |
nothing calls this directly
no test coverage detected