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
d8e11632
Commit
d8e11632
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some printf formats for 64-bit.
parent
d97b3987
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
34 deletions
+45
-34
combo.c
dlls/user32/tests/combo.c
+7
-14
win.c
dlls/user32/tests/win.c
+38
-20
No files found.
dlls/user32/tests/combo.c
View file @
d8e11632
...
...
@@ -303,10 +303,8 @@ static void test_WM_LBUTTONDOWN(void)
hEdit
=
cbInfo
.
hwndItem
;
hList
=
cbInfo
.
hwndList
;
trace
(
"hMainWnd=%x, hCombo=%x, hList=%x, hEdit=%x
\n
"
,
(
UINT
)
hMainWnd
,
(
UINT
)
hCombo
,
(
UINT
)
hList
,
(
UINT
)
hEdit
);
ok
(
GetFocus
()
==
hMainWnd
,
"Focus not on Main Window, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
trace
(
"hMainWnd=%p, hCombo=%p, hList=%p, hEdit=%p
\n
"
,
hMainWnd
,
hCombo
,
hList
,
hEdit
);
ok
(
GetFocus
()
==
hMainWnd
,
"Focus not on Main Window, instead on %p
\n
"
,
GetFocus
());
/* Click on the button to drop down the list */
x
=
cbInfo
.
rcButton
.
left
+
(
cbInfo
.
rcButton
.
right
-
cbInfo
.
rcButton
.
left
)
/
2
;
...
...
@@ -318,14 +316,12 @@ static void test_WM_LBUTTONDOWN(void)
"The dropdown list should have appeared after clicking the button.
\n
"
);
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBox's Edit Control, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
"Focus not on ComboBox's Edit Control, instead on %p
\n
"
,
GetFocus
());
result
=
SendMessage
(
hCombo
,
WM_LBUTTONUP
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
result
,
"WM_LBUTTONUP was not processed. LastError=%d
\n
"
,
GetLastError
());
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBox's Edit Control, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
"Focus not on ComboBox's Edit Control, instead on %p
\n
"
,
GetFocus
());
/* Click on the 5th item in the list */
item_height
=
SendMessage
(
hCombo
,
CB_GETITEMHEIGHT
,
0
,
0
);
...
...
@@ -336,15 +332,13 @@ static void test_WM_LBUTTONDOWN(void)
ok
(
!
result
,
"WM_LBUTTONDOWN was not processed. LastError=%d
\n
"
,
GetLastError
());
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBox's Edit Control, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
"Focus not on ComboBox's Edit Control, instead on %p
\n
"
,
GetFocus
());
result
=
SendMessage
(
hList
,
WM_MOUSEMOVE
,
0
,
MAKELPARAM
(
x
,
y
));
ok
(
!
result
,
"WM_MOUSEMOVE was not processed. LastError=%d
\n
"
,
GetLastError
());
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBox's Edit Control, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
"Focus not on ComboBox's Edit Control, instead on %p
\n
"
,
GetFocus
());
ok
(
SendMessage
(
hCombo
,
CB_GETDROPPEDSTATE
,
0
,
0
),
"The dropdown list should still be visible.
\n
"
);
...
...
@@ -352,8 +346,7 @@ static void test_WM_LBUTTONDOWN(void)
ok
(
!
result
,
"WM_LBUTTONUP was not processed. LastError=%d
\n
"
,
GetLastError
());
ok
(
GetFocus
()
==
hEdit
,
"Focus not on ComboBox's Edit Control, instead on %x
\n
"
,
(
UINT
)
GetFocus
());
"Focus not on ComboBox's Edit Control, instead on %p
\n
"
,
GetFocus
());
ok
(
!
SendMessage
(
hCombo
,
CB_GETDROPPEDSTATE
,
0
,
0
),
"The dropdown list should have been rolled up.
\n
"
);
idx
=
SendMessage
(
hCombo
,
CB_GETCURSEL
,
0
,
0
);
...
...
dlls/user32/tests/win.c
View file @
d8e11632
This diff is collapsed.
Click to expand it.
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