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
0e71d0e1
Commit
0e71d0e1
authored
Oct 28, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Flush painting events harder in some places in order to avoid races in the message tests.
parent
bed6b6cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
msg.c
dlls/user/tests/msg.c
+7
-2
No files found.
dlls/user/tests/msg.c
View file @
0e71d0e1
...
@@ -3816,6 +3816,7 @@ static void test_messages(void)
...
@@ -3816,6 +3816,7 @@ static void test_messages(void)
ok
(
hchild
!=
0
,
"Failed to create child window
\n
"
);
ok
(
hchild
!=
0
,
"Failed to create child window
\n
"
);
SetFocus
(
hchild
);
SetFocus
(
hchild
);
flush_events
();
flush_sequence
();
flush_sequence
();
EnableWindow
(
hparent
,
FALSE
);
EnableWindow
(
hparent
,
FALSE
);
...
@@ -3830,8 +3831,6 @@ static void test_messages(void)
...
@@ -3830,8 +3831,6 @@ static void test_messages(void)
/* MsgWaitForMultipleObjects test */
/* MsgWaitForMultipleObjects test */
ret
=
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
0
,
QS_POSTMESSAGE
);
ret
=
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
0
,
QS_POSTMESSAGE
);
ok
(
ret
==
WAIT_TIMEOUT
,
"MsgWaitForMultipleObjects returned %x
\n
"
,
ret
);
ok
(
ret
==
WAIT_TIMEOUT
,
"MsgWaitForMultipleObjects returned %x
\n
"
,
ret
);
msg
.
message
=
0xdeadbeef
;
ok
(
!
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"got not expected %04x
\n
"
,
msg
.
message
);
PostMessageA
(
hparent
,
WM_USER
,
0
,
0
);
PostMessageA
(
hparent
,
WM_USER
,
0
,
0
);
...
@@ -6712,6 +6711,8 @@ static void test_scrollwindowex(void)
...
@@ -6712,6 +6711,8 @@ static void test_scrollwindowex(void)
flush_sequence
();
flush_sequence
();
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
ok_sequence
(
ScrollWindowPaint1
,
"ScrollWindowEx"
,
0
);
ok_sequence
(
ScrollWindowPaint1
,
"ScrollWindowEx"
,
0
);
flush_events
();
flush_sequence
();
/* Now without the SW_ERASE flag */
/* Now without the SW_ERASE flag */
trace
(
"start scroll
\n
"
);
trace
(
"start scroll
\n
"
);
...
@@ -6721,6 +6722,8 @@ static void test_scrollwindowex(void)
...
@@ -6721,6 +6722,8 @@ static void test_scrollwindowex(void)
flush_sequence
();
flush_sequence
();
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
ok_sequence
(
ScrollWindowPaint2
,
"ScrollWindowEx"
,
0
);
ok_sequence
(
ScrollWindowPaint2
,
"ScrollWindowEx"
,
0
);
flush_events
();
flush_sequence
();
/* now scroll the child window as well */
/* now scroll the child window as well */
trace
(
"start scroll
\n
"
);
trace
(
"start scroll
\n
"
);
...
@@ -6734,6 +6737,8 @@ static void test_scrollwindowex(void)
...
@@ -6734,6 +6737,8 @@ static void test_scrollwindowex(void)
flush_sequence
();
flush_sequence
();
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
ok_sequence
(
ScrollWindowPaint1
,
"ScrollWindowEx"
,
0
);
ok_sequence
(
ScrollWindowPaint1
,
"ScrollWindowEx"
,
0
);
flush_events
();
flush_sequence
();
/* now scroll with ScrollWindow() */
/* now scroll with ScrollWindow() */
trace
(
"start scroll with ScrollWindow
\n
"
);
trace
(
"start scroll with ScrollWindow
\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