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
58e5525a
Commit
58e5525a
authored
May 17, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Add more tests for IShellWindows.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c169263b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
shelldispatch.c
dlls/shell32/tests/shelldispatch.c
+27
-0
No files found.
dlls/shell32/tests/shelldispatch.c
View file @
58e5525a
...
...
@@ -1018,6 +1018,7 @@ static void test_ShellWindows(void)
{
IShellWindows
*
shellwindows
;
LONG
cookie
,
cookie2
,
ret
;
ITEMIDLIST
*
pidl
;
IDispatch
*
disp
;
VARIANT
v
,
v2
;
HRESULT
hr
;
...
...
@@ -1061,9 +1062,35 @@ todo_wine {
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
cookie2
!=
0
&&
cookie2
!=
cookie
,
"got %d
\n
"
,
cookie2
);
}
pidl
=
ILCreateFromPathA
(
"C:
\\
"
);
V_VT
(
&
v
)
=
VT_ARRAY
|
VT_UI1
;
V_ARRAY
(
&
v
)
=
SafeArrayCreateVector
(
VT_UI1
,
0
,
ILGetSize
(
pidl
));
memcpy
(
V_ARRAY
(
&
v
)
->
pvData
,
pidl
,
ILGetSize
(
pidl
));
VariantInit
(
&
v2
);
hr
=
IShellWindows_FindWindowSW
(
shellwindows
,
&
v
,
&
v2
,
SWC_EXPLORER
,
&
ret
,
0
,
&
disp
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
!
ret
,
"Got window %#x.
\n
"
,
ret
);
ok
(
!
disp
,
"Got IDispatch %p.
\n
"
,
&
disp
);
hr
=
IShellWindows_OnNavigate
(
shellwindows
,
cookie
,
&
v
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IShellWindows_FindWindowSW
(
shellwindows
,
&
v
,
&
v2
,
SWC_EXPLORER
,
&
ret
,
0
,
&
disp
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
ret
==
(
LONG
)(
LONG_PTR
)
hwnd
,
"Expected %p, got %#x.
\n
"
,
hwnd
,
ret
);
ok
(
!
disp
,
"Got IDispatch %p.
\n
"
,
&
disp
);
hr
=
IShellWindows_Revoke
(
shellwindows
,
cookie
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IShellWindows_FindWindowSW
(
shellwindows
,
&
v
,
&
v2
,
SWC_EXPLORER
,
&
ret
,
0
,
&
disp
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
!
ret
,
"Got window %#x.
\n
"
,
ret
);
ok
(
!
disp
,
"Got IDispatch %p.
\n
"
,
&
disp
);
hr
=
IShellWindows_Revoke
(
shellwindows
,
cookie2
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
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