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
ecb59b0b
Commit
ecb59b0b
authored
Oct 29, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uianimation/tests: Add IUIAnimationTimer test.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d8d032da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
uianimation.c
dlls/uianimation/tests/uianimation.c
+37
-0
No files found.
dlls/uianimation/tests/uianimation.c
View file @
ecb59b0b
...
...
@@ -47,6 +47,42 @@ static void test_UIAnimationManager(void)
IUIAnimationManager_Release
(
manager
);
}
static
void
test_IUIAnimationTimer
(
void
)
{
HRESULT
hr
;
IUIAnimationTimer
*
timer
;
hr
=
CoCreateInstance
(
&
CLSID_UIAnimationTimer
,
NULL
,
CLSCTX_ALL
,
&
IID_IUIAnimationTimer
,
(
void
**
)
&
timer
);
if
(
FAILED
(
hr
))
{
win_skip
(
"IUIAnimationTimer not found
\n
"
);
return
;
}
hr
=
IUIAnimationTimer_IsEnabled
(
timer
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_Enable
(
timer
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_Enable
(
timer
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_IsEnabled
(
timer
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_Disable
(
timer
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_Disable
(
timer
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IUIAnimationTimer_IsEnabled
(
timer
);
todo_wine
ok
(
hr
==
S_FALSE
,
"got 0x%08x
\n
"
,
hr
);
IUIAnimationTimer_Release
(
timer
);
}
START_TEST
(
uianimation
)
{
HRESULT
hr
;
...
...
@@ -57,6 +93,7 @@ START_TEST(uianimation)
return
;
test_UIAnimationManager
();
test_IUIAnimationTimer
();
CoUninitialize
();
}
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