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
b6b0bc7c
Commit
b6b0bc7c
authored
Apr 27, 2022
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use winetest_push_context() in test_combo_dropdown_size().
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84bce45e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
combo.c
dlls/comctl32/tests/combo.c
+8
-6
No files found.
dlls/comctl32/tests/combo.c
View file @
b6b0bc7c
...
...
@@ -1272,6 +1272,7 @@ static void test_combo_dropdown_size(DWORD style)
RECT
rect_list_client
;
int
min_visible_expected
;
winetest_push_context
(
"Test %d"
,
test
);
hCombo
=
CreateWindowA
(
WC_COMBOBOXA
,
"Combo"
,
CBS_DROPDOWN
|
WS_VISIBLE
|
WS_CHILD
|
style
,
5
,
5
,
100
,
info_test
->
height_combo
,
hMainWnd
,
(
HMENU
)
COMBO_ID
,
NULL
,
0
);
...
...
@@ -1297,8 +1298,8 @@ static void test_combo_dropdown_size(DWORD style)
ret
=
SendMessageA
(
hCombo
,
CB_SETMINVISIBLE
,
min_visible_expected
,
0
);
ok
(
ret
,
"Failed to set visible limit.
\n
"
);
min_visible_actual
=
SendMessageA
(
hCombo
,
CB_GETMINVISIBLE
,
0
,
0
);
ok
(
min_visible_expected
==
min_visible_actual
,
"
test %d:
unexpected number of items %d.
\n
"
,
test
,
min_visible_actual
);
ok
(
min_visible_expected
==
min_visible_actual
,
"unexpected number of items %d.
\n
"
,
min_visible_actual
);
}
ret
=
SendMessageA
(
hCombo
,
CB_SHOWDROPDOWN
,
TRUE
,
0
);
...
...
@@ -1333,18 +1334,19 @@ static void test_combo_dropdown_size(DWORD style)
if
(
expected_height_list
<
0
)
expected_height_list
=
0
;
ok
(
expected_height_list
==
height_list
,
"
Test %d,
expected list height to be %d, got %d
\n
"
,
test
,
expected_height_list
,
height_list
);
ok
(
expected_height_list
==
height_list
,
"expected list height to be %d, got %d
\n
"
,
expected_height_list
,
height_list
);
}
else
{
expected_height_list
=
min
(
info_test
->
num_items
,
min_visible_expected
)
*
height_item
;
ok
(
expected_height_list
==
height_list
,
"
Test %d,
expected list height to be %d, got %d
\n
"
,
test
,
expected_height_list
,
height_list
);
ok
(
expected_height_list
==
height_list
,
"expected list height to be %d, got %d
\n
"
,
expected_height_list
,
height_list
);
}
DestroyWindow
(
hCombo
);
winetest_pop_context
();
}
}
...
...
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