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
2b5f79c9
Commit
2b5f79c9
authored
Feb 28, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add message ids to allow multi-window test sequences.
parent
53d838a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
msg.c
dlls/comctl32/tests/msg.c
+21
-0
msg.h
dlls/comctl32/tests/msg.h
+3
-1
No files found.
dlls/comctl32/tests/msg.c
View file @
2b5f79c9
...
...
@@ -46,6 +46,7 @@ void add_message(struct msg_sequence **seq, int sequence_index,
msg_seq
->
sequence
[
msg_seq
->
count
].
flags
=
msg
->
flags
;
msg_seq
->
sequence
[
msg_seq
->
count
].
wParam
=
msg
->
wParam
;
msg_seq
->
sequence
[
msg_seq
->
count
].
lParam
=
msg
->
lParam
;
msg_seq
->
sequence
[
msg_seq
->
count
].
id
=
msg
->
id
;
msg_seq
->
count
++
;
}
...
...
@@ -126,6 +127,26 @@ void ok_sequence_(struct msg_sequence **seq, int sequence_index,
}
}
if
(
expected
->
flags
&
id
)
{
if
(
expected
->
id
!=
actual
->
id
&&
todo
)
{
todo_wine
{
failcount
++
;
ok_
(
file
,
line
)
(
FALSE
,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x
\n
"
,
context
,
expected
->
message
,
expected
->
id
,
actual
->
id
);
}
}
else
{
ok_
(
file
,
line
)
(
expected
->
id
==
actual
->
id
,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x
\n
"
,
context
,
expected
->
message
,
expected
->
id
,
actual
->
id
);
}
}
if
((
expected
->
flags
&
defwinproc
)
!=
(
actual
->
flags
&
defwinproc
)
&&
todo
)
{
todo_wine
...
...
dlls/comctl32/tests/msg.h
View file @
2b5f79c9
...
...
@@ -37,7 +37,8 @@ typedef enum
beginpaint
=
0x40
,
optional
=
0x80
,
hook
=
0x100
,
winevent_hook
=
0x200
winevent_hook
=
0x200
,
id
=
0x400
}
msg_flags_t
;
struct
message
...
...
@@ -46,6 +47,7 @@ struct message
msg_flags_t
flags
;
/* message props */
WPARAM
wParam
;
/* expected value of wParam */
LPARAM
lParam
;
/* expected value of lParam */
UINT
id
;
/* id of the window */
};
struct
msg_sequence
...
...
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