PuzzleSDK
UITests类 参考

#include <UITest.h>

+ 类 UITests 继承关系图:
+ UITests 的协作图:

Public 成员函数

 UITests ()
 
 ~UITests ()
 
- Public 成员函数 继承自 TestList
 TestList ()
 
void addTest (const std::string &testName, std::function< TestBase *()> callback)
 
virtual void runThisTest () override
 
virtual void tableCellTouched (cocos2d::extension::TableView *table, cocos2d::extension::TableViewCell *cell) override
 
virtual cocos2d::extension::TableViewCell * tableCellAtIndex (cocos2d::extension::TableView *table, ssize_t idx) override
 
virtual cocos2d::Size tableCellSizeForIndex (cocos2d::extension::TableView *table, ssize_t idx) override
 
virtual ssize_t numberOfCellsInTableView (cocos2d::extension::TableView *table) override
 
virtual void scrollViewDidScroll (cocos2d::extension::ScrollView *view) override
 
virtual void scrollViewDidZoom (cocos2d::extension::ScrollView *view) override
 
- Public 成员函数 继承自 TestBase
virtual ~TestBase ()
 
void backsUpOneLevel ()
 
bool isTestList ()
 
ssize_t getChildTestCount ()
 
void setTestParent (TestBase *parent)
 
TestBasegetTestParent ()
 
void setTestName (const std::string &testName)
 
std::string getTestName () const
 

额外继承的成员函数

- Protected 成员函数 继承自 TestBase
 TestBase ()
 
- Protected 属性 继承自 TestBase
std::string _testName
 
TestBase_parentTest
 
bool _isTestList
 
std::vector< std::string > _childTestNames
 

详细描述

在文件 UITest.h30 行定义.

构造及析构函数说明

◆ UITests()

UITests::UITests ( )

在文件 UITest.cpp29 行定义.

30{
31 addTest("GUI Dynamic Create Test", [](){ return new (std::nothrow) GUIDynamicCreateTests; });
32}
void addTest(const std::string &testName, std::function< TestBase *()> callback)
Definition: BaseTest.cpp:135

引用了 TestList::addTest().

+ 函数调用图:

◆ ~UITests()

UITests::~UITests ( )

在文件 UITest.cpp34 行定义.

35{
36}

该类的文档由以下文件生成: