oleaut32/tests: Avoid testing that GDI objects are invalid.
This is not consistent across Windows versions. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6a98a3187
commit
c7fa6e8e2d
|
@ -1033,9 +1033,6 @@ static void test_hfont_lifetime(void)
|
|||
|
||||
hr = IFont_get_hFont(font, &hfont);
|
||||
EXPECT_HR(hr, S_OK);
|
||||
|
||||
obj_type = GetObjectType(last_hfont);
|
||||
ok(obj_type == 0, "%d: got obj type %d\n", i, obj_type);
|
||||
}
|
||||
|
||||
/* now show that if we take a reference on the hfont, it persists
|
||||
|
@ -1063,9 +1060,6 @@ static void test_hfont_lifetime(void)
|
|||
|
||||
IFont_Release(font);
|
||||
|
||||
obj_type = GetObjectType(first_hfont);
|
||||
ok(obj_type == 0, "got obj type %d\n", obj_type);
|
||||
|
||||
/* An AddRefHfont followed by a ReleaseHfont means the font doesn't not persist
|
||||
through re-realization */
|
||||
|
||||
|
@ -1099,9 +1093,6 @@ static void test_hfont_lifetime(void)
|
|||
|
||||
hr = IFont_ReleaseHfont(font, hfont);
|
||||
EXPECT_HR(hr, S_OK);
|
||||
|
||||
obj_type = GetObjectType(last_hfont);
|
||||
ok(obj_type == 0, "%d: got obj type %d\n", i, obj_type);
|
||||
}
|
||||
|
||||
/* Interestingly if we release a nonexistent reference on the hfont,
|
||||
|
@ -1130,9 +1121,6 @@ static void test_hfont_lifetime(void)
|
|||
|
||||
IFont_Release(font);
|
||||
|
||||
obj_type = GetObjectType(first_hfont);
|
||||
ok(obj_type == 0, "got obj type %d\n", obj_type);
|
||||
|
||||
/* If we take two internal references on a hfont then we can release
|
||||
it twice. So it looks like there's a total reference count
|
||||
that includes internal and external references */
|
||||
|
@ -1165,9 +1153,6 @@ todo_wine
|
|||
ok(obj_type == OBJ_FONT, "got obj type %d\n", obj_type);
|
||||
|
||||
IFont_Release(font2);
|
||||
|
||||
obj_type = GetObjectType(hfont);
|
||||
ok(obj_type == 0, "got obj type %d\n", obj_type);
|
||||
}
|
||||
|
||||
static void test_realization(void)
|
||||
|
|
Loading…
Reference in New Issue