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
f6b3376e
Commit
f6b3376e
authored
Apr 23, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Remove practically unused parameters from test functions.
parent
31057e4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
38 deletions
+50
-38
tab.c
dlls/comctl32/tests/tab.c
+50
-38
No files found.
dlls/comctl32/tests/tab.c
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
);
}
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