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
49490f85
Commit
49490f85
authored
Apr 09, 2023
by
Jactry Zeng
Committed by
Alexandre Julliard
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Move tests of IExplorerBrowser_SetFolderSettings() to a separated…
shell32/tests: Move tests of IExplorerBrowser_SetFolderSettings() to a separated function and more tests.
parent
e80d8fe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
ebrowser.c
dlls/shell32/tests/ebrowser.c
+20
-8
No files found.
dlls/shell32/tests/ebrowser.c
View file @
49490f85
...
...
@@ -983,7 +983,6 @@ static void test_basics(void)
{
IExplorerBrowser
*
peb
;
IShellBrowser
*
psb
;
FOLDERSETTINGS
fs
;
ULONG
lres
;
EXPLORER_BROWSER_OPTIONS
flags
;
HDWP
hdwp
;
...
...
@@ -1088,13 +1087,6 @@ static void test_basics(void)
ebrowser_instantiate
(
&
peb
);
ebrowser_initialize
(
peb
);
/* SetFolderSettings */
hr
=
IExplorerBrowser_SetFolderSettings
(
peb
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got (0x%08lx)
\n
"
,
hr
);
fs
.
ViewMode
=
0
;
fs
.
fFlags
=
0
;
hr
=
IExplorerBrowser_SetFolderSettings
(
peb
,
&
fs
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got (0x%08lx)
\n
"
,
hr
);
/* SetPropertyBag */
hr
=
IExplorerBrowser_SetPropertyBag
(
peb
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got 0x%08lx
\n
"
,
hr
);
...
...
@@ -1696,6 +1688,25 @@ static void setup_window(void)
ok
(
hwnd
!=
NULL
,
"Failed to create window for tests.
\n
"
);
}
static
void
test_folder_settings
(
void
)
{
IExplorerBrowser
*
browser
;
FOLDERSETTINGS
settings
;
HRESULT
hr
;
ebrowser_instantiate
(
&
browser
);
ebrowser_initialize
(
browser
);
hr
=
IExplorerBrowser_SetFolderSettings
(
browser
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#lx.
\n
"
,
hr
);
settings
.
ViewMode
=
0
;
settings
.
fFlags
=
FWF_NONE
;
hr
=
IExplorerBrowser_SetFolderSettings
(
browser
,
&
settings
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#lx.
\n
"
,
hr
);
IExplorerBrowser_Release
(
browser
);
}
START_TEST
(
ebrowser
)
{
OleInitialize
(
NULL
);
...
...
@@ -1719,6 +1730,7 @@ START_TEST(ebrowser)
test_GetCurrentView
();
test_SetSite
();
test_InputObject
();
test_folder_settings
();
DestroyWindow
(
hwnd
);
OleUninitialize
();
...
...
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