Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8cb2d2d5
Commit
8cb2d2d5
authored
Apr 03, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Test setting the same HIMC statuses twice.
parent
089cfc79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
imm32.c
dlls/imm32/tests/imm32.c
+30
-0
No files found.
dlls/imm32/tests/imm32.c
View file @
8cb2d2d5
...
...
@@ -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
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment