Commit Graph

168 Commits

Author SHA1 Message Date
Zebediah Figura 9024549fe1 comdlg32/tests: Use GetTempPathA() instead of the current directory in test_extension().
For some reason, a previous test sets the current directory to
C:\windows\system32\ on my Windows 10 machine, which prompts message boxes as
the path is not writable.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-15 22:03:36 +01:00
Nikolay Sivov 3dc3d4998e comdlg32/tests: Use win_skip() instead when appropriate.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 17:11:43 +02:00
Zhiyi Zhang d07f31e376 comdlg32/tests: Fix failures on newer Windows 10.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 20:59:38 +02:00
Zhiyi Zhang 616e5fa733 comdlg32: Check invalid options in IFileDialog::SetOptions.
Fix Steam chat unable to select files.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 20:59:38 +02:00
Zhiyi Zhang b89e0e70e0 comdlg32/tests: Fix crashes.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 20:59:38 +02:00
Michael Stefaniuc 31ea5a2ab5 comdlg32/tests: Don't undefine ARRAY_SIZE().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:03:33 +02:00
Michael Stefaniuc 7b5668a6e7 include: Make ARRAY_SIZE() available in wine/test.h.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:09:17 +02:00
Nikolay Sivov 284bfc677b comdlg32/tests: Remove a macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-16 16:41:25 +01:00
Józef Kucia 1707df3da2 comdlg32: Delay OleInitialize() until after file dialog window is created.
This fixes a problem exposed by commit
f65e04770d.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Józef Kucia 5dda6495eb comdlg32/tests: Add test for OLE initialization in file dialogs.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Alistair Leslie-Hughes 3126d9ca4c comdlg32/tests: Test when a directory is passed to OpenFileName Dialog.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-27 18:06:29 +02:00
Nikolay Sivov 384ece4d7e comdlg32/itemdlg: Fix setting NULL file name (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:13 +09:00
Michael Stefaniuc db134bbd5a comdlg32/tests: Use wine_dbgstr_rect() to print RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-10 20:34:03 +09:00
Nikolay Sivov be27c23df9 comdlg32/tests: Simplify a test using todo_wine_if().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:17:47 +09:00
Alexandre Julliard 5095ee32af user32: Fix WS_EX_DLGMODALFRAME handling in AdjustWindowRect and add more tests.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 22:30:56 +09:00
André Hentschel 03bf3cac66 comdlg32/tests: Disable test which crashes on Win10.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 21:06:20 +09:00
Vincent Povirk 34d57e3621 comdlg32: Implement radio button lists in item dialog. 2015-09-14 16:47:51 +09:00
Vincent Povirk 9068f2d10c comdlg32: Return success from IFileDialogCustomize::MakeProminent. 2015-09-14 16:21:26 +09:00
Vincent Povirk 4270a8a4dc comdlg32: Return success from IFileDialog2::AddPlace. 2015-09-14 16:21:23 +09:00
Vincent Povirk c5c5163e61 comdlg32: Implement open dropdown menu. 2015-08-28 21:23:26 +09:00
Vincent Povirk d3163241af comdlg32: Partially implement IFileDialogCustomize::EnableOpenDropDown.
This builds a menu but cannot display it yet.
2015-08-19 20:19:56 +09:00
Vincent Povirk 8d8e75849f comdlg32: Implement SetControlItemState for combo boxes. 2015-08-19 20:19:56 +09:00
Vincent Povirk 068a6c7a5f comdlg32: Implement SetControlItemState for menu controls.
This required some rethinking because menus and combo boxes don't
provide a way to "hide" items, just remove them, and native always
shows items in the order they were added even when hidden and shown.
2015-08-19 20:19:56 +09:00
Vincent Povirk b206287c91 comdlg32: Implement overwrite check in item dialog. 2015-08-17 14:47:05 +09:00
Vincent Povirk 3ec84397c9 comdlg32: Add test for IFileDialogEvents::OnOverwrite. 2015-08-17 14:47:01 +09:00
Nikolay Sivov da8fd05251 comdlg32/tests: Test that different IFileDialogCustomize IIDs return same pointer. 2015-08-03 10:57:30 +02:00
Joachim Priesner c5ad37baf0 comdlg32: File dialog: Append multi-part extensions like .abc.def. 2015-06-05 14:32:47 +09:00
Qian Hong 0380ee031c comdlg32/tests: Fixed memory leak (Valgrind). 2014-11-20 22:33:45 +09:00
Francois Gouget 0dd5cb1cef Assorted spelling fixes. 2014-09-29 10:36:36 +02:00
David Hedberg 7b7f4c613f comdlg32: ::SetFileTypeIndex and ::GetFileTypeIndex uses a one-based index. 2014-09-04 13:44:51 +02:00
Francois Gouget e9e76d823f comdlg32/tests: Add a trailing '\n' to an ok() call. 2014-09-04 13:37:21 +02:00
David Hedberg befe0f7b69 comdlg32: Implement calling IFileDialogEvents::OnTypeChange(). 2014-09-03 21:21:58 +02:00
David Hedberg 5f50864811 comdlg32/tests: Add some IFileDialogEvents tests. 2014-09-03 21:21:57 +02:00
David Hedberg aac6255d46 comdlg32: Implement IFileDialogCustomize::StartVisualGroup() and ::EndVisualGroup(). 2014-08-25 15:55:29 +02:00
Frédéric Delanoy ce1175149b comdlg32/tests: Use BOOL type where appropriate. 2014-02-25 14:21:50 -06:00
Frédéric Delanoy a5f20b3173 comdlg32/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-28 11:44:24 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Frédéric Delanoy e5d954096b comdlg32/tests: Use BOOL type where appropriate. 2013-10-23 11:22:25 +02:00
Nikolay Sivov e011d0e3c7 comdlg32/tests: Compile with -D__WINESRC__. 2013-10-15 17:43:41 +02:00
Frédéric Delanoy 2bbe7a330c comdlg32/tests: Use BOOL type where appropriate. 2013-10-07 13:32:06 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Detlef Riekenberg 8e56b8332e comdlg32/tests: Handle result from broken drivers. 2013-08-27 21:30:03 +02:00
Detlef Riekenberg 9a7d510ccb comdlg32/tests: Limit the number of copies to avoid a test hang. 2013-08-26 17:05:32 +02:00
Nikolay Sivov f92caf5ba7 comdlg32: Store client GUID with SetClientGuid(). 2013-06-12 12:10:41 +02:00
Francois Gouget fb9d76816a comdlg32/tests: Fix compilation on systems that don't support nameless structs or unions. 2013-05-13 11:07:28 +02:00
Dmitry Timoshkov afb8e0296f comdlg32: Add a test for nCopies/dmCopies returned by PrintDlg. 2013-05-08 12:53:27 +02:00
Dmitry Timoshkov b73323d4e2 comdlg32: Add an interactive PrintDlgEx test. 2013-04-09 11:59:47 +02:00
Detlef Riekenberg 1868fe651f comdlg32/tests: Use win8 failure-code as default result. 2012-12-17 20:31:12 +01:00
Michael Stefaniuc 098fd25009 comdlg32/tests: Fix the prototype of callback functions. 2012-11-20 19:47:03 +01:00
Huw Davies 37975ba776 comdlg32/tests: Explicitly set the structure size to the nt40 version size. 2012-09-21 17:07:47 +02:00