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
e22908a8
Commit
e22908a8
authored
Nov 06, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf/tests: Always set focus again explicitly for Win7+.
parent
259cb3c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+10
-15
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
e22908a8
...
...
@@ -2075,20 +2075,15 @@ static void test_AssociateFocus(void)
processPendingMessages
();
ITfThreadMgr_GetFocus
(
g_tm
,
&
dmcheck
);
if
(
dmcheck
!=
NULL
)
{
ok
(
dmcheck
==
dm1
,
"Expected DocumentMgr not focused
\n
"
);
ITfDocumentMgr_Release
(
dmcheck
);
}
else
{
/* Sometimes we need to explicitly set focus on Win7 */
test_CurrentFocus
=
dm1
;
test_PrevFocus
=
FOCUS_IGNORE
;
test_OnSetFocus
=
SINK_EXPECTED
;
ITfThreadMgr_SetFocus
(
g_tm
,
dm1
);
sink_check_ok
(
&
test_OnSetFocus
,
"OnSetFocus"
);
}
ok
(
dmcheck
==
dm1
||
broken
(
dmcheck
==
dmorig
/* Win7+ */
),
"Expected DocumentMgr not focused
\n
"
);
ITfDocumentMgr_Release
(
dmcheck
);
/* We need to explicitly set focus on Win7+ */
test_CurrentFocus
=
dm1
;
test_PrevFocus
=
FOCUS_IGNORE
;
test_OnSetFocus
=
SINK_OPTIONAL
;
/* Doesn't always fire on Win7+ */
ITfThreadMgr_SetFocus
(
g_tm
,
dm1
);
sink_check_ok
(
&
test_OnSetFocus
,
"OnSetFocus"
);
hr
=
ITfThreadMgr_AssociateFocus
(
g_tm
,
wnd2
,
dm2
,
&
olddm
);
ok
(
SUCCEEDED
(
hr
),
"AssociateFocus failed
\n
"
);
...
...
@@ -2133,7 +2128,7 @@ static void test_AssociateFocus(void)
test_CurrentFocus
=
dmorig
;
test_PrevFocus
=
dm1
;
test_OnSetFocus
=
SINK_
EXPECTED
;
test_OnSetFocus
=
SINK_
OPTIONAL
;
/* Doesn't always fire on Win7+ */
test_ACP_GetStatus
=
SINK_IGNORE
;
ITfThreadMgr_SetFocus
(
g_tm
,
dmorig
);
sink_check_ok
(
&
test_OnSetFocus
,
"OnSetFocus"
);
...
...
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