dwrite/tests: Fix fallback builder test skip.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
38d0aa68da
commit
f2090cb415
|
@ -4672,17 +4672,15 @@ static void test_FontFallbackBuilder(void)
|
||||||
hr = IDWriteFactory_QueryInterface(factory, &IID_IDWriteFactory2, (void**)&factory2);
|
hr = IDWriteFactory_QueryInterface(factory, &IID_IDWriteFactory2, (void**)&factory2);
|
||||||
IDWriteFactory_Release(factory);
|
IDWriteFactory_Release(factory);
|
||||||
|
|
||||||
if (factory2) {
|
|
||||||
EXPECT_REF(factory2, 1);
|
|
||||||
hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder);
|
|
||||||
EXPECT_REF(factory2, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hr != S_OK) {
|
if (hr != S_OK) {
|
||||||
skip("IDWriteFontFallbackBuilder is not supported\n");
|
win_skip("IDWriteFontFallbackBuilder is not supported\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXPECT_REF(factory2, 1);
|
||||||
|
hr = IDWriteFactory2_CreateFontFallbackBuilder(factory2, &builder);
|
||||||
|
EXPECT_REF(factory2, 2);
|
||||||
|
|
||||||
fallback = NULL;
|
fallback = NULL;
|
||||||
EXPECT_REF(factory2, 2);
|
EXPECT_REF(factory2, 2);
|
||||||
EXPECT_REF(builder, 1);
|
EXPECT_REF(builder, 1);
|
||||||
|
|
Loading…
Reference in New Issue