2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _TESTS_H_
|
|
|
|
#define _TESTS_H_
|
|
|
|
|
|
|
|
#include "ActionsTest/ActionsTest.h"
|
|
|
|
#include "TransitionsTest/TransitionsTest.h"
|
|
|
|
#include "ActionsProgressTest/ActionsProgressTest.h"
|
|
|
|
#include "EffectsTest/EffectsTest.h"
|
|
|
|
#include "ClickAndMoveTest/ClickAndMoveTest.h"
|
|
|
|
#include "RotateWorldTest/RotateWorldTest.h"
|
|
|
|
#include "ParticleTest/ParticleTest.h"
|
|
|
|
#include "ActionsEaseTest/ActionsEaseTest.h"
|
|
|
|
#include "MotionStreakTest/MotionStreakTest.h"
|
|
|
|
#include "DrawPrimitivesTest/DrawPrimitivesTest.h"
|
|
|
|
#include "TouchesTest/TouchesTest.h"
|
|
|
|
#include "MenuTest/MenuTest.h"
|
|
|
|
#include "ActionManagerTest/ActionManagerTest.h"
|
|
|
|
#include "LayerTest/LayerTest.h"
|
|
|
|
#include "SceneTest/SceneTest.h"
|
|
|
|
#include "ParallaxTest/ParallaxTest.h"
|
|
|
|
#include "TileMapTest/TileMapTest.h"
|
|
|
|
#include "IntervalTest/IntervalTest.h"
|
|
|
|
#include "LabelTest/LabelTest.h"
|
|
|
|
#include "TextInputTest/TextInputTest.h"
|
|
|
|
#include "SpriteTest/SpriteTest.h"
|
|
|
|
#include "SchedulerTest/SchedulerTest.h"
|
|
|
|
#include "RenderTextureTest/RenderTextureTest.h"
|
|
|
|
#include "Box2DTest/Box2dTest.h"
|
|
|
|
#include "Box2DTestBed/Box2dView.h"
|
|
|
|
#include "EffectsAdvancedTest/EffectsAdvancedTest.h"
|
|
|
|
#include "AccelerometerTest/AccelerometerTest.h"
|
|
|
|
#include "KeypadTest/KeypadTest.h"
|
|
|
|
#include "PerformanceTest/PerformanceTest.h"
|
|
|
|
#include "ZwoptexTest/ZwoptexTest.h"
|
|
|
|
#include "CocosDenshionTest/CocosDenshionTest.h"
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
|
|
|
// bada don't support libcurl
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "CurlTest/CurlTest.h"
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "UserDefaultTest/UserDefaultTest.h"
|
|
|
|
#include "BugsTest/BugsTest.h"
|
|
|
|
#include "Texture2dTest/Texture2dTest.h"
|
|
|
|
#include "FontTest/FontTest.h"
|
|
|
|
#include "CurrentLanguageTest/CurrentLanguageTest.h"
|
|
|
|
#include "TextureCacheTest/TextureCacheTest.h"
|
|
|
|
#include "NodeTest/NodeTest.h"
|
|
|
|
#include "ShaderTest/ShaderTest.h"
|
|
|
|
#include "ExtensionsTest/ExtensionsTest.h"
|
2012-04-23 14:30:38 +08:00
|
|
|
#include "MutiTouchTest/MutiTouchTest.h"
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2012-11-21 15:22:54 +08:00
|
|
|
#include "ClippingNodeTest/ClippingNodeTest.h"
|
2012-11-21 12:02:29 +08:00
|
|
|
#include "ChipmunkTest/ChipmunkTest.h"
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
2013-01-28 15:17:20 +08:00
|
|
|
#include "FileUtilsTest/FileUtilsTest.h"
|
2013-04-24 13:57:34 +08:00
|
|
|
#include "SpineTest/SpineTest.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
TEST_ACTIONS = 0,
|
|
|
|
TEST_TRANSITIONS,
|
|
|
|
TEST_PROGRESS_ACTIONS,
|
|
|
|
TEST_EFFECTS,
|
|
|
|
TEST_CLICK_AND_MOVE,
|
|
|
|
TEST_ROTATE_WORLD,
|
|
|
|
TEST_PARTICLE,
|
|
|
|
TEST_EASE_ACTIONS,
|
|
|
|
TEST_MOTION_STREAK,
|
|
|
|
TEST_DRAW_PRIMITIVES,
|
|
|
|
TEST_COCOSNODE,
|
|
|
|
TEST_TOUCHES,
|
|
|
|
TEST_MENU,
|
|
|
|
TEST_ACTION_MANAGER,
|
|
|
|
TEST_LAYER,
|
|
|
|
TEST_SCENE,
|
|
|
|
TEST_PARALLAX,
|
|
|
|
TEST_TILE_MAP,
|
|
|
|
TEST_INTERVAL,
|
|
|
|
TEST_LABEL,
|
|
|
|
TEST_TEXT_INPUT,
|
|
|
|
TEST_SPRITE,
|
|
|
|
TEST_SCHEDULER,
|
|
|
|
TEST_RENDERTEXTURE,
|
|
|
|
TEST_TEXTURE2D,
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2012-11-21 12:02:29 +08:00
|
|
|
TEST_CHIPMUNK,
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
2012-04-19 14:35:52 +08:00
|
|
|
TEST_BOX2D,
|
|
|
|
TEST_BOX2DBED,
|
|
|
|
TEST_EFFECT_ADVANCE,
|
|
|
|
TEST_ACCELEROMRTER,
|
|
|
|
TEST_KEYPAD,
|
|
|
|
TEST_COCOSDENSHION,
|
|
|
|
TEST_PERFORMANCE,
|
|
|
|
TEST_ZWOPTEX,
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
|
2012-04-19 14:35:52 +08:00
|
|
|
TEST_CURL,
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
2012-04-19 14:35:52 +08:00
|
|
|
TEST_USERDEFAULT,
|
|
|
|
TEST_BUGS,
|
|
|
|
TEST_FONTS,
|
|
|
|
TEST_CURRENT_LANGUAGE,
|
|
|
|
TEST_TEXTURECACHE,
|
|
|
|
TEST_EXTENSIONS,
|
|
|
|
TEST_SHADER,
|
2012-04-23 14:30:38 +08:00
|
|
|
TEST_MUTITOUCH,
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2012-11-21 15:22:54 +08:00
|
|
|
TEST_CLIPPINGNODE,
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
2013-01-28 15:17:20 +08:00
|
|
|
TEST_FILEUTILS,
|
2013-04-24 13:57:34 +08:00
|
|
|
TEST_SPINE,
|
2012-04-19 14:35:52 +08:00
|
|
|
TESTS_COUNT,
|
|
|
|
};
|
|
|
|
|
|
|
|
const std::string g_aTestNames[TESTS_COUNT] = {
|
|
|
|
"ActionsTest",
|
|
|
|
"TransitionsTest",
|
|
|
|
"ActionsProgressTest",
|
|
|
|
"EffectsTest",
|
|
|
|
"ClickAndMoveTest",
|
|
|
|
"RotateWorldTest",
|
|
|
|
"ParticleTest",
|
|
|
|
"ActionsEaseTest",
|
|
|
|
"MotionStreakTest",
|
|
|
|
"DrawPrimitivesTest",
|
|
|
|
"NodeTest",
|
|
|
|
"TouchesTest",
|
|
|
|
"MenuTest",
|
|
|
|
"ActionManagerTest",
|
|
|
|
"LayerTest",
|
|
|
|
"SceneTest",
|
|
|
|
"ParallaxTest",
|
|
|
|
"TileMapTest",
|
|
|
|
"IntervalTest",
|
|
|
|
"LabelTest",
|
|
|
|
"TextInputTest",
|
|
|
|
"SpriteTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
"SchedulerTest",
|
2012-04-19 14:35:52 +08:00
|
|
|
"RenderTextureTest",
|
|
|
|
"Texture2DTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2012-11-21 12:02:29 +08:00
|
|
|
"ChipmunkTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
2012-04-19 14:35:52 +08:00
|
|
|
"Box2dTest",
|
|
|
|
"Box2dTestBed",
|
|
|
|
"EffectAdvancedTest",
|
|
|
|
"Accelerometer",
|
|
|
|
"KeypadTest",
|
|
|
|
"CocosDenshionTest",
|
|
|
|
"PerformanceTest",
|
|
|
|
"ZwoptexTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
|
2012-04-19 14:35:52 +08:00
|
|
|
"CurlTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
2012-04-19 14:35:52 +08:00
|
|
|
"UserDefaultTest",
|
|
|
|
"BugsTest",
|
|
|
|
"FontTest",
|
|
|
|
"CurrentLanguageTest",
|
|
|
|
"TextureCacheTest",
|
|
|
|
"ExtensionsTest",
|
2012-04-23 14:30:38 +08:00
|
|
|
"ShaderTest",
|
2012-11-21 15:22:54 +08:00
|
|
|
"MutiTouchTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MARMALADE)
|
2013-01-28 15:17:20 +08:00
|
|
|
"ClippingNodeTest",
|
2012-11-25 03:14:01 +08:00
|
|
|
#endif
|
2013-04-24 13:57:34 +08:00
|
|
|
"FileUtilsTest",
|
|
|
|
"SpineTest"
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|