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

This commit is contained in:
Nikolay Sivov 2009-12-05 21:58:57 +03:00 committed by Alexandre Julliard
parent db5e3f4a05
commit 25260e601c
1 changed files with 2 additions and 0 deletions

View File

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