void runSpriteTest() { SpriteMainScene::_s_autoTest = false; auto scene = new SpritePerformTest1; scene->initWithSubTest(1, 50); Director::getInstance()->replaceScene(scene); scene->release(); }
void runLabelTest() { LabelMainScene::_s_autoTest = false; auto scene = new LabelMainScene; scene->initWithSubTest(LabelMainScene::AUTO_TEST_NODE_NUM); Director::getInstance()->replaceScene(scene); scene->release(); }
void runParticleTest() { auto scene = new ParticlePerformTest1; scene->initWithSubTest(1, kNodesIncrease); Director::getInstance()->replaceScene(scene); scene->release(); }
bool SpriteMainScene::init() { if (TestCase::init()) { initWithSubTest(_subtestNumber, _quantityNodes); return true; } return false; }
bool ParticleMainScene::init() { if (TestCase::init()) { initWithSubTest(subtestNumber, quantityParticles); return true; } return false; }
void SpriteMainScene::beginAutoTest() { if (0 != SpriteMainScene::_s_nSpriteCurCase) { SpriteMainScene::_s_nSpriteCurCase = 0; } auto scene = new SpritePerformTest1; scene->initWithSubTest(1, 500); Director::getInstance()->replaceScene(scene); scene->release(); }