Dmitry Timoshkov : gdiplus/tests: Add more checks to the GdipGetPathData test.
Module: wine Branch: master Commit: 6278f5ffdc522047ba6c09aac79b2172c5661f9a URL: http://source.winehq.org/git/wine.git/?a=commit;h=6278f5ffdc522047ba6c09aac7... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Wed Nov 6 11:45:59 2013 +0900 gdiplus/tests: Add more checks to the GdipGetPathData test. --- dlls/gdiplus/tests/graphicspath.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/tests/graphicspath.c b/dlls/gdiplus/tests/graphicspath.c index 6d929b0..6d4171c 100644 --- a/dlls/gdiplus/tests/graphicspath.c +++ b/dlls/gdiplus/tests/graphicspath.c @@ -156,15 +156,16 @@ static void test_getpathdata(void) GpStatus status; INT count; - GdipCreatePath(FillModeAlternate, &path); + status = GdipCreatePath(FillModeAlternate, &path); + expect(Ok, status); status = GdipAddPathLine(path, 5.0, 5.0, 100.0, 50.0); expect(Ok, status); - /* Prepare storage. Made by wrapper class. */ status = GdipGetPointCount(path, &count); expect(Ok, status); + expect(2, count); - data.Count = 2; + data.Count = count; data.Types = GdipAlloc(sizeof(BYTE) * count); data.Points = GdipAlloc(sizeof(PointF) * count);
participants (1)
-
Alexandre Julliard