Commit 8cb2d2d5 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

imm32/tests: Test setting the same HIMC statuses twice.

parent 089cfc79
......@@ -4126,6 +4126,14 @@ static void test_ImmSetConversionStatus(void)
ok_eq( 0xdeadbeef, ctx->fdwConversion, UINT, "%#x" );
ok_eq( 0xfeedcafe, ctx->fdwSentence, UINT, "%#x" );
ok_ret( 1, ImmSetConversionStatus( default_himc, 0xdeadbeef, 0xfeedcafe ) );
ok_seq( empty_sequence );
ok_ret( 1, ImmGetConversionStatus( default_himc, &conversion, NULL ) );
ok_eq( 0xdeadbeef, conversion, UINT, "%#x" );
ok_eq( 0xdeadbeef, ctx->fdwConversion, UINT, "%#x" );
ok_eq( 0xfeedcafe, ctx->fdwSentence, UINT, "%#x" );
ok_seq( empty_sequence );
ok_ret( 1, ImmSetConversionStatus( default_himc, 0, 0xfeedcafe ) );
ok_seq( set_conversion_status_1_seq );
......@@ -4140,6 +4148,14 @@ static void test_ImmSetConversionStatus(void)
ok_ret( 1, ImmSetConversionStatus( default_himc, ~0, ~0 ) );
ok_seq( set_conversion_status_2_seq );
ok_ret( 1, ImmGetConversionStatus( default_himc, NULL, &sentence ) );
ok_eq( ~0, sentence, UINT, "%#x" );
ok_eq( ~0, ctx->fdwConversion, UINT, "%#x" );
ok_eq( ~0, ctx->fdwSentence, UINT, "%#x" );
ok_ret( 1, ImmSetConversionStatus( default_himc, ~0, ~0 ) );
ok_seq( empty_sequence );
ok_ret( 1, ImmGetConversionStatus( default_himc, &conversion, &sentence ) );
ok_eq( ~0, conversion, UINT, "%#x" );
ok_eq( ~0, sentence, UINT, "%#x" );
......@@ -4253,6 +4269,13 @@ static void test_ImmSetOpenStatus(void)
ok_eq( 0xdeadbeef, status, UINT, "%#x" );
ok_eq( 0xdeadbeef, ctx->fOpen, UINT, "%#x" );
ok_ret( 1, ImmSetOpenStatus( default_himc, 0xdeadbeef ) );
ok_seq( empty_sequence );
status = ImmGetOpenStatus( default_himc );
ok_eq( 0xdeadbeef, status, UINT, "%#x" );
ok_eq( 0xdeadbeef, ctx->fOpen, UINT, "%#x" );
ok_seq( empty_sequence );
ok_ret( 1, ImmSetOpenStatus( default_himc, ~0 ) );
ok_seq( set_open_status_1_seq );
......@@ -4261,6 +4284,13 @@ static void test_ImmSetOpenStatus(void)
todo_wine ok_eq( ~0, status, UINT, "%#x" );
todo_wine ok_eq( ~0, ctx->fOpen, UINT, "%#x" );
ok_ret( 1, ImmSetOpenStatus( default_himc, ~0 ) );
ok_seq( empty_sequence );
status = ImmGetOpenStatus( default_himc );
todo_wine ok_eq( ~0, status, UINT, "%#x" );
todo_wine ok_eq( ~0, ctx->fOpen, UINT, "%#x" );
/* status is cached between IME activations */
ok_ret( 1, ImmActivateLayout( old_hkl ) );
......
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