◆ RootTests()
在文件 controller.cpp 第 44 行定义.
47 addTest(
"ActionManager", [](){
return new (std::nothrow) ActionManagerTests(); });
48 addTest(
"Actions - Basic", [](){
return new (std::nothrow) ActionsTests(); });
49 addTest(
"Actions - Ease", [](){
return new (std::nothrow) ActionsEaseTests(); });
50 addTest(
"Actions - Progress", [](){
return new (std::nothrow) ActionsProgressTests(); });
51 addTest(
"Audio - NewAudioEngine", []() {
return new (std::nothrow) AudioEngineTests(); });
52#if CC_ENABLE_CHIPMUNK_INTEGRATION
53 addTest(
"Chipmunk", []() {
return new ChipmunkTests(); });
55 addTest(
"Bugs", []() {
return new BugsTests(); });
56 addTest(
"Click and Move", [](){
return new ClickAndMoveTest(); });
57 addTest(
"Configuration", []() {
return new ConfigurationTests(); });
58 addTest(
"Console", []() {
return new ConsoleTests(); });
59#if (CC_TARGET_PLATFORM != CC_PLATFORM_MAC) && (CC_TARGET_PLATFORM != CC_PLATFORM_IOS) && (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID)
61 addTest(
"Curl", []() {
return new CurlTests(); });
63 addTest(
"Current Language", []() {
return new CurrentLanguageTests(); });
64 addTest(
"Downloader Test", []() {
return new DownloaderTests(); });
65 addTest(
"EventDispatcher", []() {
return new EventDispatcherTests(); });
66 addTest(
"Effects - Advanced", []() {
return new EffectAdvanceTests(); });
67 addTest(
"Effects - Basic", [](){
return new EffectTests(); });
68 addTest(
"Extensions", []() {
return new ExtensionsTests(); });
69 addTest(
"FileUtils", []() {
return new FileUtilsTests(); });
70 addTest(
"Fonts", []() {
return new FontTests(); });
71 addTest(
"Interval", [](){
return new IntervalTests(); });
72#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
73 addTest(
"JNIHelper", []() {
return new JNITests(); });
75 addTest(
"Material System", [](){
return new MaterialSystemTest(); });
76 addTest(
"Navigation Mesh", [](){
return new NavMeshTests(); });
77 addTest(
"Node: BillBoard Test", [](){
return new BillBoardTests(); });
78 addTest(
"Node: Camera 3D Test", [](){
return new Camera3DTests(); });
79 addTest(
"Node: Clipping", []() {
return new ClippingNodeTests(); });
80 addTest(
"Node: Draw", [](){
return new DrawPrimitivesTests(); });
81 addTest(
"Node: Label - New API", [](){
return new NewLabelTests(); });
82 addTest(
"Node: Layer", [](){
return new LayerTests(); });
83 addTest(
"Node: Light", [](){
return new LightTests(); });
84 addTest(
"Node: Menu", [](){
return new MenuTests(); });
85 addTest(
"Node: MotionStreak", [](){
return new MotionStreakTests(); });
86 addTest(
"Node: Node", [](){
return new CocosNodeTests(); });
87 addTest(
"Node: Parallax", [](){
return new ParallaxTests(); });
88 addTest(
"Node: Particles", [](){
return new ParticleTests(); });
89 addTest(
"Node: Particle3D (PU)", [](){
return new Particle3DTests(); });
91 addTest(
"Node: Physics", []() {
return new PhysicsTests(); });
93 addTest(
"Node: Physics3D", []() {
return new Physics3DTests(); } );
94 addTest(
"Node: RenderTexture", [](){
return new RenderTextureTests(); });
95 addTest(
"Node: Scene", [](){
return new SceneTests(); });
97 addTest(
"Node: Sprite", [](){
return new SpriteTests(); });
98 addTest(
"Node: Sprite3D", [](){
return new Sprite3DTests(); });
99 addTest(
"Node: SpritePolygon", [](){
return new (std::nothrow) SpritePolygonTest(); });
100 addTest(
"Node: Terrain", [](){
return new TerrainTests(); });
101 addTest(
"Node: TileMap", [](){
return new TileMapTests(); });
102 addTest(
"Node: FastTileMap", [](){
return new FastTileMapTests(); });
103 addTest(
"Node: Text Input", [](){
return new TextInputTests(); });
105 addTest(
"Mouse", []() {
return new MouseTests(); });
106 addTest(
"MultiTouch", []() {
return new MultiTouchTests(); });
107 addTest(
"Renderer", []() {
return new NewRendererTests(); });
108 addTest(
"ReleasePool", [](){
return new ReleasePoolTests(); });
109 addTest(
"Rotate World", [](){
return new RotateWorldTests(); });
110 addTest(
"Scheduler", [](){
return new SchedulerTests(); });
111 addTest(
"Shader - Basic", []() {
return new ShaderTests(); });
112 addTest(
"Shader - Sprite", []() {
return new Shader2Tests(); });
113 addTest(
"Texture2D", [](){
return new Texture2DTests(); });
114 addTest(
"TextureCache", []() {
return new TextureCacheTests(); });
115 addTest(
"TexturePacker Encryption", []() {
return new TextureAtlasEncryptionTests(); });
116 addTest(
"Touches", [](){
return new TouchesTests(); });
117 addTest(
"Transitions", [](){
return new TransitionsTests(); });
118 addTest(
"Unit Test", []() {
return new UnitTests(); });
119 addTest(
"Unzip Test", []() {
return new ZipTests();});
120 addTest(
"URL Open Test", []() {
return new OpenURLTests(); });
121 addTest(
"UserDefault", []() {
return new UserDefaultTests(); });
122#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
123 addTest(
"Vibrate", []() {
return new VibrateTests(); });
125 addTest(
"Zwoptex", []() {
return new ZwoptexTests(); });
126 addTest(
"SpriteFrameCache", []() {
return new SpriteFrameCacheTests(); });
127#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
128 addTest(
"Window Test", []() {
return new WindowTests(); });
void addTest(const std::string &testName, std::function< TestBase *()> callback)
引用了 TestList::addTest().
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/controller.cpp