2013-09-16 20:54:13 +08:00
|
|
|
#include "CocosGUIScene.h"
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "UIButtonTest/UIButtonTest.h"
|
|
|
|
#include "UICheckBoxTest/UICheckBoxTest.h"
|
|
|
|
#include "UISliderTest/UISliderTest.h"
|
|
|
|
#include "UIImageViewTest/UIImageViewTest.h"
|
|
|
|
#include "UILoadingBarTest/UILoadingBarTest.h"
|
|
|
|
#include "UITextAtlasTest/UITextAtlasTest.h"
|
|
|
|
#include "UITextTest/UITextTest.h"
|
|
|
|
#include "UITextBMFontTest/UITextBMFontTest.h"
|
|
|
|
#include "UITextFieldTest/UITextFieldTest.h"
|
|
|
|
#include "UILayoutTest/UILayoutTest.h"
|
|
|
|
#include "UIScrollViewTest/UIScrollViewTest.h"
|
|
|
|
#include "UIPageViewTest/UIPageViewTest.h"
|
|
|
|
#include "UIListViewTest/UIListViewTest.h"
|
|
|
|
#include "UIWidgetAddNodeTest/UIWidgetAddNodeTest.h"
|
|
|
|
#include "UIRichTextTest/UIRichTextTest.h"
|
|
|
|
#include "UIFocusTest/UIFocusTest.h"
|
2014-05-14 11:26:04 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "UIVideoPlayerTest/UIVideoPlayerTest.h"
|
2014-08-26 11:39:56 +08:00
|
|
|
#endif
|
2014-10-16 16:46:49 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "UIWebViewTest/UIWebViewTest.h"
|
2014-05-14 11:26:04 +08:00
|
|
|
#endif
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "UIScale9SpriteTest.h"
|
2014-10-23 22:23:13 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "UIEditBoxTest.h"
|
|
|
|
#endif
|
2014-03-04 16:51:35 +08:00
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
GUIDynamicCreateTests::GUIDynamicCreateTests()
|
2014-03-04 16:51:35 +08:00
|
|
|
{
|
2015-04-03 14:31:03 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
|
|
addTest("VideoPlayer Test", [](){ return new (std::nothrow) VideoPlayerTests; });
|
|
|
|
#endif
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
|
|
addTest("WebView Test", [](){ return new (std::nothrow) WebViewTests; });
|
|
|
|
#endif
|
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
|
|
|
addTest("EditBox Test", [](){ return new (std::nothrow) UIEditBoxTests; });
|
|
|
|
#endif
|
|
|
|
addTest("Focus Test", [](){ return new (std::nothrow) UIFocusTests; });
|
|
|
|
addTest("Scale9Sprite Test", [](){ return new (std::nothrow) UIScale9SpriteTests; });
|
|
|
|
addTest("Button Test", [](){ return new (std::nothrow) UIButtonTests; });
|
|
|
|
addTest("CheckBox Test", [](){ return new (std::nothrow) UICheckBoxTests; });
|
|
|
|
addTest("Slider Test", [](){ return new (std::nothrow) UISliderTests; });
|
|
|
|
|
|
|
|
addTest("ImageView Test", [](){ return new (std::nothrow) UIImageViewTests; });
|
|
|
|
addTest("LoadingBar Test", [](){ return new (std::nothrow) UILoadingBarTests; });
|
|
|
|
addTest("TextAtlas Test", [](){ return new (std::nothrow) UITextAtlasTests; });
|
|
|
|
|
|
|
|
addTest("Text Test", [](){ return new (std::nothrow) UITextTests; });
|
|
|
|
addTest("TextBMFont Test", [](){ return new (std::nothrow) UITextBMFontTests; });
|
|
|
|
addTest("TextField Test", [](){ return new (std::nothrow) UITextFieldTests; });
|
|
|
|
addTest("Layout Test", [](){ return new (std::nothrow) UILayoutTests; });
|
|
|
|
|
|
|
|
addTest("ScrollView Test", [](){ return new (std::nothrow) UIScrollViewTests; });
|
|
|
|
addTest("PageView Test", [](){ return new (std::nothrow) UIPageViewTests; });
|
|
|
|
addTest("ListView Test", [](){ return new (std::nothrow) UIListViewTests; });
|
|
|
|
|
|
|
|
addTest("WidgetAddNode Test", [](){ return new (std::nothrow) UIWidgetAddNodeTests; });
|
|
|
|
addTest("RichText Test", [](){ return new (std::nothrow) UIRichTextTests; });
|
2014-03-04 16:51:35 +08:00
|
|
|
}
|