gdiplus/tests: Make use of todo_wine_if().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2de908f3ff
commit
5fce51236c
|
@ -3763,10 +3763,8 @@ todo_wine
|
||||||
expected_width = base_cx * pt.Y;
|
expected_width = base_cx * pt.Y;
|
||||||
expected_height = base_cy * pt.Y;
|
expected_height = base_cy * pt.Y;
|
||||||
|
|
||||||
if (td[i].unit == UnitDisplay || td[i].unit == UnitPixel)
|
todo_wine_if(td[i].unit != UnitDisplay && td[i].unit != UnitPixel)
|
||||||
ok(fabs(expected_width - bounds.Width) <= 0.001, "%u: expected %f, got %f\n", i, expected_width, bounds.Width);
|
ok(fabs(expected_width - bounds.Width) <= 0.001, "%u: expected %f, got %f\n", i, expected_width, bounds.Width);
|
||||||
else
|
|
||||||
todo_wine ok(fabs(expected_width - bounds.Width) <= 0.001, "%u: expected %f, got %f\n", i, expected_width, bounds.Width);
|
|
||||||
ok(fabs(expected_height - bounds.Height) <= 0.001, "%u: expected %f, got %f\n", i, expected_height, bounds.Height);
|
ok(fabs(expected_height - bounds.Height) <= 0.001, "%u: expected %f, got %f\n", i, expected_height, bounds.Height);
|
||||||
|
|
||||||
GdipDeleteGraphics(graphics);
|
GdipDeleteGraphics(graphics);
|
||||||
|
|
|
@ -3167,12 +3167,7 @@ static void test_image_properties(void)
|
||||||
|
|
||||||
status = GdipGetPropertyCount(image, &prop_count);
|
status = GdipGetPropertyCount(image, &prop_count);
|
||||||
ok(status == Ok, "%u: GdipGetPropertyCount error %d\n", i, status);
|
ok(status == Ok, "%u: GdipGetPropertyCount error %d\n", i, status);
|
||||||
if (td[i].image_data == pngimage || td[i].image_data == jpgimage)
|
todo_wine_if(td[i].image_data == pngimage || td[i].image_data == jpgimage)
|
||||||
todo_wine
|
|
||||||
ok(td[i].prop_count == prop_count || td[i].prop_count2 == prop_count,
|
|
||||||
" %u: expected property count %u or %u, got %u\n",
|
|
||||||
i, td[i].prop_count, td[i].prop_count2, prop_count);
|
|
||||||
else
|
|
||||||
ok(td[i].prop_count == prop_count || td[i].prop_count2 == prop_count,
|
ok(td[i].prop_count == prop_count || td[i].prop_count2 == prop_count,
|
||||||
" %u: expected property count %u or %u, got %u\n",
|
" %u: expected property count %u or %u, got %u\n",
|
||||||
i, td[i].prop_count, td[i].prop_count2, prop_count);
|
i, td[i].prop_count, td[i].prop_count2, prop_count);
|
||||||
|
|
Loading…
Reference in New Issue