Nathan Beckmann : gdiplus: Add tests for GdipCreateBitmapFromFile.
Module: wine Branch: master Commit: 3d802924cbb1fd92b07edca04c5a6c1e6f6c1b01 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d802924cbb1fd92b07edca04c... Author: Nathan Beckmann <nathan.beckmann(a)gmail.com> Date: Sun Feb 24 07:41:28 2008 -0800 gdiplus: Add tests for GdipCreateBitmapFromFile. --- dlls/gdiplus/tests/image.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 0918f9d..7228339 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -105,6 +105,17 @@ static void test_GetImageDimension(void) GdipDisposeImage((GpImage*)bm); } +static void test_LoadingImages(void) +{ + GpStatus stat; + + stat = GdipCreateBitmapFromFile(0, 0); + expect(InvalidParameter, stat); + + stat = GdipCreateBitmapFromFile(0, (GpBitmap**)0xdeadbeef); + expect(InvalidParameter, stat); +} + START_TEST(image) { struct GdiplusStartupInput gdiplusStartupInput; @@ -119,6 +130,7 @@ START_TEST(image) test_Scan0(); test_GetImageDimension(); + test_LoadingImages(); GdiplusShutdown(gdiplusToken); }
participants (1)
-
Alexandre Julliard