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
55902e0c
Commit
55902e0c
authored
Apr 22, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Run tests on win9x again.
parent
1a0bf043
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
font.c
dlls/gdi32/tests/font.c
+13
-13
No files found.
dlls/gdi32/tests/font.c
View file @
55902e0c
...
@@ -492,7 +492,7 @@ static void test_GetCharABCWidths(void)
...
@@ -492,7 +492,7 @@ static void test_GetCharABCWidths(void)
hfont
=
SelectObject
(
hdc
,
hfont
);
hfont
=
SelectObject
(
hdc
,
hfont
);
nb
=
pGetGlyphIndicesW
(
hdc
,
str
,
1
,
glyphs
,
0
);
nb
=
pGetGlyphIndicesW
(
hdc
,
str
,
1
,
glyphs
,
0
);
ok
(
nb
==
1
,
"
p
GetGlyphIndicesW should have returned 1
\n
"
);
ok
(
nb
==
1
,
"GetGlyphIndicesW should have returned 1
\n
"
);
ret
=
pGetCharABCWidthsI
(
NULL
,
0
,
1
,
glyphs
,
abc
);
ret
=
pGetCharABCWidthsI
(
NULL
,
0
,
1
,
glyphs
,
abc
);
ok
(
!
ret
,
"GetCharABCWidthsI should have failed
\n
"
);
ok
(
!
ret
,
"GetCharABCWidthsI should have failed
\n
"
);
...
@@ -602,7 +602,7 @@ static void test_GetGlyphIndices(void)
...
@@ -602,7 +602,7 @@ static void test_GetGlyphIndices(void)
HFONT
hOldFont
;
HFONT
hOldFont
;
if
(
!
pGetGlyphIndicesW
)
{
if
(
!
pGetGlyphIndicesW
)
{
skip
(
"GetGlyphIndices not available on platform
\n
"
);
skip
(
"GetGlyphIndices
W
not available on platform
\n
"
);
return
;
return
;
}
}
...
@@ -611,12 +611,12 @@ static void test_GetGlyphIndices(void)
...
@@ -611,12 +611,12 @@ static void test_GetGlyphIndices(void)
ok
(
GetTextMetrics
(
hdc
,
&
textm
),
"GetTextMetric failed
\n
"
);
ok
(
GetTextMetrics
(
hdc
,
&
textm
),
"GetTextMetric failed
\n
"
);
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndices count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
charcount
==
5
,
"GetGlyphIndices
W
count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
((
glyphs
[
4
]
==
0x001f
||
glyphs
[
4
]
==
0xffff
/* Vista */
),
"GetGlyphIndices should have returned a nonexistent char not %04x
\n
"
,
glyphs
[
4
]);
ok
((
glyphs
[
4
]
==
0x001f
||
glyphs
[
4
]
==
0xffff
/* Vista */
),
"GetGlyphIndices
W
should have returned a nonexistent char not %04x
\n
"
,
glyphs
[
4
]);
flags
=
0
;
flags
=
0
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndices count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
charcount
==
5
,
"GetGlyphIndices
W
count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
glyphs
[
4
]
==
textm
.
tmDefaultChar
,
"GetGlyphIndices should have returned a %04x not %04x
\n
"
,
ok
(
glyphs
[
4
]
==
textm
.
tmDefaultChar
,
"GetGlyphIndices
W
should have returned a %04x not %04x
\n
"
,
textm
.
tmDefaultChar
,
glyphs
[
4
]);
textm
.
tmDefaultChar
,
glyphs
[
4
]);
if
(
!
is_font_installed
(
"Tahoma"
))
if
(
!
is_font_installed
(
"Tahoma"
))
...
@@ -633,14 +633,14 @@ static void test_GetGlyphIndices(void)
...
@@ -633,14 +633,14 @@ static void test_GetGlyphIndices(void)
ok
(
GetTextMetrics
(
hdc
,
&
textm
),
"GetTextMetric failed
\n
"
);
ok
(
GetTextMetrics
(
hdc
,
&
textm
),
"GetTextMetric failed
\n
"
);
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndices count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
charcount
==
5
,
"GetGlyphIndices
W
count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
glyphs
[
4
]
==
0xffff
,
"GetGlyphIndices should have returned 0xffff char not %04x
\n
"
,
glyphs
[
4
]);
ok
(
glyphs
[
4
]
==
0xffff
,
"GetGlyphIndices
W
should have returned 0xffff char not %04x
\n
"
,
glyphs
[
4
]);
flags
=
0
;
flags
=
0
;
testtext
[
0
]
=
textm
.
tmDefaultChar
;
testtext
[
0
]
=
textm
.
tmDefaultChar
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndices count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
charcount
==
5
,
"GetGlyphIndices
W
count of glyphs should = 5 not %d
\n
"
,
charcount
);
todo_wine
ok
(
glyphs
[
0
]
==
0
,
"GetGlyphIndices for tmDefaultChar should be 0 not %04x
\n
"
,
glyphs
[
0
]);
todo_wine
ok
(
glyphs
[
0
]
==
0
,
"GetGlyphIndices
W
for tmDefaultChar should be 0 not %04x
\n
"
,
glyphs
[
0
]);
ok
(
glyphs
[
4
]
==
0
,
"GetGlyphIndices should have returned 0 not %04x
\n
"
,
glyphs
[
4
]);
ok
(
glyphs
[
4
]
==
0
,
"GetGlyphIndices
W
should have returned 0 not %04x
\n
"
,
glyphs
[
4
]);
DeleteObject
(
SelectObject
(
hdc
,
hOldFont
));
DeleteObject
(
SelectObject
(
hdc
,
hOldFont
));
}
}
...
@@ -1130,7 +1130,7 @@ static BOOL get_glyph_indices(INT charset, UINT code_page, WORD *idx, UINT count
...
@@ -1130,7 +1130,7 @@ static BOOL get_glyph_indices(INT charset, UINT code_page, WORD *idx, UINT count
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pGetGlyphIndicesW
(
hdc
,
unicode_buf
,
count
,
idx
,
0
);
ret
=
pGetGlyphIndicesW
(
hdc
,
unicode_buf
,
count
,
idx
,
0
);
ok
(
ret
==
count
,
"GetGlyphIndices
A
error %u
\n
"
,
GetLastError
());
ok
(
ret
==
count
,
"GetGlyphIndices
W
error %u
\n
"
,
GetLastError
());
}
}
else
else
{
{
...
@@ -1513,7 +1513,7 @@ static void test_negative_width(HDC hdc, const LOGFONTA *lf)
...
@@ -1513,7 +1513,7 @@ static void test_negative_width(HDC hdc, const LOGFONTA *lf)
hfont_prev
=
SelectObject
(
hdc
,
hfont
);
hfont_prev
=
SelectObject
(
hdc
,
hfont
);
ret
=
GetGlyphIndicesA
(
hdc
,
"x"
,
1
,
&
idx
,
GGI_MARK_NONEXISTING_GLYPHS
);
ret
=
p
GetGlyphIndicesA
(
hdc
,
"x"
,
1
,
&
idx
,
GGI_MARK_NONEXISTING_GLYPHS
);
if
(
ret
==
GDI_ERROR
||
idx
==
0xffff
)
if
(
ret
==
GDI_ERROR
||
idx
==
0xffff
)
{
{
SelectObject
(
hdc
,
hfont_prev
);
SelectObject
(
hdc
,
hfont_prev
);
...
...
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