Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
754df821
Commit
754df821
authored
Jun 16, 2011
by
Charles Welton
Committed by
Alexandre Julliard
Jun 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add tests for ID3DXLine_GetDevice and release methods.
parent
3993eef0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
line.c
dlls/d3dx9_36/tests/line.c
+19
-2
No files found.
dlls/d3dx9_36/tests/line.c
View file @
754df821
...
...
@@ -23,6 +23,8 @@ static void test_create_line(IDirect3DDevice9* device)
{
HRESULT
hr
;
LPD3DXLINE
line
=
NULL
;
LPDIRECT3DDEVICE9
return_device
;
ULONG
ref
;
hr
=
D3DXCreateLine
(
NULL
,
&
line
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got result %x, expected %x (D3D_INVALIDCALL)
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
...
...
@@ -33,8 +35,23 @@ static void test_create_line(IDirect3DDevice9* device)
hr
=
D3DXCreateLine
(
device
,
&
line
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected 0 (D3D_OK)
\n
"
,
hr
);
if
(
line
)
ID3DXLine_Release
(
line
);
if
(
FAILED
(
hr
))
{
return
;
}
hr
=
ID3DXLine_GetDevice
(
line
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got result %x, expected %x (D3D_INVALIDCALL)
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXLine_GetDevice
(
line
,
&
return_device
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected %x (D3D_OK)
\n
"
,
hr
,
D3D_OK
);
ok
(
return_device
==
device
,
"Expected line device %p, got %p
\n
"
,
device
,
return_device
);
ref
=
IDirect3DDevice9_Release
(
return_device
);
ok
(
ref
==
2
,
"Got %x references to device %p, expected 2
\n
"
,
ref
,
return_device
);
ref
=
ID3DXLine_Release
(
line
);
ok
(
ref
==
0
,
"Got %x references to line %p, expected 0
\n
"
,
ref
,
line
);
}
START_TEST
(
line
)
...
...
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