Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
81cbf29e
Commit
81cbf29e
authored
Jul 12, 2012
by
Bruno Jesus
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Update DlgDirList tests.
Based on original patch from Christian Lupien.
parent
2686b9b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
listbox.c
dlls/user32/tests/listbox.c
+21
-0
No files found.
dlls/user32/tests/listbox.c
View file @
81cbf29e
...
...
@@ -1335,6 +1335,27 @@ static void test_listbox_dlgdir(void)
ok
(
itemCount
==
itemCount_justDrives
+
itemCount_allDirs
,
"DlgDirList() incorrectly filled the listbox!
\n
"
);
/* Test behavior when loading folders from root with and without wildcard */
strcpy
(
pathBuffer
,
"C:
\\
"
);
res
=
DlgDirList
(
hWnd
,
pathBuffer
,
ID_TEST_LISTBOX
,
0
,
DDL_DIRECTORY
|
DDL_EXCLUSIVE
);
ok
(
res
||
broken
(
!
res
)
/* NT4/W2K */
,
"DlgDirList failed to list C:
\\
folders
\n
"
);
todo_wine
ok
(
!
strcmp
(
pathBuffer
,
"*"
)
||
broken
(
!
res
)
/* NT4/W2K */
,
"DlgDirList set the invalid path spec '%s', expected '*'
\n
"
,
pathBuffer
);
strcpy
(
pathBuffer
,
"C:
\\
*"
);
res
=
DlgDirList
(
hWnd
,
pathBuffer
,
ID_TEST_LISTBOX
,
0
,
DDL_DIRECTORY
|
DDL_EXCLUSIVE
);
ok
(
res
||
broken
(
!
res
)
/* NT4/W2K */
,
"DlgDirList failed to list C:
\\
* folders
\n
"
);
ok
(
!
strcmp
(
pathBuffer
,
"*"
)
||
broken
(
!
res
)
/* NT4/W2K */
,
"DlgDirList set the invalid path spec '%s', expected '*'
\n
"
,
pathBuffer
);
/* Try loading files from an invalid folder */
SetLastError
(
0xdeadbeef
);
strcpy
(
pathBuffer
,
"C:
\\
INVALID$$DIR"
);
res
=
DlgDirList
(
hWnd
,
pathBuffer
,
ID_TEST_LISTBOX
,
0
,
DDL_DIRECTORY
|
DDL_EXCLUSIVE
);
todo_wine
ok
(
!
res
,
"DlgDirList should have failed with 0 but %d was returned
\n
"
,
res
);
todo_wine
ok
(
GetLastError
()
==
ERROR_NO_WILDCARD_CHARACTERS
,
"GetLastError should return 0x589, got 0x%X
\n
"
,
GetLastError
());
/* Now test DlgDirSelectEx() in normal operation */
/* Fill with everything - drives, directory and all plain files. */
...
...
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