mirror of https://github.com/axmolengine/axmol.git
enabled tests for winrt
This commit is contained in:
parent
75d37a9cc4
commit
f2d9fd2746
|
@ -116,7 +116,7 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||||
|
|
||||||
fileUtils->setSearchPaths(searchPaths);
|
fileUtils->setSearchPaths(searchPaths);
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
||||||
// a bug in DirectX 11 level9-x on the device prevents ResolutionPolicy::NO_BORDER from working correctly
|
// a bug in DirectX 11 level9-x on the device prevents ResolutionPolicy::NO_BORDER from working correctly
|
||||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
|
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -44,7 +44,7 @@ g_guisTests[] =
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
#endif
|
#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)
|
#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)
|
||||||
{
|
{
|
||||||
"EditBox Test",
|
"EditBox Test",
|
||||||
[](Ref* sender)
|
[](Ref* sender)
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "UIWebViewTest/UIWebViewTest.h"
|
#include "UIWebViewTest/UIWebViewTest.h"
|
||||||
#endif
|
#endif
|
||||||
#include "UIScale9SpriteTest.h"
|
#include "UIScale9SpriteTest.h"
|
||||||
#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)
|
#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)
|
||||||
#include "UIEditBoxTest.h"
|
#include "UIEditBoxTest.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ static const char* s_testArray[] =
|
||||||
"UIButtonIgnoreContentSizeTest",
|
"UIButtonIgnoreContentSizeTest",
|
||||||
"UIButtonTitleEffectTest",
|
"UIButtonTitleEffectTest",
|
||||||
|
|
||||||
#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)
|
#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)
|
||||||
"UIEditBoxTest",
|
"UIEditBoxTest",
|
||||||
#endif
|
#endif
|
||||||
"UICheckBoxTest",
|
"UICheckBoxTest",
|
||||||
|
@ -412,7 +412,7 @@ Scene *UISceneManager::currentUIScene()
|
||||||
return UIS9Flip::sceneWithTitle(s_testArray[_currentUISceneId]);
|
return UIS9Flip::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||||
case kUIS9ChangeAnchorPoint:
|
case kUIS9ChangeAnchorPoint:
|
||||||
return UIS9ChangeAnchorPoint::sceneWithTitle(s_testArray[_currentUISceneId]);
|
return UIS9ChangeAnchorPoint::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||||
#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)
|
#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)
|
||||||
case kUIEditBoxTest:
|
case kUIEditBoxTest:
|
||||||
return UIEditBoxTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
return UIEditBoxTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -41,7 +41,7 @@ enum
|
||||||
kUIButtonTextOnly,
|
kUIButtonTextOnly,
|
||||||
kUIButtonIgnoreContentSizeTest,
|
kUIButtonIgnoreContentSizeTest,
|
||||||
kUIButtonTitleEffectTest,
|
kUIButtonTitleEffectTest,
|
||||||
#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)
|
#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)
|
||||||
kUIEditBoxTest,
|
kUIEditBoxTest,
|
||||||
#endif
|
#endif
|
||||||
kUICheckBoxTest,
|
kUICheckBoxTest,
|
||||||
|
|
|
@ -48,13 +48,8 @@ Controller g_aTestNames[] = {
|
||||||
{ "Chipmunk", []() { return new ChipmunkAccelTouchTestScene(); } },
|
{ "Chipmunk", []() { return new ChipmunkAccelTouchTestScene(); } },
|
||||||
{ "Click and Move", [](){return new ClickAndMoveTestScene(); } },
|
{ "Click and Move", [](){return new ClickAndMoveTestScene(); } },
|
||||||
{ "Configuration", []() { return new ConfigurationTestScene(); } },
|
{ "Configuration", []() { return new ConfigurationTestScene(); } },
|
||||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WINRT)
|
|
||||||
{ "Console", []() { return new ConsoleTestScene(); } },
|
{ "Console", []() { return new ConsoleTestScene(); } },
|
||||||
|
|
||||||
#endif
|
|
||||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WINRT)
|
|
||||||
{ "Curl", []() { return new CurlTestScene(); } },
|
{ "Curl", []() { return new CurlTestScene(); } },
|
||||||
#endif
|
|
||||||
{ "Current Language", []() { return new CurrentLanguageTestScene(); } },
|
{ "Current Language", []() { return new CurrentLanguageTestScene(); } },
|
||||||
{ "EventDispatcher", []() { return new EventDispatcherTestScene(); } },
|
{ "EventDispatcher", []() { return new EventDispatcherTestScene(); } },
|
||||||
{ "Effects - Advanced", []() { return new EffectAdvanceScene(); } },
|
{ "Effects - Advanced", []() { return new EffectAdvanceScene(); } },
|
||||||
|
|
Loading…
Reference in New Issue