Commit 2fe97d51 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

imm32/tests: Adjust the ImmSetOpenStatus tests for MS Korean IME.

parent bfe01809
...@@ -4762,6 +4762,8 @@ static void test_ImmSetOpenStatus(void) ...@@ -4762,6 +4762,8 @@ static void test_ImmSetOpenStatus(void)
ok_eq( 0xdeadbeef, status, UINT, "%#x" ); ok_eq( 0xdeadbeef, status, UINT, "%#x" );
ok_eq( 0xdeadbeef, ctx->fOpen, UINT, "%#x" ); ok_eq( 0xdeadbeef, ctx->fOpen, UINT, "%#x" );
ok_ret( 1, ImmSetOpenStatus( default_himc, 0xdeadbeef ) );
ok_seq( empty_sequence );
himc = ImmCreateContext(); himc = ImmCreateContext();
ok_ne( NULL, himc, HIMC, "%p" ); ok_ne( NULL, himc, HIMC, "%p" );
...@@ -4777,13 +4779,9 @@ static void test_ImmSetOpenStatus(void) ...@@ -4777,13 +4779,9 @@ static void test_ImmSetOpenStatus(void)
memset( ime_calls, 0, sizeof(ime_calls) ); memset( ime_calls, 0, sizeof(ime_calls) );
ime_call_count = 0; ime_call_count = 0;
ok_ret( 1, ImmSetOpenStatus( default_himc, 0xdeadbeef ) );
ok_seq( empty_sequence );
status = ImmGetOpenStatus( default_himc ); status = ImmGetOpenStatus( default_himc );
ok_eq( 0xdeadbeef, status, UINT, "%#x" ); ok( status == 0xdeadbeef || status == 0 /* MS Korean IME */, "got status %#lx\n", status );
ok_eq( 0xdeadbeef, ctx->fOpen, UINT, "%#x" ); ok_eq( status, ctx->fOpen, UINT, "%#x" );
ctx->hWnd = 0; ctx->hWnd = 0;
ok_ret( 1, ImmSetOpenStatus( default_himc, 0xfeedcafe ) ); ok_ret( 1, ImmSetOpenStatus( default_himc, 0xfeedcafe ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment