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
e4f3d787
Commit
e4f3d787
authored
Nov 15, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Nov 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add tests for the current console font size.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f6ccf4a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
console.c
dlls/kernel32/tests/console.c
+16
-0
No files found.
dlls/kernel32/tests/console.c
View file @
e4f3d787
...
...
@@ -3437,6 +3437,7 @@ static void test_GetCurrentConsoleFontEx(HANDLE std_output)
BOOL
ret
;
HANDLE
std_input
=
GetStdHandle
(
STD_INPUT_HANDLE
);
HANDLE
pipe1
,
pipe2
;
COORD
c
;
hmod
=
GetModuleHandleA
(
"kernel32.dll"
);
pGetCurrentConsoleFontEx
=
(
void
*
)
GetProcAddress
(
hmod
,
"GetCurrentConsoleFontEx"
);
...
...
@@ -3522,6 +3523,21 @@ static void test_GetCurrentConsoleFontEx(HANDLE std_output)
ok
(
cfix
.
dwFontSize
.
Y
==
cfi
.
dwFontSize
.
Y
,
"expected values to match
\n
"
);
SetLastError
(
0xdeadbeef
);
c
=
GetConsoleFontSize
(
std_output
,
cfix
.
nFont
);
ok
(
c
.
X
&&
c
.
Y
,
"GetConsoleFontSize failed; err = %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
,
"got %u, expected 0xdeadbeef
\n
"
,
GetLastError
());
todo_wine
ok
(
cfix
.
dwFontSize
.
X
==
c
.
X
,
"Font width doesn't match; got %u, expected %u
\n
"
,
cfix
.
dwFontSize
.
X
,
c
.
X
);
todo_wine
ok
(
cfix
.
dwFontSize
.
Y
==
c
.
Y
,
"Font height doesn't match; got %u, expected %u
\n
"
,
cfix
.
dwFontSize
.
Y
,
c
.
Y
);
todo_wine
ok
(
cfi
.
dwFontSize
.
X
==
c
.
X
,
"Font width doesn't match; got %u, expected %u
\n
"
,
cfi
.
dwFontSize
.
X
,
c
.
X
);
todo_wine
ok
(
cfi
.
dwFontSize
.
Y
==
c
.
Y
,
"Font height doesn't match; got %u, expected %u
\n
"
,
cfi
.
dwFontSize
.
Y
,
c
.
Y
);
SetLastError
(
0xdeadbeef
);
ret
=
pGetCurrentConsoleFontEx
(
std_output
,
TRUE
,
&
cfix
);
ok
(
ret
,
"got %d, expected non-zero
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"got %u, expected 0xdeadbeef
\n
"
,
GetLastError
());
...
...
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