Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ea5d55bf
Commit
ea5d55bf
authored
Jun 07, 2006
by
Michael Kaufmann
Committed by
Alexandre Julliard
Jun 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/tests: Update LoadImage test.
Include a bitmap in the resources and don't depend on Windows' OBM_CHECK bitmap anymore.
parent
b5bff92a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
.gitignore
dlls/user/tests/.gitignore
+1
-0
Makefile.in
dlls/user/tests/Makefile.in
+4
-0
resource.c
dlls/user/tests/resource.c
+13
-8
resource.rc
dlls/user/tests/resource.rc
+10
-0
No files found.
dlls/user/tests/.gitignore
View file @
ea5d55bf
...
...
@@ -14,6 +14,7 @@ msg.ok
resource.ok
resource.res
sysparams.ok
test_mono.bmp
testlist.c
text.ok
win.ok
...
...
dlls/user/tests/Makefile.in
View file @
ea5d55bf
...
...
@@ -27,6 +27,10 @@ CTESTS = \
RC_SRCS
=
resource.rc
RC_BINSRC
=
resource.rc
RC_BINARIES
=
\
test_mono.bmp
@MAKE_TEST_RULES@
### Dependencies:
dlls/user/tests/resource.c
View file @
ea5d55bf
...
...
@@ -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
)
{
...
...
dlls/user/tests/resource.rc
View file @
ea5d55bf
...
...
@@ -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'
} */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment