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
d1b67698
Commit
d1b67698
authored
Apr 02, 2013
by
Sam Edwards
Committed by
Alexandre Julliard
Apr 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Verify window style after exiting fullscreen mode.
parent
ce617326
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+8
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+8
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+8
-0
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+8
-0
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
d1b67698
...
@@ -1898,6 +1898,14 @@ static void test_window_style(void)
...
@@ -1898,6 +1898,14 @@ static void test_window_style(void)
GetClientRect
(
window
,
&
r
);
GetClientRect
(
window
,
&
r
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
hr
=
IDirectDraw_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_NORMAL
);
ok
(
SUCCEEDED
(
hr
),
"SetCooperativeLevel failed, hr %#x.
\n
"
,
hr
);
tmp
=
GetWindowLongA
(
window
,
GWL_STYLE
);
todo_wine
ok
(
tmp
==
style
,
"Expected window style %#x, got %#x.
\n
"
,
style
,
tmp
);
tmp
=
GetWindowLongA
(
window
,
GWL_EXSTYLE
);
todo_wine
ok
(
tmp
==
exstyle
,
"Expected window extended style %#x, got %#x.
\n
"
,
exstyle
,
tmp
);
ref
=
IDirectDraw_Release
(
ddraw
);
ref
=
IDirectDraw_Release
(
ddraw
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
d1b67698
...
@@ -2105,6 +2105,14 @@ static void test_window_style(void)
...
@@ -2105,6 +2105,14 @@ static void test_window_style(void)
GetClientRect
(
window
,
&
r
);
GetClientRect
(
window
,
&
r
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
hr
=
IDirectDraw2_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_NORMAL
);
ok
(
SUCCEEDED
(
hr
),
"SetCooperativeLevel failed, hr %#x.
\n
"
,
hr
);
tmp
=
GetWindowLongA
(
window
,
GWL_STYLE
);
todo_wine
ok
(
tmp
==
style
,
"Expected window style %#x, got %#x.
\n
"
,
style
,
tmp
);
tmp
=
GetWindowLongA
(
window
,
GWL_EXSTYLE
);
todo_wine
ok
(
tmp
==
exstyle
,
"Expected window extended style %#x, got %#x.
\n
"
,
exstyle
,
tmp
);
ref
=
IDirectDraw2_Release
(
ddraw
);
ref
=
IDirectDraw2_Release
(
ddraw
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
d1b67698
...
@@ -2220,6 +2220,14 @@ static void test_window_style(void)
...
@@ -2220,6 +2220,14 @@ static void test_window_style(void)
GetClientRect
(
window
,
&
r
);
GetClientRect
(
window
,
&
r
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
hr
=
IDirectDraw4_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_NORMAL
);
ok
(
SUCCEEDED
(
hr
),
"SetCooperativeLevel failed, hr %#x.
\n
"
,
hr
);
tmp
=
GetWindowLongA
(
window
,
GWL_STYLE
);
todo_wine
ok
(
tmp
==
style
,
"Expected window style %#x, got %#x.
\n
"
,
style
,
tmp
);
tmp
=
GetWindowLongA
(
window
,
GWL_EXSTYLE
);
todo_wine
ok
(
tmp
==
exstyle
,
"Expected window extended style %#x, got %#x.
\n
"
,
exstyle
,
tmp
);
ref
=
IDirectDraw4_Release
(
ddraw
);
ref
=
IDirectDraw4_Release
(
ddraw
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
d1b67698
...
@@ -1952,6 +1952,14 @@ static void test_window_style(void)
...
@@ -1952,6 +1952,14 @@ static void test_window_style(void)
GetClientRect
(
window
,
&
r
);
GetClientRect
(
window
,
&
r
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
todo_wine
ok
(
!
EqualRect
(
&
r
,
&
fullscreen_rect
),
"Client rect and window rect are equal.
\n
"
);
hr
=
IDirectDraw7_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_NORMAL
);
ok
(
SUCCEEDED
(
hr
),
"SetCooperativeLevel failed, hr %#x.
\n
"
,
hr
);
tmp
=
GetWindowLongA
(
window
,
GWL_STYLE
);
todo_wine
ok
(
tmp
==
style
,
"Expected window style %#x, got %#x.
\n
"
,
style
,
tmp
);
tmp
=
GetWindowLongA
(
window
,
GWL_EXSTYLE
);
todo_wine
ok
(
tmp
==
exstyle
,
"Expected window extended style %#x, got %#x.
\n
"
,
exstyle
,
tmp
);
ref
=
IDirectDraw7_Release
(
ddraw
);
ref
=
IDirectDraw7_Release
(
ddraw
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
ok
(
ref
==
0
,
"The ddraw object was not properly freed: refcount %u.
\n
"
,
ref
);
...
...
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