gdiplus: Add tests for GdipCreateBitmapFromFile.

This commit is contained in:
Nathan Beckmann 2008-02-24 07:41:28 -08:00 committed by Alexandre Julliard
parent f49c7bb450
commit 3d802924cb
1 changed files with 12 additions and 0 deletions

View File

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