[IMM32_APITEST] Add ImmIsUIMessage testcase (#3908)

- Add ImmIsUIMessage testcase in IMM32_APITEST. CORE-11700
This commit is contained in:
Katayama Hirofumi MZ
2021-08-16 15:35:25 +09:00
committed by GitHub
parent 77911014f3
commit 3ff832b5d3
3 changed files with 32 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
list(APPEND SOURCE
clientimc.c
imcc.c
ImmIsUIMessage.c
testlist.c)
add_executable(imm32_apitest ${SOURCE})

View File

@@ -0,0 +1,29 @@
/*
* PROJECT: ReactOS api tests
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Test for ImmIsUIMessage
* COPYRIGHT: Copyright 2021 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
*/
#include "precomp.h"
START_TEST(ImmIsUIMessage)
{
UINT uMsg;
BOOL ret;
for (uMsg = 0x100; uMsg < 0x300; ++uMsg)
{
ret = ImmIsUIMessageA(NULL, uMsg, 0, 0);
switch (uMsg)
{
case WM_IME_STARTCOMPOSITION: case WM_IME_ENDCOMPOSITION:
case WM_IME_COMPOSITION: case WM_IME_SETCONTEXT: case WM_IME_NOTIFY:
case WM_IME_COMPOSITIONFULL: case WM_IME_SELECT: case 0x287:
ok_int(ret, TRUE);
break;
default:
ok_int(ret, FALSE);
break;
}
}
}

View File

@@ -4,10 +4,12 @@
extern void func_clientimc(void);
extern void func_imcc(void);
extern void func_ImmIsUIMessage(void);
const struct test winetest_testlist[] =
{
{ "clientimc", func_clientimc },
{ "imcc", func_imcc },
{ "ImmIsUIMessage", func_ImmIsUIMessage },
{ 0, 0 }
};