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
d8375e21
Commit
d8375e21
authored
Jan 20, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some more message test failures on Windows.
parent
d2969fef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
msg.c
dlls/user32/tests/msg.c
+31
-11
No files found.
dlls/user32/tests/msg.c
View file @
d8375e21
...
@@ -654,6 +654,8 @@ static const struct message WmCreateMaxPopupSeq[] = {
...
@@ -654,6 +654,8 @@ static const struct message WmCreateMaxPopupSeq[] = {
{
WM_SYNCPAINT
,
sent
|
wparam
|
optional
,
4
},
{
WM_SYNCPAINT
,
sent
|
wparam
|
optional
,
4
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_NCPAINT
,
sent
|
wparam
|
defwinproc
|
optional
,
1
},
{
WM_ERASEBKGND
,
sent
|
defwinproc
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_NOCLIENTMOVE
|
SWP_NOCLIENTSIZE
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOSIZE
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_NOCLIENTMOVE
|
SWP_NOCLIENTSIZE
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOSIZE
},
{
0
}
{
0
}
};
};
...
@@ -728,6 +730,8 @@ static const struct message WmShowMaxPopupSeq[] = {
...
@@ -728,6 +730,8 @@ static const struct message WmShowMaxPopupSeq[] = {
{
WM_SYNCPAINT
,
sent
|
wparam
|
optional
,
4
},
{
WM_SYNCPAINT
,
sent
|
wparam
|
optional
,
4
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_NCPAINT
,
sent
|
wparam
|
defwinproc
|
optional
,
1
},
{
WM_ERASEBKGND
,
sent
|
defwinproc
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOMOVE
|
SWP_NOSIZE
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOMOVE
|
SWP_NOSIZE
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
0
}
{
0
}
...
@@ -914,7 +918,7 @@ static const struct message WmHideChildSeq2[] = {
...
@@ -914,7 +918,7 @@ static const struct message WmHideChildSeq2[] = {
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
{
0
}
};
};
...
@@ -1868,8 +1872,17 @@ static void dump_sequence(const struct message *expected, const char *context, c
...
@@ -1868,8 +1872,17 @@ static void dump_sequence(const struct message *expected, const char *context, c
if
(
expected
->
message
==
actual
->
message
)
if
(
expected
->
message
==
actual
->
message
)
{
{
expected
++
;
if
((
expected
->
flags
&
defwinproc
)
!=
(
actual
->
flags
&
defwinproc
)
&&
actual
++
;
(
expected
->
flags
&
optional
))
{
/* don't match messages if their defwinproc status differs */
expected
++
;
}
else
{
expected
++
;
actual
++
;
}
}
}
/* silently drop winevent messages if there is no support for them */
/* silently drop winevent messages if there is no support for them */
else
if
((
expected
->
flags
&
optional
)
||
((
expected
->
flags
&
winevent_hook
)
&&
!
hEvent_hook
))
else
if
((
expected
->
flags
&
optional
)
||
((
expected
->
flags
&
winevent_hook
)
&&
!
hEvent_hook
))
...
@@ -5658,7 +5671,7 @@ static const struct message WmParentErasePaint[] = {
...
@@ -5658,7 +5671,7 @@ static const struct message WmParentErasePaint[] = {
{
WM_PAINT
,
sent
},
{
WM_PAINT
,
sent
},
{
WM_NCPAINT
,
sent
|
beginpaint
},
{
WM_NCPAINT
,
sent
|
beginpaint
},
{
WM_GETTEXT
,
sent
|
beginpaint
|
defwinproc
|
optional
},
{
WM_GETTEXT
,
sent
|
beginpaint
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
beginpaint
},
{
WM_ERASEBKGND
,
sent
|
beginpaint
|
optional
},
{
0
}
{
0
}
};
};
...
@@ -5743,13 +5756,15 @@ static void test_paint_messages(void)
...
@@ -5743,13 +5756,15 @@ static void test_paint_messages(void)
*/
*/
trace
(
"testing ValidateRect(0, NULL)
\n
"
);
trace
(
"testing ValidateRect(0, NULL)
\n
"
);
SetRectEmpty
(
&
rect
);
SetRectEmpty
(
&
rect
);
ok
(
ValidateRect
(
0
,
&
rect
),
"ValidateRect(0, &rc) should not fail
\n
"
);
if
(
ValidateRect
(
0
,
&
rect
))
/* not supported on Win9x */
check_update_rgn
(
hwnd
,
hrgn
);
{
ok_sequence
(
WmInvalidateErase
,
"InvalidateErase"
,
FALSE
);
check_update_rgn
(
hwnd
,
hrgn
);
flush_events
();
ok_sequence
(
WmInvalidateErase
,
"InvalidateErase"
,
FALSE
);
ok_sequence
(
WmPaint
,
"Paint"
,
FALSE
);
flush_events
();
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_VALIDATE
);
ok_sequence
(
WmPaint
,
"Paint"
,
FALSE
);
check_update_rgn
(
hwnd
,
0
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_VALIDATE
);
check_update_rgn
(
hwnd
,
0
);
}
trace
(
"testing InvalidateRgn(0, NULL, FALSE)
\n
"
);
trace
(
"testing InvalidateRgn(0, NULL, FALSE)
\n
"
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
@@ -8882,6 +8897,11 @@ static void test_PeekMessage(void)
...
@@ -8882,6 +8897,11 @@ static void test_PeekMessage(void)
qs_all_input
&=
~
QS_RAWINPUT
;
qs_all_input
&=
~
QS_RAWINPUT
;
qs_input
&=
~
QS_RAWINPUT
;
qs_input
&=
~
QS_RAWINPUT
;
}
}
if
(
qstatus
&
QS_POSTMESSAGE
)
{
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
/* nothing */
;
qstatus
=
GetQueueStatus
(
qs_all_input
);
}
ok
(
qstatus
==
0
,
"wrong qstatus %08x
\n
"
,
qstatus
);
ok
(
qstatus
==
0
,
"wrong qstatus %08x
\n
"
,
qstatus
);
trace
(
"signalling to send message
\n
"
);
trace
(
"signalling to send message
\n
"
);
...
...
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