https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ff832b5d3fb265c0826b…
commit 3ff832b5d3fb265c0826bc77790ce398dc0361b5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Aug 16 15:35:25 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Aug 16 15:35:25 2021 +0900
[IMM32_APITEST] Add ImmIsUIMessage testcase (#3908)
- Add ImmIsUIMessage testcase in IMM32_APITEST. CORE-11700
---
modules/rostests/apitests/imm32/CMakeLists.txt | 1 +
modules/rostests/apitests/imm32/ImmIsUIMessage.c | 29 ++++++++++++++++++++++++
modules/rostests/apitests/imm32/testlist.c | 2 ++
3 files changed, 32 insertions(+)
diff --git a/modules/rostests/apitests/imm32/CMakeLists.txt
b/modules/rostests/apitests/imm32/CMakeLists.txt
index 2edcec8f68f..79fbf5840bb 100644
--- a/modules/rostests/apitests/imm32/CMakeLists.txt
+++ b/modules/rostests/apitests/imm32/CMakeLists.txt
@@ -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})
diff --git a/modules/rostests/apitests/imm32/ImmIsUIMessage.c
b/modules/rostests/apitests/imm32/ImmIsUIMessage.c
new file mode 100644
index 00000000000..73c645645e2
--- /dev/null
+++ b/modules/rostests/apitests/imm32/ImmIsUIMessage.c
@@ -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(a)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;
+ }
+ }
+}
diff --git a/modules/rostests/apitests/imm32/testlist.c
b/modules/rostests/apitests/imm32/testlist.c
index a9b8f92a791..73597d5f204 100644
--- a/modules/rostests/apitests/imm32/testlist.c
+++ b/modules/rostests/apitests/imm32/testlist.c
@@ -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 }
};