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
9f548bd9
Commit
9f548bd9
authored
Oct 11, 2009
by
Julius Schwartzenberg
Committed by
Alexandre Julliard
Oct 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test extra value of standard dialog and edit classes.
parent
8e899e00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
class.c
dlls/user32/tests/class.c
+32
-0
No files found.
dlls/user32/tests/class.c
View file @
9f548bd9
...
...
@@ -831,10 +831,42 @@ static void CreateDialogParamTest(HINSTANCE hInstance)
}
}
static
const
struct
{
const
char
name
[
9
];
int
value
;
int
badvalue
;
}
extra_values
[]
=
{
{
"#32770"
,
30
,
30
},
/* Dialog */
#ifdef _WIN64
{
"Edit"
,
8
,
8
},
#else
{
"Edit"
,
6
,
8
},
/* Windows XP 64-bit returns 8 also to 32-bit applications */
#endif
};
static
void
test_extra_values
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
extra_values
)
/
sizeof
(
extra_values
[
0
]);
i
++
)
{
WNDCLASSEX
wcx
;
BOOL
ret
=
GetClassInfoEx
(
NULL
,
extra_values
[
i
].
name
,
&
wcx
);
ok
(
ret
,
"GetClassInfo (0) failed for global class %s
\n
"
,
extra_values
[
i
].
name
);
if
(
!
ret
)
continue
;
ok
(
extra_values
[
i
].
value
==
wcx
.
cbWndExtra
||
broken
(
extra_values
[
i
].
badvalue
==
wcx
.
cbWndExtra
),
"expected %d, got %d
\n
"
,
extra_values
[
i
].
value
,
wcx
.
cbWndExtra
);
}
}
START_TEST
(
class
)
{
HANDLE
hInstance
=
GetModuleHandleA
(
NULL
);
test_extra_values
();
if
(
!
GetModuleHandleW
(
0
))
{
trace
(
"Class test is incompatible with Win9x implementation, skipping
\n
"
);
...
...
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