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/CocosNodeTest/CocosNodeTest.cpp \
../../../tests/CurlTest/CurlTest.cpp \
../../../tests/CurrentLanguageTest/CurrentLanguageTest.cpp \
../../../tests/DirectorTest/DirectorTest.cpp \
../../../tests/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
../../../tests/EaseActionsTest/EaseActionsTest.cpp \

View File

@ -1 +1 @@
fa974c372696579504a900225f2af800777e7b5f
7f6876c61c14e898650f3d05e393ca501a0f86f0

View File

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

View File

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

View File

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