user/tests: Update LoadImage test.
Include a bitmap in the resources and don't depend on Windows' OBM_CHECK bitmap anymore.
This commit is contained in:
parent
b5bff92a0c
commit
ea5d55bf4c
|
@ -14,6 +14,7 @@ msg.ok
|
|||
resource.ok
|
||||
resource.res
|
||||
sysparams.ok
|
||||
test_mono.bmp
|
||||
testlist.c
|
||||
text.ok
|
||||
win.ok
|
||||
|
|
|
@ -27,6 +27,10 @@ CTESTS = \
|
|||
|
||||
RC_SRCS = resource.rc
|
||||
|
||||
RC_BINSRC = resource.rc
|
||||
RC_BINARIES = \
|
||||
test_mono.bmp
|
||||
|
||||
@MAKE_TEST_RULES@
|
||||
|
||||
### Dependencies:
|
||||
|
|
|
@ -283,17 +283,22 @@ static void test_PrivateExtractIcons(void) {
|
|||
ok(cIcons == 4, "Three icons requested, four expected, got cIcons=%d\n", cIcons);
|
||||
}
|
||||
|
||||
static void test_LoadImage(void) {
|
||||
static void test_LoadImage(void)
|
||||
{
|
||||
HBITMAP bmp;
|
||||
|
||||
bmp = LoadBitmapA(NULL, MAKEINTRESOURCE(OBM_CHECK));
|
||||
ok(bmp != NULL, "Could not load the OBM_CHECK bitmap\n");
|
||||
HRSRC hres;
|
||||
|
||||
bmp = LoadBitmapA(GetModuleHandle(NULL), MAKEINTRESOURCE(100));
|
||||
ok(bmp != NULL, "Could not load a bitmap resource\n");
|
||||
if (bmp) DeleteObject(bmp);
|
||||
|
||||
bmp = LoadBitmapA(NULL, "#32760"); /* Value of OBM_CHECK */
|
||||
ok(bmp != NULL, "Could not load the OBM_CHECK bitmap\n");
|
||||
|
||||
hres = FindResource(GetModuleHandle(NULL), "#100", RT_BITMAP);
|
||||
ok(hres != NULL, "Could not find a bitmap resource with a numeric string\n");
|
||||
|
||||
bmp = LoadBitmapA(GetModuleHandle(NULL), "#100");
|
||||
ok(bmp != NULL, "Could not load a bitmap resource with a numeric string\n");
|
||||
if (bmp) DeleteObject(bmp);
|
||||
}
|
||||
}
|
||||
|
||||
START_TEST(resource)
|
||||
{
|
||||
|
|
|
@ -77,3 +77,13 @@ FONT 8, "MS Shell Dlg"
|
|||
{
|
||||
EDITTEXT 200,4,4,50,14
|
||||
}
|
||||
|
||||
/* BINRES test_mono.bmp */
|
||||
100 BITMAP test_mono.bmp
|
||||
/* {
|
||||
'42 4D 42 00 00 00 00 00 00 00 3E 00 00 00 28 00'
|
||||
'00 00 02 00 00 00 01 00 00 00 01 00 01 00 00 00'
|
||||
'00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00'
|
||||
'00 00 00 00 00 00 00 00 00 00 FF FF FF 00 40 00'
|
||||
'00 00'
|
||||
} */
|
||||
|
|
Loading…
Reference in New Issue