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
008099f6
Commit
008099f6
authored
Aug 24, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Some additional tests for IShellBrowser.
parent
73100ce6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
3 deletions
+91
-3
ebrowser.c
dlls/shell32/tests/ebrowser.c
+91
-3
No files found.
dlls/shell32/tests/ebrowser.c
View file @
008099f6
...
...
@@ -184,9 +184,11 @@ static void test_SB_misc(void)
{
IExplorerBrowser
*
peb
;
IShellBrowser
*
psb
;
IUnknown
*
punk
;
HRESULT
hr
;
HWND
retHwnd
;
LONG
lres
;
LRESULT
lres
;
LONG
ref
;
ebrowser_instantiate
(
&
peb
);
hr
=
IExplorerBrowser_QueryInterface
(
peb
,
&
IID_IShellBrowser
,
(
void
**
)
&
psb
);
...
...
@@ -227,9 +229,95 @@ static void test_SB_misc(void)
hr
=
IShellBrowser_SetMenuSB
(
psb
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"got (0x%08x)
\n
"
,
hr
);
/***** Before EB::Initialize *****/
/* ::GetWindow */
retHwnd
=
(
HWND
)
0xDEADBEEF
;
hr
=
IShellBrowser_GetWindow
(
psb
,
&
retHwnd
);
ok
(
hr
==
E_FAIL
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
retHwnd
==
(
HWND
)
0xDEADBEEF
,
"HWND overwritten
\n
"
);
todo_wine
{
/* ::SendControlMsg */
lres
=
0xDEADBEEF
;
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_STATUS
,
0
,
0
,
0
,
&
lres
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
lres
==
0
,
"lres was %ld
\n
"
,
lres
);
lres
=
0xDEADBEEF
;
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_TOOLBAR
,
TB_CHECKBUTTON
,
FCIDM_TB_SMALLICON
,
TRUE
,
&
lres
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
lres
==
0
,
"lres was %ld
\n
"
,
lres
);
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_STATUS
,
0
,
0
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_TREE
,
0
,
0
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_PROGRESS
,
0
,
0
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
}
/* ::QueryActiveShellView */
hr
=
IShellBrowser_QueryActiveShellView
(
psb
,
(
IShellView
**
)
&
punk
);
ok
(
hr
==
E_FAIL
,
"got (0x%08x)
\n
"
,
hr
);
/* Initialize ExplorerBrowser */
ebrowser_initialize
(
peb
);
/***** After EB::Initialize *****/
/* ::GetWindow */
hr
=
IShellBrowser_GetWindow
(
psb
,
&
retHwnd
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
GetParent
(
retHwnd
)
==
hwnd
,
"The HWND returned is not our child.
\n
"
);
todo_wine
{
/* ::SendControlMsg */
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_STATUS
,
0
,
0
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
lres
=
0xDEADBEEF
;
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_TOOLBAR
,
0
,
0
,
0
,
&
lres
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
lres
==
0
,
"lres was %ld
\n
"
,
lres
);
lres
=
0xDEADBEEF
;
hr
=
IShellBrowser_SendControlMsg
(
psb
,
FCW_STATUS
,
0
,
0
,
0
,
&
lres
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
lres
==
0
,
"lres was %ld
\n
"
,
lres
);
lres
=
0xDEADBEEF
;
hr
=
IShellBrowser_SendControlMsg
(
psb
,
1234
,
0
,
0
,
0
,
&
lres
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
lres
==
0
,
"lres was %ld
\n
"
,
lres
);
/* Returns S_OK */
hr
=
IShellBrowser_SetStatusTextSB
(
psb
,
NULL
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hr
=
IShellBrowser_ContextSensitiveHelp
(
psb
,
FALSE
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hr
=
IShellBrowser_EnableModelessSB
(
psb
,
TRUE
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hr
=
IShellBrowser_SetToolbarItems
(
psb
,
NULL
,
1
,
1
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
}
hr
=
IShellBrowser_QueryActiveShellView
(
psb
,
(
IShellView
**
)
&
punk
);
ok
(
hr
==
E_FAIL
,
"got (0x%08x)
\n
"
,
hr
);
IShellBrowser_Release
(
psb
);
lres
=
IExplorerBrowser_Release
(
peb
);
ok
(
lres
==
0
,
"Got %d
\n
"
,
lres
);
IExplorerBrowser_Destroy
(
peb
);
ref
=
IExplorerBrowser_Release
(
peb
);
ok
(
ref
==
0
,
"Got %d
\n
"
,
ref
);
}
static
void
test_initialization
(
void
)
...
...
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