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
a6a9ec44
Commit
a6a9ec44
authored
Apr 05, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add an ImageList_Copy() test.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f3772a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
imagelist.c
dlls/comctl32/tests/imagelist.c
+24
-0
No files found.
dlls/comctl32/tests/imagelist.c
View file @
a6a9ec44
...
...
@@ -2216,6 +2216,29 @@ static void test_color_table(UINT ilc)
ImageList_Destroy
(
himl
);
}
static
void
test_copy
(
void
)
{
HIMAGELIST
dst
,
src
;
BOOL
ret
;
int
count
;
dst
=
ImageList_Create
(
5
,
11
,
ILC_COLOR
,
1
,
1
);
count
=
ImageList_GetImageCount
(
dst
);
ok
(
!
count
,
"ImageList not empty.
\n
"
);
src
=
createImageList
(
7
,
13
);
count
=
ImageList_GetImageCount
(
src
);
ok
(
count
>
2
,
"Tests need an ImageList with more than 2 images
\n
"
);
/* ImageList_Copy() cannot copy between two ImageLists */
ret
=
ImageList_Copy
(
dst
,
0
,
src
,
2
,
ILCF_MOVE
);
ok
(
!
ret
,
"ImageList_Copy() should have returned FALSE
\n
"
);
count
=
ImageList_GetImageCount
(
dst
);
ok
(
count
==
0
,
"Expected no image in dst ImageList, got %d
\n
"
,
count
);
ImageList_Destroy
(
dst
);
ImageList_Destroy
(
src
);
}
static
void
test_IImageList_Clone
(
void
)
{
IImageList
*
imgl
,
*
imgl2
;
...
...
@@ -2366,6 +2389,7 @@ START_TEST(imagelist)
test_iconsize
();
test_color_table
(
ILC_COLOR4
);
test_color_table
(
ILC_COLOR8
);
test_copy
();
FreeLibrary
(
hComCtl32
);
...
...
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