gdi32/tests: Skip some tests if Times New Roman is not installed.
This commit is contained in:
parent
6c1d5f0bac
commit
d0fa8cbc74
|
@ -2254,6 +2254,12 @@ static void test_SetTextJustification(void)
|
||||||
GetClientRect( hwnd, &clientArea );
|
GetClientRect( hwnd, &clientArea );
|
||||||
hdc = GetDC( hwnd );
|
hdc = GetDC( hwnd );
|
||||||
|
|
||||||
|
if (!is_font_installed("Times New Roman"))
|
||||||
|
{
|
||||||
|
skip("Times New Roman is not installed\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&lf, 0, sizeof lf);
|
memset(&lf, 0, sizeof lf);
|
||||||
lf.lfCharSet = ANSI_CHARSET;
|
lf.lfCharSet = ANSI_CHARSET;
|
||||||
lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||||
|
|
Loading…
Reference in New Issue