Commit 28c35689 authored by Esme Povirk's avatar Esme Povirk Committed by Alexandre Julliard

gdiplus: Mark a Windows behavior as broken.

parent 17b09409
......@@ -4140,7 +4140,7 @@ static void test_pen_thickness(void)
size = max-min+1;
ok(size == td[i].cx, "%u: expected %d, got %d\n", i, td[i].cx, size);
ok(size == td[i].cx || broken (i == 1 && size == 1), "%u: expected %d, got %d\n", i, td[i].cx, size);
min = -1;
max = -2;
......@@ -4165,7 +4165,7 @@ static void test_pen_thickness(void)
size = max-min+1;
ok(size == td[i].cy, "%u: expected %d, got %d\n", i, td[i].cy, size);
ok(size == td[i].cy || broken (i == 1 && size == 1), "%u: expected %d, got %d\n", i, td[i].cy, size);
status = GdipBitmapUnlockBits(u.bitmap, &bd);
expect(Ok, status);
......
......@@ -1447,7 +1447,7 @@ static void test_widen(void)
status = GdipGetPointCount(path, &count);
expect(Ok, status);
expect(0, count);
ok(count == 0 || broken(count == 4), "expected 0, got %i\n", count);
/* pen width = 0 pixels, UnitWorld - result is a path 1 unit wide */
GdipDeletePen(pen);
......@@ -1711,6 +1711,21 @@ static void test_widen_cap(void)
status = GdipWidenPath(path, pen, NULL, FlatnessDefault);
expect(Ok, status);
if (i == 9)
{
INT size;
status = GdipGetPointCount(path, &size);
expect(Ok, status);
ok(size == caps[i].expected_size || broken(size == 12), "unexpected path size %i\n", size);
if (size == 12)
{
GdipDeletePen(pen);
continue;
}
}
ok_path_fudge(path, caps[i].expected, caps[i].expected_size, caps[i].todo_size, 0.000005);
GdipDeletePen(pen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment