Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
f6b3376e
Commit
f6b3376e
authored
13 years ago
by
Nikolay Sivov
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
comctl32/tests: Remove practically unused parameters from test functions.
parent
31057e4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/comctl32/tests/tab.c
+50
-38
50 additions, 38 deletions
dlls/comctl32/tests/tab.c
with
50 additions
and
38 deletions
dlls/comctl32/tests/tab.c
+
50
−
38
View file @
f6b3376e
...
...
@@ -63,6 +63,7 @@
static
HFONT
hFont
;
static
DRAWITEMSTRUCT
g_drawitem
;
static
HWND
parent_wnd
;
static
struct
msg_sequence
*
sequences
[
NUM_MSG_SEQUENCES
];
...
...
@@ -643,8 +644,23 @@ static void test_tab(INT nMinTabWidth)
DeleteObject
(
hFont
);
}
static
void
test_
curfocus
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_
width
(
void
)
{
trace
(
"Testing with default MinWidth
\n
"
);
test_tab
(
-
1
);
trace
(
"Testing with MinWidth set to -3
\n
"
);
test_tab
(
-
3
);
trace
(
"Testing with MinWidth set to 24
\n
"
);
test_tab
(
24
);
trace
(
"Testing with MinWidth set to 54
\n
"
);
test_tab
(
54
);
trace
(
"Testing with MinWidth set to 94
\n
"
);
test_tab
(
94
);
}
static
void
test_curfocus
(
void
)
{
const
INT
nTabs
=
5
;
INT
focusIndex
;
HWND
hTab
;
...
...
@@ -676,8 +692,9 @@ static void test_curfocus(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_cursel
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_cursel
(
void
)
{
const
INT
nTabs
=
5
;
INT
selectionIndex
;
INT
focusIndex
;
TCITEM
tcItem
;
...
...
@@ -728,8 +745,9 @@ static void test_cursel(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_extendedstyle
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_extendedstyle
(
void
)
{
const
INT
nTabs
=
5
;
DWORD
prevExtendedStyle
;
DWORD
extendedStyle
;
HWND
hTab
;
...
...
@@ -762,8 +780,9 @@ static void test_extendedstyle(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_unicodeformat
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_unicodeformat
(
void
)
{
const
INT
nTabs
=
5
;
INT
unicodeFormat
;
HWND
hTab
;
...
...
@@ -793,9 +812,10 @@ static void test_unicodeformat(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_getset_item
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_getset_item
(
void
)
{
char
szText
[
32
]
=
"New Label"
;
const
INT
nTabs
=
5
;
TCITEM
tcItem
;
LPARAM
lparam
;
DWORD
ret
;
...
...
@@ -935,10 +955,11 @@ static void test_getset_item(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_getset_tooltips
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_getset_tooltips
(
void
)
{
HWND
hTab
,
toolTip
;
char
toolTipText
[
32
]
=
"ToolTip Text Test"
;
const
INT
nTabs
=
5
;
HWND
hTab
,
toolTip
;
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
TCIF_TEXT
|
TCIF_IMAGE
,
nTabs
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
...
...
@@ -958,8 +979,9 @@ static void test_getset_tooltips(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_misc
(
HWND
parent_wnd
,
INT
nTabs
)
static
void
test_misc
(
void
)
{
const
INT
nTabs
=
5
;
HWND
hTab
;
RECT
rTab
;
INT
nTabsRetrieved
;
...
...
@@ -1019,7 +1041,7 @@ static void test_misc(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_adjustrect
(
HWND
parent_wn
d
)
static
void
test_adjustrect
(
voi
d
)
{
HWND
hTab
;
INT
r
;
...
...
@@ -1036,7 +1058,7 @@ static void test_adjustrect(HWND parent_wnd)
expect
(
-
1
,
r
);
}
static
void
test_insert_focus
(
HWND
parent_wn
d
)
static
void
test_insert_focus
(
voi
d
)
{
HWND
hTab
;
INT
nTabsRetrieved
;
...
...
@@ -1102,7 +1124,7 @@ static void test_insert_focus(HWND parent_wnd)
DestroyWindow
(
hTab
);
}
static
void
test_delete_focus
(
HWND
parent_wn
d
)
static
void
test_delete_focus
(
voi
d
)
{
HWND
hTab
;
INT
nTabsRetrieved
;
...
...
@@ -1214,7 +1236,7 @@ static void test_removeimage(void)
DestroyIcon
(
hicon
);
}
static
void
test_delete_selection
(
HWND
parent_wn
d
)
static
void
test_delete_selection
(
voi
d
)
{
HWND
hTab
;
DWORD
ret
;
...
...
@@ -1236,7 +1258,7 @@ static void test_delete_selection(HWND parent_wnd)
DestroyWindow
(
hTab
);
}
static
void
test_TCM_SETITEMEXTRA
(
HWND
parent_wn
d
)
static
void
test_TCM_SETITEMEXTRA
(
voi
d
)
{
HWND
hTab
;
DWORD
ret
;
...
...
@@ -1273,7 +1295,7 @@ static void test_TCM_SETITEMEXTRA(HWND parent_wnd)
DestroyWindow
(
hTab
);
}
static
void
test_TCS_OWNERDRAWFIXED
(
HWND
parent_wn
d
)
static
void
test_TCS_OWNERDRAWFIXED
(
voi
d
)
{
LPARAM
lparam
,
lparam2
;
TCITEMA
item
;
...
...
@@ -1370,7 +1392,6 @@ static void test_TCS_OWNERDRAWFIXED(HWND parent_wnd)
START_TEST
(
tab
)
{
HWND
parent_wnd
;
LOGFONTA
logfont
;
lstrcpyA
(
logfont
.
lfFaceName
,
"Arial"
);
...
...
@@ -1382,38 +1403,29 @@ START_TEST(tab)
InitCommonControls
();
trace
(
"Testing with default MinWidth
\n
"
);
test_tab
(
-
1
);
trace
(
"Testing with MinWidth set to -3
\n
"
);
test_tab
(
-
3
);
trace
(
"Testing with MinWidth set to 24
\n
"
);
test_tab
(
24
);
trace
(
"Testing with MinWidth set to 54
\n
"
);
test_tab
(
54
);
trace
(
"Testing with MinWidth set to 94
\n
"
);
test_tab
(
94
);
test_width
();
init_msg_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
parent_wnd
=
createParentWindow
();
ok
(
parent_wnd
!=
NULL
,
"Failed to create parent window!
\n
"
);
test_curfocus
(
parent_wnd
,
5
);
test_cursel
(
parent_wnd
,
5
);
test_extendedstyle
(
parent_wnd
,
5
);
test_unicodeformat
(
parent_wnd
,
5
);
test_getset_item
(
parent_wnd
,
5
);
test_getset_tooltips
(
parent_wnd
,
5
);
test_misc
(
parent_wnd
,
5
);
test_curfocus
();
test_cursel
();
test_extendedstyle
();
test_unicodeformat
();
test_getset_item
();
test_getset_tooltips
();
test_misc
();
test_adjustrect
(
parent_wnd
);
test_adjustrect
();
test_insert_focus
(
parent_wnd
);
test_delete_focus
(
parent_wnd
);
test_delete_selection
(
parent_wnd
);
test_insert_focus
();
test_delete_focus
();
test_delete_selection
();
test_removeimage
();
test_TCM_SETITEMEXTRA
(
parent_wnd
);
test_TCS_OWNERDRAWFIXED
(
parent_wnd
);
test_TCM_SETITEMEXTRA
();
test_TCS_OWNERDRAWFIXED
();
DestroyWindow
(
parent_wnd
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment