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
5d3336ed
Commit
5d3336ed
authored
Apr 10, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf/test: Test enabling and disabling Language Profiles.
parent
1ab5f419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+23
-0
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
5d3336ed
...
...
@@ -160,6 +160,27 @@ static void test_FindClosestCategory(void)
ok
(
IsEqualGUID
(
&
output
,
&
GUID_TFCAT_TIP_KEYBOARD
),
"Wrong GUID
\n
"
);
}
static
void
test_Enable
(
void
)
{
HRESULT
hr
;
BOOL
enabled
=
FALSE
;
hr
=
ITfInputProcessorProfiles_EnableLanguageProfile
(
g_ipp
,
&
CLSID_FakeService
,
gLangid
,
&
CLSID_FakeService
,
TRUE
);
ok
(
SUCCEEDED
(
hr
),
"Failed to enable text service
\n
"
);
hr
=
ITfInputProcessorProfiles_IsEnabledLanguageProfile
(
g_ipp
,
&
CLSID_FakeService
,
gLangid
,
&
CLSID_FakeService
,
&
enabled
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get enabled state
\n
"
);
ok
(
enabled
==
TRUE
,
"enabled state incorrect
\n
"
);
}
static
void
test_Disable
(
void
)
{
HRESULT
hr
;
trace
(
"Disabling
\n
"
);
hr
=
ITfInputProcessorProfiles_EnableLanguageProfile
(
g_ipp
,
&
CLSID_FakeService
,
gLangid
,
&
CLSID_FakeService
,
FALSE
);
ok
(
SUCCEEDED
(
hr
),
"Failed to disable text service
\n
"
);
}
START_TEST
(
inputprocessor
)
{
if
(
SUCCEEDED
(
initialize
()))
...
...
@@ -168,8 +189,10 @@ START_TEST(inputprocessor)
test_Register
();
test_RegisterCategory
();
test_EnumInputProcessorInfo
();
test_Enable
();
test_EnumLanguageProfiles
();
test_FindClosestCategory
();
test_Disable
();
test_UnregisterCategory
();
test_Unregister
();
}
...
...
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