Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e8897ebe
Commit
e8897ebe
authored
Nov 19, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add FindWindow() test for versioned class.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
590c8b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
class.c
dlls/user32/tests/class.c
+22
-1
No files found.
dlls/user32/tests/class.c
View file @
e8897ebe
...
@@ -1319,7 +1319,7 @@ static void test_actctx_classes(void)
...
@@ -1319,7 +1319,7 @@ static void test_actctx_classes(void)
ATOM
class
;
ATOM
class
;
HINSTANCE
hinst
;
HINSTANCE
hinst
;
char
buff
[
64
];
char
buff
[
64
];
HWND
hwnd
;
HWND
hwnd
,
hwnd2
;
char
path
[
MAX_PATH
];
char
path
[
MAX_PATH
];
GetTempPathA
(
ARRAY_SIZE
(
path
),
path
);
GetTempPathA
(
ARRAY_SIZE
(
path
),
path
);
...
@@ -1353,6 +1353,14 @@ static void test_actctx_classes(void)
...
@@ -1353,6 +1353,14 @@ static void test_actctx_classes(void)
hwnd
=
CreateWindowExA
(
0
,
testclass
,
"test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
hinst
,
0
);
hwnd
=
CreateWindowExA
(
0
,
testclass
,
"test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
hinst
,
0
);
ok
(
hwnd
!=
NULL
,
"Failed to create a window.
\n
"
);
ok
(
hwnd
!=
NULL
,
"Failed to create a window.
\n
"
);
hwnd2
=
FindWindowExA
(
NULL
,
NULL
,
"MyTestClass"
,
NULL
);
todo_wine
ok
(
hwnd2
==
hwnd
,
"Failed to find test window.
\n
"
);
hwnd2
=
FindWindowExA
(
NULL
,
NULL
,
"4.3.2.1!MyTestClass"
,
NULL
);
todo_wine
ok
(
hwnd2
==
NULL
,
"Unexpected find result %p.
\n
"
,
hwnd2
);
ret
=
GetClassNameA
(
hwnd
,
buff
,
sizeof
(
buff
));
ret
=
GetClassNameA
(
hwnd
,
buff
,
sizeof
(
buff
));
ok
(
ret
,
"Failed to get class name.
\n
"
);
ok
(
ret
,
"Failed to get class name.
\n
"
);
ok
(
!
strcmp
(
buff
,
testclass
),
"Unexpected class name.
\n
"
);
ok
(
!
strcmp
(
buff
,
testclass
),
"Unexpected class name.
\n
"
);
...
@@ -1378,6 +1386,19 @@ static void test_actctx_classes(void)
...
@@ -1378,6 +1386,19 @@ static void test_actctx_classes(void)
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowExA
(
0
,
"4.3.2.1!MyTestClass"
,
"test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
hinst
,
0
);
ok
(
hwnd
!=
NULL
,
"Failed to create a window.
\n
"
);
hwnd2
=
FindWindowExA
(
NULL
,
NULL
,
"MyTestClass"
,
NULL
);
todo_wine
ok
(
hwnd2
==
hwnd
,
"Failed to find test window.
\n
"
);
hwnd2
=
FindWindowExA
(
NULL
,
NULL
,
"4.3.2.1!MyTestClass"
,
NULL
);
todo_wine
ok
(
hwnd2
==
NULL
,
"Unexpected find result %p.
\n
"
,
hwnd2
);
DestroyWindow
(
hwnd
);
ret
=
UnregisterClassA
(
"MyTestClass"
,
hinst
);
ret
=
UnregisterClassA
(
"MyTestClass"
,
hinst
);
ok
(
!
ret
,
"Unexpected ret value %d.
\n
"
,
ret
);
ok
(
!
ret
,
"Unexpected ret value %d.
\n
"
,
ret
);
...
...
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