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
83bfda7c
Commit
83bfda7c
authored
Sep 24, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Oct 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Allow tracing in menu tests.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
parent
9d58aac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
menu.c
dlls/user32/tests/menu.c
+11
-9
No files found.
dlls/user32/tests/menu.c
View file @
83bfda7c
...
@@ -2508,9 +2508,10 @@ static void check_menu_items(HMENU hmenu, UINT checked_cmd, UINT checked_type,
...
@@ -2508,9 +2508,10 @@ static void check_menu_items(HMENU hmenu, UINT checked_cmd, UINT checked_type,
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_STATE
|
MIIM_ID
|
MIIM_SUBMENU
;
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_STATE
|
MIIM_ID
|
MIIM_SUBMENU
;
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
if
(
0
)
trace
(
"item #%u: fType %04x, fState %04x, wID %u, hSubMenu %p
\n
"
,
if
(
winetest_debug
>
1
)
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
mii
.
hSubMenu
);
trace
(
"item #%u: fType %04x, fState %04x, wID %u, hSubMenu %p
\n
"
,
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
mii
.
hSubMenu
);
if
(
mii
.
hSubMenu
)
if
(
mii
.
hSubMenu
)
{
{
...
@@ -2672,9 +2673,9 @@ static void test_menu_resource_layout(void)
...
@@ -2672,9 +2673,9 @@ static void test_menu_resource_layout(void)
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_STATE
|
MIIM_ID
|
MIIM_STRING
;
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_STATE
|
MIIM_ID
|
MIIM_STRING
;
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
if
(
0
)
if
(
winetest_debug
>
1
)
trace
(
"item #%u: fType %04x, fState %04x, wID %u, dwTypeData %s
\n
"
,
trace
(
"item #%u: fType %04x, fState %04x, wID %u, dwTypeData %s
\n
"
,
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
(
LPCSTR
)
mii
.
dwTypeData
);
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
(
LPCSTR
)
mii
.
dwTypeData
);
ok
(
mii
.
fType
==
menu_data
[
i
].
type
,
ok
(
mii
.
fType
==
menu_data
[
i
].
type
,
"%u: expected fType %04x, got %04x
\n
"
,
i
,
menu_data
[
i
].
type
,
mii
.
fType
);
"%u: expected fType %04x, got %04x
\n
"
,
i
,
menu_data
[
i
].
type
,
mii
.
fType
);
...
@@ -2778,9 +2779,10 @@ static void compare_menu_data(HMENU hmenu, const struct menu_data *item, INT ite
...
@@ -2778,9 +2779,10 @@ static void compare_menu_data(HMENU hmenu, const struct menu_data *item, INT ite
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_ID
|
MIIM_STRING
|
MIIM_BITMAP
;
mii
.
fMask
=
MIIM_FTYPE
|
MIIM_ID
|
MIIM_STRING
|
MIIM_BITMAP
;
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ret
=
GetMenuItemInfoA
(
hmenu
,
i
,
TRUE
,
&
mii
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
ok
(
ret
,
"GetMenuItemInfo(%u) failed
\n
"
,
i
);
if
(
0
)
trace
(
"item #%u: fType %04x, fState %04x, wID %04x, hbmp %p
\n
"
,
if
(
winetest_debug
>
1
)
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
mii
.
hbmpItem
);
trace
(
"item #%u: fType %04x, fState %04x, wID %04x, hbmp %p
\n
"
,
i
,
mii
.
fType
,
mii
.
fState
,
mii
.
wID
,
mii
.
hbmpItem
);
ok
(
mii
.
fType
==
item
[
i
].
type
,
ok
(
mii
.
fType
==
item
[
i
].
type
,
"%u: expected fType %04x, got %04x
\n
"
,
i
,
item
[
i
].
type
,
mii
.
fType
);
"%u: expected fType %04x, got %04x
\n
"
,
i
,
item
[
i
].
type
,
mii
.
fType
);
...
...
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