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
ccec5328
Commit
ccec5328
authored
Oct 30, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uianimation/tests: Add more tests.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df66cf6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
uianimation.c
dlls/uianimation/tests/uianimation.c
+60
-0
No files found.
dlls/uianimation/tests/uianimation.c
View file @
ccec5328
...
...
@@ -31,6 +31,7 @@ static void test_UIAnimationManager(void)
HRESULT
hr
;
IUIAnimationManager
*
manager
;
IUIAnimationVariable
*
variable
;
IUIAnimationStoryboard
*
storyboard
;
hr
=
CoCreateInstance
(
&
CLSID_UIAnimationManager
,
NULL
,
CLSCTX_ALL
,
&
IID_IUIAnimationManager
,
(
LPVOID
*
)
&
manager
);
if
(
FAILED
(
hr
))
...
...
@@ -44,6 +45,11 @@ static void test_UIAnimationManager(void)
if
(
hr
==
S_OK
)
IUIAnimationVariable_Release
(
variable
);
hr
=
IUIAnimationManager_CreateStoryboard
(
manager
,
&
storyboard
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IUIAnimationStoryboard_Release
(
storyboard
);
IUIAnimationManager_Release
(
manager
);
}
...
...
@@ -83,6 +89,58 @@ static void test_IUIAnimationTimer(void)
IUIAnimationTimer_Release
(
timer
);
}
static
void
test_IUIAnimationTransitionFactory
(
void
)
{
HRESULT
hr
;
IUIAnimationTransitionFactory
*
factory
;
IUIAnimationTransition
*
transition
=
NULL
;
hr
=
CoCreateInstance
(
&
CLSID_UIAnimationTransitionFactory
,
NULL
,
CLSCTX_ALL
,
&
IID_IUIAnimationTransitionFactory
,
(
void
**
)
&
factory
);
if
(
FAILED
(
hr
))
{
win_skip
(
"IUIAnimationTransitionFactory not found
\n
"
);
return
;
}
hr
=
IUIAnimationTransitionFactory_CreateTransition
(
factory
,
NULL
,
&
transition
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
IUIAnimationTransitionFactory_Release
(
factory
);
}
static
void
test_IUIAnimationTransitionLibrary
(
void
)
{
HRESULT
hr
;
IUIAnimationTransitionLibrary
*
library
;
IUIAnimationTransition
*
instantaneous
,
*
linear
,
*
smooth
;
hr
=
CoCreateInstance
(
&
CLSID_UIAnimationTransitionLibrary
,
NULL
,
CLSCTX_ALL
,
&
IID_IUIAnimationTransitionLibrary
,
(
void
**
)
&
library
);
if
(
FAILED
(
hr
))
{
win_skip
(
"IUIAnimationTransitionLibrary not found
\n
"
);
return
;
}
hr
=
IUIAnimationTransitionLibrary_CreateInstantaneousTransition
(
library
,
100
.
0
,
&
instantaneous
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IUIAnimationTransition_Release
(
instantaneous
);
hr
=
IUIAnimationTransitionLibrary_CreateLinearTransition
(
library
,
500
.
0
,
100
.
0
,
&
linear
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IUIAnimationTransition_Release
(
linear
);
hr
=
IUIAnimationTransitionLibrary_CreateSmoothStopTransition
(
library
,
500
.
0
,
100
.
0
,
&
smooth
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IUIAnimationTransition_Release
(
smooth
);
IUIAnimationTransitionLibrary_Release
(
library
);
}
START_TEST
(
uianimation
)
{
HRESULT
hr
;
...
...
@@ -94,6 +152,8 @@ START_TEST(uianimation)
test_UIAnimationManager
();
test_IUIAnimationTimer
();
test_IUIAnimationTransitionFactory
();
test_IUIAnimationTransitionLibrary
();
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