Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
35127bc0
Commit
35127bc0
authored
Apr 22, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf/tests: Test ITfKeystrokeMgr::IsPreservedKey.
parent
19d83ae3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+10
-0
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
35127bc0
...
@@ -264,6 +264,7 @@ static void test_KeystrokeMgr(void)
...
@@ -264,6 +264,7 @@ static void test_KeystrokeMgr(void)
ITfKeystrokeMgr
*
keymgr
=
NULL
;
ITfKeystrokeMgr
*
keymgr
=
NULL
;
HRESULT
hr
;
HRESULT
hr
;
TF_PRESERVEDKEY
tfpk
;
TF_PRESERVEDKEY
tfpk
;
BOOL
preserved
;
hr
=
ITfThreadMgr_QueryInterface
(
g_tm
,
&
IID_ITfKeystrokeMgr
,
(
LPVOID
*
)
&
keymgr
);
hr
=
ITfThreadMgr_QueryInterface
(
g_tm
,
&
IID_ITfKeystrokeMgr
,
(
LPVOID
*
)
&
keymgr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get IID_ITfKeystrokeMgr for ThreadMgr
\n
"
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get IID_ITfKeystrokeMgr for ThreadMgr
\n
"
);
...
@@ -280,9 +281,18 @@ static void test_KeystrokeMgr(void)
...
@@ -280,9 +281,18 @@ static void test_KeystrokeMgr(void)
hr
=
ITfKeystrokeMgr_PreserveKey
(
keymgr
,
tid
,
&
CLSID_PreservedKey
,
&
tfpk
,
NULL
,
0
);
hr
=
ITfKeystrokeMgr_PreserveKey
(
keymgr
,
tid
,
&
CLSID_PreservedKey
,
&
tfpk
,
NULL
,
0
);
todo_wine
ok
(
hr
==
TF_E_ALREADY_EXISTS
,
"ITfKeystrokeMgr_PreserveKey inproperly succeeded
\n
"
);
todo_wine
ok
(
hr
==
TF_E_ALREADY_EXISTS
,
"ITfKeystrokeMgr_PreserveKey inproperly succeeded
\n
"
);
preserved
=
FALSE
;
hr
=
ITfKeystrokeMgr_IsPreservedKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
,
&
preserved
);
todo_wine
ok
(
hr
==
S_OK
,
"ITfKeystrokeMgr_IsPreservedKey failed
\n
"
);
if
(
hr
==
S_OK
)
todo_wine
ok
(
preserved
==
TRUE
,
"misreporting preserved key
\n
"
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnpreserveKey failed
\n
"
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnpreserveKey failed
\n
"
);
hr
=
ITfKeystrokeMgr_IsPreservedKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
,
&
preserved
);
todo_wine
ok
(
hr
==
S_FALSE
,
"ITfKeystrokeMgr_IsPreservedKey failed
\n
"
);
if
(
hr
==
S_FALSE
)
todo_wine
ok
(
preserved
==
FALSE
,
"misreporting preserved key
\n
"
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
todo_wine
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
todo_wine
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
...
...
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