t2embed/tests: Fix some test failures on Win10.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f83d141454
commit
5ce743d53b
|
@ -43,8 +43,10 @@ static int CALLBACK enum_font_proc(ENUMLOGFONTEXA *enumlf, NEWTEXTMETRICEXA *ntm
|
||||||
UINT fsType = otm.otmfsType & 0xf;
|
UINT fsType = otm.otmfsType & 0xf;
|
||||||
|
|
||||||
ret = TTGetEmbeddingType(hdc, &status);
|
ret = TTGetEmbeddingType(hdc, &status);
|
||||||
ok(ret == E_NONE, "got %d\n", ret);
|
ok(ret == E_NONE || ret == E_NOTATRUETYPEFONT, "Unexpected return value %#x.\n", ret);
|
||||||
|
|
||||||
|
if (ret == E_NONE)
|
||||||
|
{
|
||||||
if (fsType == LICENSE_INSTALLABLE)
|
if (fsType == LICENSE_INSTALLABLE)
|
||||||
expected = EMBED_INSTALLABLE;
|
expected = EMBED_INSTALLABLE;
|
||||||
else if (fsType & LICENSE_EDITABLE)
|
else if (fsType & LICENSE_EDITABLE)
|
||||||
|
@ -57,6 +59,7 @@ static int CALLBACK enum_font_proc(ENUMLOGFONTEXA *enumlf, NEWTEXTMETRICEXA *ntm
|
||||||
ok(expected == status, "%s: status %d, expected %d, fsType %#x\n", enumlf->elfLogFont.lfFaceName, status,
|
ok(expected == status, "%s: status %d, expected %d, fsType %#x\n", enumlf->elfLogFont.lfFaceName, status,
|
||||||
expected, otm.otmfsType);
|
expected, otm.otmfsType);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
status = 0xdeadbeef;
|
status = 0xdeadbeef;
|
||||||
|
@ -170,14 +173,6 @@ static void test_TTIsEmbeddingEnabled(void)
|
||||||
|
|
||||||
hdc = CreateCompatibleDC(0);
|
hdc = CreateCompatibleDC(0);
|
||||||
|
|
||||||
ret = TTIsEmbeddingEnabled(hdc, NULL);
|
|
||||||
ok(ret == E_ERRORACCESSINGFACENAME, "got %#x\n", ret);
|
|
||||||
|
|
||||||
status = 123;
|
|
||||||
ret = TTIsEmbeddingEnabled(hdc, &status);
|
|
||||||
ok(ret == E_ERRORACCESSINGFACENAME, "got %#x\n", ret);
|
|
||||||
ok(status == 123, "got %u\n", status);
|
|
||||||
|
|
||||||
memset(&logfont, 0, sizeof(logfont));
|
memset(&logfont, 0, sizeof(logfont));
|
||||||
logfont.lfHeight = 12;
|
logfont.lfHeight = 12;
|
||||||
logfont.lfWeight = FW_NORMAL;
|
logfont.lfWeight = FW_NORMAL;
|
||||||
|
@ -187,6 +182,9 @@ static void test_TTIsEmbeddingEnabled(void)
|
||||||
|
|
||||||
old_font = SelectObject(hdc, hfont);
|
old_font = SelectObject(hdc, hfont);
|
||||||
|
|
||||||
|
ret = TTIsEmbeddingEnabled(hdc, NULL);
|
||||||
|
ok(ret == E_PBENABLEDINVALID, "Unexpected return value %#x.\n", ret);
|
||||||
|
|
||||||
status = 123;
|
status = 123;
|
||||||
ret = TTIsEmbeddingEnabled(hdc, &status);
|
ret = TTIsEmbeddingEnabled(hdc, &status);
|
||||||
ok(ret == E_NONE, "got %#x\n", ret);
|
ok(ret == E_NONE, "got %#x\n", ret);
|
||||||
|
|
Loading…
Reference in New Issue