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
a862b95b
Commit
a862b95b
authored
Sep 19, 2010
by
Michael Mc Donnell
Committed by
Alexandre Julliard
Sep 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: SHBrowseForFolder should return new folder pidl.
parent
f6f6affb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
brsfolder.c
dlls/shell32/tests/brsfolder.c
+22
-0
No files found.
dlls/shell32/tests/brsfolder.c
View file @
a862b95b
...
@@ -86,6 +86,19 @@ static void CALLBACK make_new_folder_timer_callback(HWND hwnd, UINT uMsg,
...
@@ -86,6 +86,19 @@ static void CALLBACK make_new_folder_timer_callback(HWND hwnd, UINT uMsg,
SetFocus
(
hwnd
);
SetFocus
(
hwnd
);
break
;
break
;
case
2
:
case
2
:
/*
* The test does not trigger the correct state on Windows. This results
* in the new folder pidl not being returned. The result is as
* expected if the same steps are done manually.
* Sending the down key selects the new folder again which sets the
* correct state. This ensures that the correct pidl is returned.
*/
keybd_event
(
VK_DOWN
,
0
,
0
,
0
);
break
;
case
3
:
keybd_event
(
VK_DOWN
,
0
,
KEYEVENTF_KEYUP
,
0
);
break
;
case
4
:
KillTimer
(
hwnd
,
idEvent
);
KillTimer
(
hwnd
,
idEvent
);
/* Close dialog box */
/* Close dialog box */
SendMessage
(
hwnd
,
WM_COMMAND
,
IDOK
,
0
);
SendMessage
(
hwnd
,
WM_COMMAND
,
IDOK
,
0
);
...
@@ -141,6 +154,7 @@ static void test_click_make_new_folder_button(void)
...
@@ -141,6 +154,7 @@ static void test_click_make_new_folder_button(void)
char
test_folder_path
[
MAX_PATH
];
char
test_folder_path
[
MAX_PATH
];
WCHAR
test_folder_pathW
[
MAX_PATH
];
WCHAR
test_folder_pathW
[
MAX_PATH
];
CHAR
new_folder_path
[
MAX_PATH
];
CHAR
new_folder_path
[
MAX_PATH
];
CHAR
new_folder_pidl_path
[
MAX_PATH
];
char
selected_folder
[
MAX_PATH
];
char
selected_folder
[
MAX_PATH
];
const
CHAR
title
[]
=
"test_click_make_new_folder_button"
;
const
CHAR
title
[]
=
"test_click_make_new_folder_button"
;
int
number_of_folders
=
-
1
;
int
number_of_folders
=
-
1
;
...
@@ -204,6 +218,14 @@ static void test_click_make_new_folder_button(void)
...
@@ -204,6 +218,14 @@ static void test_click_make_new_folder_button(void)
||
broken
(
!
does_folder_or_file_exist
(
new_folder_path
))
/* W95, W98, XP, W2K3 */
,
||
broken
(
!
does_folder_or_file_exist
(
new_folder_path
))
/* W95, W98, XP, W2K3 */
,
"The new folder did not get the name %s
\n
"
,
new_folder_name
);
"The new folder did not get the name %s
\n
"
,
new_folder_name
);
/* Dialog should return a pidl pointing to the new folder */
ok
(
SHGetPathFromIDListA
(
pidl
,
new_folder_pidl_path
),
"SHGetPathFromIDList failed for new folder.
\n
"
);
todo_wine
ok
(
strcmp
(
new_folder_path
,
new_folder_pidl_path
)
==
0
||
broken
(
strcmp
(
new_folder_path
,
new_folder_pidl_path
)
!=
0
)
/* earlier than Vista */
,
"SHBrowseForFolder did not return the pidl for the new folder. "
"Expected '%s' got '%s'
\n
"
,
new_folder_path
,
new_folder_pidl_path
);
/* Remove test folder and any subfolders created in this test */
/* Remove test folder and any subfolders created in this test */
shfileop
.
hwnd
=
NULL
;
shfileop
.
hwnd
=
NULL
;
shfileop
.
wFunc
=
FO_DELETE
;
shfileop
.
wFunc
=
FO_DELETE
;
...
...
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