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
20019a77
Commit
20019a77
authored
Oct 16, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add more updown control value tests.
parent
e58af930
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
updown.c
dlls/comctl32/tests/updown.c
+43
-1
No files found.
dlls/comctl32/tests/updown.c
View file @
20019a77
...
...
@@ -373,12 +373,14 @@ static void test_updown_pos(void)
/* there's no attempt to update buddy Edit if text didn't change */
SetWindowTextA
(
g_edit
,
"50"
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
|
UDS_SETBUDDYINT
,
g_edit
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
|
UDS_SETBUDDYINT
|
UDS_ARROWKEYS
,
g_edit
);
/* test sequence only on 5.8x versions */
r
=
SendMessage
(
updown
,
UDM_GETPOS32
,
0
,
0
);
if
(
r
)
{
UDACCEL
accel
;
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
50
);
...
...
@@ -386,6 +388,46 @@ static void test_updown_pos(void)
ok_sequence
(
sequences
,
EDIT_SEQ_INDEX
,
test_updown_pos_nochange_seq
,
"test updown pos, no change"
,
FALSE
);
SendMessage
(
updown
,
UDM_SETRANGE
,
0
,
MAKELONG
(
1
,
40
));
r
=
SendMessage
(
updown
,
UDM_GETRANGE
,
0
,
0
);
expect
(
1
,
LOWORD
(
r
));
expect
(
40
,
HIWORD
(
r
));
accel
.
nSec
=
0
;
accel
.
nInc
=
5
;
r
=
SendMessage
(
updown
,
UDM_SETACCEL
,
1
,
(
LPARAM
)
&
accel
);
expect
(
TRUE
,
r
);
r
=
SendMessage
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
40
,
LOWORD
(
r
));
expect
(
1
,
HIWORD
(
r
));
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
MAKELONG
(
0
,
0
));
expect
(
40
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
r
=
SendMessage
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
1
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
MAKELONG
(
2
,
0
));
expect
(
1
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
r
=
SendMessage
(
g_edit
,
WM_KEYDOWN
,
VK_UP
,
0
);
expect
(
0
,
r
);
r
=
SendMessage
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
1
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
MAKELONG
(
50
,
0
));
expect
(
1
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
r
=
SendMessage
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
40
,
LOWORD
(
r
));
expect
(
0
,
HIWORD
(
r
));
}
DestroyWindow
(
updown
);
...
...
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