Commit 49490f85 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

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
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment