fixed #684: add test for displaying current language

This commit is contained in:
minggo 2011-08-19 11:26:14 +08:00
parent e0b804f2f9
commit 733e582d12
5 changed files with 22 additions and 2 deletions

View File

@ -47,6 +47,7 @@ LOCAL_SRC_FILES := main.cpp \
../../../tests/CocosDenshionTest/CocosDenshionTest.cpp \ ../../../tests/CocosDenshionTest/CocosDenshionTest.cpp \
../../../tests/CocosNodeTest/CocosNodeTest.cpp \ ../../../tests/CocosNodeTest/CocosNodeTest.cpp \
../../../tests/CurlTest/CurlTest.cpp \ ../../../tests/CurlTest/CurlTest.cpp \
../../../tests/CurrentLanguageTest/CurrentLanguageTest.cpp \
../../../tests/DirectorTest/DirectorTest.cpp \ ../../../tests/DirectorTest/DirectorTest.cpp \
../../../tests/DrawPrimitivesTest/DrawPrimitivesTest.cpp \ ../../../tests/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
../../../tests/EaseActionsTest/EaseActionsTest.cpp \ ../../../tests/EaseActionsTest/EaseActionsTest.cpp \

View File

@ -1 +1 @@
fa974c372696579504a900225f2af800777e7b5f 7f6876c61c14e898650f3d05e393ca501a0f86f0

View File

@ -1095,6 +1095,18 @@
> >
</File> </File>
</Filter> </Filter>
<Filter
Name="CurrentLanguageTest"
>
<File
RelativePath="..\tests\CurrentLanguageTest\CurrentLanguageTest.cpp"
>
</File>
<File
RelativePath="..\tests\CurrentLanguageTest\CurrentLanguageTest.h"
>
</File>
</Filter>
</Filter> </Filter>
</Filter> </Filter>
</Files> </Files>

View File

@ -109,7 +109,11 @@ static TestScene* CreateTestScene(int nIdx)
#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) #if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
case TEST_FONTS: case TEST_FONTS:
pScene = new FontTestScene(); break; pScene = new FontTestScene(); break;
case TEST_CURRENT_LANGUAGE:
pScene = new CurrentLanguageTestScene(); break;
break;
#endif #endif
default: default:
break; break;
} }

View File

@ -43,6 +43,7 @@
#include "BugsTest/BugsTest.h" #include "BugsTest/BugsTest.h"
#include "Texture2dTest/Texture2dTest.h" #include "Texture2dTest/Texture2dTest.h"
#include "FontTest/FontTest.h" #include "FontTest/FontTest.h"
#include "CurrentLanguageTest/CurrentLanguageTest.h"
#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) #if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
#include "ChipmunkTest/cocos2dChipmunkDemo.h" #include "ChipmunkTest/cocos2dChipmunkDemo.h"
@ -96,6 +97,7 @@ enum
TEST_DIRECTOR, TEST_DIRECTOR,
TEST_BUGS, TEST_BUGS,
TEST_FONTS, TEST_FONTS,
TEST_CURRENT_LANGUAGE,
TESTS_COUNT, TESTS_COUNT,
}; };
@ -140,7 +142,8 @@ const std::string g_aTestNames[TESTS_COUNT] = {
"UserDefaultTest", "UserDefaultTest",
"DirectorTest", "DirectorTest",
"BugsTest", "BugsTest",
"FontTest" "FontTest",
"CurrentLanguageTest",
}; };
#endif #endif