imm32/tests: Test how deleting a character can behave.

This commit is contained in:
Rémi Bernon 2023-06-20 09:53:02 +02:00 committed by Alexandre Julliard
parent 5efe29edc0
commit d1f9aae599

View file

@ -7213,6 +7213,20 @@ static void test_ga_na_da(void)
/* These sequences have some additional WM_IME_NOTIFY messages with unknown wparam > IMN_PRIVATE */ /* These sequences have some additional WM_IME_NOTIFY messages with unknown wparam > IMN_PRIVATE */
struct ime_call complete_seq[] = struct ime_call complete_seq[] =
{ {
/* G */
{.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .message = {.msg = WM_IME_STARTCOMPOSITION, .wparam = 0, .lparam = 0}},
{
.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .comp = L"\u3131", .result = L"",
.message = {.msg = WM_IME_COMPOSITION, .wparam = 0x3131, .lparam = GCS_COMPSTR|GCS_COMPATTR|CS_INSERTCHAR|CS_NOMOVECARET},
},
{
.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .comp = L"", .result = L"",
.message = {.msg = WM_IME_COMPOSITION, .wparam = 0x1b, .lparam = GCS_CURSORPOS|GCS_DELTASTART|GCS_COMPSTR|GCS_COMPATTR|GCS_COMPCLAUSE|
GCS_COMPREADSTR|GCS_COMPREADATTR|GCS_COMPREADCLAUSE},
},
{.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .message = {.msg = WM_IME_ENDCOMPOSITION, .wparam = 0, .lparam = 0}},
/* G */ /* G */
{.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .message = {.msg = WM_IME_STARTCOMPOSITION, .wparam = 0, .lparam = 0}}, {.hkl = default_hkl, .himc = 0/*himc*/, .func = MSG_TEST_WIN, .message = {.msg = WM_IME_STARTCOMPOSITION, .wparam = 0, .lparam = 0}},
{ {
@ -7377,6 +7391,14 @@ static void test_ga_na_da(void)
flush_events(); flush_events();
keybd_event( 'R', 0x13, KEYEVENTF_KEYUP, 0 ); keybd_event( 'R', 0x13, KEYEVENTF_KEYUP, 0 );
keybd_event( VK_BACK, 0x0e, 0, 0 );
flush_events();
keybd_event( VK_BACK, 0x0e, KEYEVENTF_KEYUP, 0 );
keybd_event( 'R', 0x13, 0, 0 );
flush_events();
keybd_event( 'R', 0x13, KEYEVENTF_KEYUP, 0 );
keybd_event( 'K', 0x25, 0, 0 ); keybd_event( 'K', 0x25, 0, 0 );
flush_events(); flush_events();
keybd_event( 'K', 0x25, KEYEVENTF_KEYUP, 0 ); keybd_event( 'K', 0x25, KEYEVENTF_KEYUP, 0 );