Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
38290cf9
Commit
38290cf9
authored
Feb 06, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Feb 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add month calendar tests.
parent
379b62c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
.gitignore
dlls/comctl32/tests/.gitignore
+1
-0
Makefile.in
dlls/comctl32/tests/Makefile.in
+1
-0
monthcal.c
dlls/comctl32/tests/monthcal.c
+69
-0
No files found.
dlls/comctl32/tests/.gitignore
View file @
38290cf9
...
...
@@ -3,6 +3,7 @@ comboex.ok
dpa.ok
header.ok
imagelist.ok
monthcal.ok
mru.ok
progress.ok
subclass.ok
...
...
dlls/comctl32/tests/Makefile.in
View file @
38290cf9
...
...
@@ -10,6 +10,7 @@ CTESTS = \
dpa.c
\
header.c
\
imagelist.c
\
monthcal.c
\
mru.c
\
progress.c
\
subclass.c
\
...
...
dlls/comctl32/tests/monthcal.c
0 → 100644
View file @
38290cf9
/*
* comctl32 month calendar unit tests
*
* Copyright (C) 2006 Vitaliy Margolen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "commctrl.h"
#include "wine/test.h"
void
test_monthcal
(
void
)
{
HWND
hwnd
;
SYSTEMTIME
st
[
2
];
INITCOMMONCONTROLSEX
ic
=
{
sizeof
(
INITCOMMONCONTROLSEX
),
ICC_DATE_CLASSES
};
InitCommonControlsEx
(
&
ic
);
hwnd
=
CreateWindowA
(
MONTHCAL_CLASSA
,
"MonthCal"
,
WS_POPUP
|
WS_VISIBLE
,
CW_USEDEFAULT
,
0
,
300
,
300
,
0
,
0
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create MonthCal
\n
"
);
GetSystemTime
(
&
st
[
0
]);
st
[
0
].
wMonth
=
5
;
st
[
1
]
=
st
[
0
];
st
[
1
].
wMonth
--
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MIN
|
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set both min and max limits
\n
"
);
st
[
1
].
wMonth
+=
2
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MIN
|
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set both min and max limits
\n
"
);
st
[
1
].
wYear
--
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MIN
|
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set both min and max limits
\n
"
);
st
[
1
].
wYear
+=
1
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MIN
|
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set both min and max limits
\n
"
);
/* This crashing Wine so commented untill fixed.
st[1].wMonth -= 3;
ok(SendMessage(hwnd, MCM_SETRANGE, GDTR_MAX, (LPARAM)st), "Failed to set max limit\n");
*/
st
[
1
].
wMonth
+=
4
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set max limit
\n
"
);
st
[
1
].
wYear
-=
3
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set max limit
\n
"
);
st
[
1
].
wYear
+=
4
;
ok
(
SendMessage
(
hwnd
,
MCM_SETRANGE
,
GDTR_MAX
,
(
LPARAM
)
st
),
"Failed to set max limit
\n
"
);
}
START_TEST
(
monthcal
)
{
test_monthcal
();
}
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