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
4f689166
Commit
4f689166
authored
Jun 19, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Jun 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add tests for ID3DXFont::PreloadText.
parent
caf1c1a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
core.c
dlls/d3dx9_36/tests/core.c
+29
-0
No files found.
dlls/d3dx9_36/tests/core.c
View file @
4f689166
...
...
@@ -446,6 +446,35 @@ static void test_ID3DXFont(IDirect3DDevice9 *device)
}
ID3DXFont_Release
(
font
);
}
else
skip
(
"Failed to create a ID3DXFont object
\n
"
);
/* ID3DXFont_PreloadText */
hr
=
D3DXCreateFontA
(
device
,
12
,
0
,
FW_DONTCARE
,
0
,
FALSE
,
DEFAULT_CHARSET
,
OUT_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
,
"Arial"
,
&
font
);
if
(
SUCCEEDED
(
hr
))
{
const
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
todo_wine
{
hr
=
ID3DXFont_PreloadTextA
(
font
,
NULL
,
-
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXFont_PreloadTextA returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXFont_PreloadTextA
(
font
,
NULL
,
0
);
ok
(
hr
==
D3D_OK
,
"ID3DXFont_PreloadTextA returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
hr
=
ID3DXFont_PreloadTextA
(
font
,
NULL
,
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXFont_PreloadTextA returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXFont_PreloadTextA
(
font
,
"test"
,
-
1
);
ok
(
hr
==
D3D_OK
,
"ID3DXFont_PreloadTextA returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
hr
=
ID3DXFont_PreloadTextW
(
font
,
NULL
,
-
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXFont_PreloadTextW returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXFont_PreloadTextW
(
font
,
NULL
,
0
);
ok
(
hr
==
D3D_OK
,
"ID3DXFont_PreloadTextW returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
hr
=
ID3DXFont_PreloadTextW
(
font
,
NULL
,
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXFont_PreloadTextW returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXFont_PreloadTextW
(
font
,
testW
,
-
1
);
ok
(
hr
==
D3D_OK
,
"ID3DXFont_PreloadTextW returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
}
check_release
((
IUnknown
*
)
font
,
0
);
}
else
skip
(
"Failed to create a ID3DXFont object
\n
"
);
}
static
void
test_D3DXCreateRenderToSurface
(
IDirect3DDevice9
*
device
)
...
...
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