Commit 25260e60 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus/tests: Additional test to show that custom cap isn't created without stroke path.

parent db5e3f4a
...@@ -59,8 +59,10 @@ static void test_constructor_destructor(void) ...@@ -59,8 +59,10 @@ static void test_constructor_destructor(void)
stat = GdipDeleteCustomLineCap(custom); stat = GdipDeleteCustomLineCap(custom);
expect(Ok, stat); expect(Ok, stat);
/* it's strange but native returns NotImplemented on stroke == NULL */ /* it's strange but native returns NotImplemented on stroke == NULL */
custom = NULL;
stat = GdipCreateCustomLineCap(path, NULL, LineCapFlat, 10.0, &custom); stat = GdipCreateCustomLineCap(path, NULL, LineCapFlat, 10.0, &custom);
todo_wine expect(NotImplemented, stat); todo_wine expect(NotImplemented, stat);
todo_wine ok(custom == NULL, "Expected a failure on creation\n");
GdipDeletePath(path2); GdipDeletePath(path2);
GdipDeletePath(path); GdipDeletePath(path);
......
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