Justin Chevrier : gdiplus/tests: Expand GdipImageGetFrameCount test coverage.
Alexandre Julliard
julliard at winehq.org
Tue Mar 16 11:49:18 CDT 2010
Module: wine
Branch: master
Commit: 94820ff0a40d8201df69ffec485c267cdf800986
URL: http://source.winehq.org/git/wine.git/?a=commit;h=94820ff0a40d8201df69ffec485c267cdf800986
Author: Justin Chevrier <jchevrier at gmail.com>
Date: Mon Mar 15 19:14:27 2010 -0400
gdiplus/tests: Expand GdipImageGetFrameCount test coverage.
---
dlls/gdiplus/tests/image.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 2810b51..682c49f 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -226,6 +226,19 @@ static void test_GdipImageGetFrameDimensionsCount(void)
stat = GdipImageGetFrameDimensionsList((GpImage*)bm, &dimension, 0);
expect(InvalidParameter, stat);
+ stat = GdipImageGetFrameCount(NULL, &dimension, &count);
+ expect(InvalidParameter, stat);
+
+ /* WinXP crashes on this test */
+ if(0)
+ {
+ stat = GdipImageGetFrameCount((GpImage*)bm, &dimension, NULL);
+ expect(InvalidParameter, stat);
+ }
+
+ stat = GdipImageGetFrameCount((GpImage*)bm, NULL, &count);
+ todo_wine expect(Ok, stat);
+
count = 12345;
stat = GdipImageGetFrameCount((GpImage*)bm, &dimension, &count);
todo_wine expect(Ok, stat);
More information about the wine-cvs
mailing list