gdiplus/tests: Add more checks to the GdipGetPathData test.

oldstable
Dmitry Timoshkov 2013-11-06 11:45:59 +09:00 committed by Alexandre Julliard
parent d4db49efc2
commit 6278f5ffdc
1 changed files with 4 additions and 3 deletions

View File

@ -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);