wxWidgets/tests
Vadim Zeitlin 4fab20cca1 Return true from AddCatalog() if message ID matches language
When the original messages language matches the language of the locale
being used, these strings can be used directly and so AddCatalog()
should still return true for them but it didn't do it any more after the
changes of 94b1a17aeb (Add AddAvailableCatalog() and use it in
AddStdCatalog(), 2023-09-30).

See #18227.

Closes #24019.

Closes #24037.

(cherry picked from commit 39079cbf237e1a93a2acd97280cc2845a811f819)
2023-11-07 15:13:31 +01:00
..
any Fix wrong conversion of negative 64-bit wxAny to wxVariant 2022-07-04 01:19:50 +02:00
archive Remove unnecessary c_str() from wx var arg functions arguments 2021-07-04 15:08:13 +01:00
arrays Add support for initializer_list to wx dynamic arrays 2023-11-07 02:23:58 +01:00
base64 Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
benchmarks Update version to 3.2.4 2023-10-10 16:02:59 +02:00
cmdline Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
config Compile wxConfig unit tests as part of non-GUI test too 2021-03-13 15:15:40 +01:00
controls Fix wxTreeCtrl::ScrollTo() with hidden root item in wxMSW 2023-05-10 23:47:04 +02:00
datetime Handle 'T' separator in wxDateTime::ParseDateTime() 2022-11-28 22:41:56 +01:00
drawing Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
events Make Connect() work with overloaded event handlers in C++17 2020-11-21 20:52:13 +01:00
exec Stop using xclock in wxExecute() unit test 2022-06-30 14:07:08 +02:00
file Fix using *.* and similar patterns in wxDir under MSW 2023-10-06 17:16:49 +02:00
filekind Initialize unused variable in FileKindTestCase to avoid a warning 2022-06-29 22:10:55 +02:00
filename Fix double negatives used with 'neither' in docs and comments 2022-08-19 16:30:25 +02:00
filesys Replace old Trac links with GitHub ones 2022-01-13 16:52:58 +01:00
font Give more information if wxFont unit tests fail 2022-04-18 14:29:53 +02:00
fontmap Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
formatconverter Avoid harmless unused parameter warning in non-Unicode build 2023-05-04 01:22:07 +02:00
fswatcher Fix double negatives used with 'neither' in docs and comments 2022-08-19 16:30:25 +02:00
fuzz
geometry Add operator/(wxSize, double) 2021-11-20 22:06:28 +01:00
graphics Remove the size parameter of wxBitmapBundle::GetConsensusSizeFor() 2022-06-05 03:23:41 +02:00
hashes Avoid using invalid addresses in HashesTestCase 2022-08-14 18:19:01 +02:00
html Fix memory leaks in wxHtmlParser unit test 2020-10-19 13:54:19 +02:00
image Fix lack of unsharing in wxImage::Clear() 2023-05-27 23:27:10 +02:00
interactive Implement wxFSVolume for macOS 2021-12-01 23:35:19 +01:00
intl Return true from AddCatalog() if message ID matches language 2023-11-07 15:13:31 +01:00
lists Avoid using invalid addresses in ListsTestCase too 2022-08-14 18:19:01 +02:00
log Really support milliseconds in wxLog 2021-01-15 14:55:06 +01:00
longlong Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
mbconv Extract wxLocaleSetter from the tests into a private header 2021-08-07 18:04:22 +02:00
menu Disable wxMenu unit test requiring Unicode in non-Unicode build 2023-05-04 18:46:42 +02:00
misc Fix DynamicLibrary::Load() test for less common platforms 2023-08-24 03:40:12 +02:00
net Make wxSocket::Peek() work with UDP too 2023-07-03 13:55:34 +02:00
persistence Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
regex Fix double negatives used with 'neither' in docs and comments 2022-08-19 16:30:25 +02:00
rowheightcache Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
scopeguard Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
sizers Fix wxFLEX_GROWMODE_ALL in wxFlexGridSizer with proportions 2023-02-14 00:47:40 +01:00
streams Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
strings Skip tests failing without Unicode in string unit test 2023-05-04 18:36:24 +02:00
textfile Remove checks for LXC containers used under Travis CI only 2021-07-15 19:55:01 +02:00
thread Suppress harmless MSVC warnings in atomic unit test 2022-05-23 15:05:47 +01:00
toplevel Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
uris Switch to using detectportal.firefox.com for wxURL HTTP test 2023-01-03 18:49:04 +01:00
validators Relax checks on character entry in numeric validators 2023-07-03 02:43:58 +02:00
vectors Add trivial wxVectorContains() helper 2020-11-16 16:48:47 +01:00
weakref Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
window Add test of setting size of the window client area 2021-08-08 21:42:38 +02:00
xlocale Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
xml Test environment variables in XRC bitmap paths 2022-02-02 10:56:51 +03:00
allheaders.cpp Fix clang warnings about truncating 64 bit ints to 32 bits 2023-02-27 16:17:38 +01:00
allheaders.h Test wxPropertyGrid headers compilation without implicit wxString conversion 2022-05-30 19:06:37 +02:00
asserthelper.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
asserthelper.h
descrip.mms workaround for which is probably a compiler-bug on OpenVMS-AXP 2021-01-07 09:47:46 +01:00
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.svg Add wxBitmapBundle::FromSVGFile() helper 2021-11-29 12:55:22 +00:00
horse.tga
horse.tif
horse.xpm
makefile.gcc Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
Makefile.in Update version to 3.2.4 2023-10-10 16:02:59 +02:00
makefile.vc Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
README.md Explain how to build the tests 2021-11-12 14:21:41 +01:00
runtests.bat
test_gui_vc10.sln
test_gui_vc11.sln
test_gui_vc12.sln
test_gui_vc14.sln
test_gui_vc15.sln
test_gui_vc16.sln Add MSVS 2019 solutions for the minimal sample and the tests 2021-08-24 17:12:06 +02:00
test_gui.vcxproj Also remove mentions of amd64_dpi_aware_pmv2.manifest from the manually maintained MSVS projects 2021-12-17 22:00:42 +01:00
test_gui.vcxproj.filters Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
test_vc8_test_allheaders.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc8_test_drawing.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc8_test_drawingplugin.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc8_test_gui.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc8_test.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc9_test_allheaders.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc9_test_drawing.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc9_test_drawingplugin.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc9_test_gui.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc9_test.vcproj Update version to 3.2.0 and rebake and rerun autoconf 2022-06-21 00:54:26 +02:00
test_vc10.sln
test_vc11.sln
test_vc12.sln
test_vc14.sln
test_vc15.sln
test_vc16.sln Add MSVS 2019 solutions for the minimal sample and the tests 2021-08-24 17:12:06 +02:00
test.bkl Remove wx.ico from test bakefile and makefiles 2022-06-09 01:01:06 +02:00
test.cpp Add wxCHECK_CXX_STD() and use it to test for C++17 and C++20 2022-05-11 16:57:18 +01:00
test.vcxproj Also remove mentions of amd64_dpi_aware_pmv2.manifest from the manually maintained MSVS projects 2021-12-17 22:00:42 +01:00
test.vcxproj.filters Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
testableframe.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
testableframe.h
testdata.conf Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
testdate.h
testfile.h
testimage.h Fix using const char* and wxString in ternary operator 2022-01-03 21:20:23 +01:00
testprec.h Show debug log messages on the console in the test when enabled 2022-04-14 17:37:32 +01:00
testwindow.h Make it simpler to write useful tests comparing windows 2020-09-21 15:54:42 +02:00
waitforpaint.h Simplify WaitForPaint::YieldUntilPainted() 2021-01-31 01:33:30 +01:00

Tests

This directory contains tests for the library and is mostly useful for the library developers. See the samples subdirectory for the examples that are more useful to the application developers using the library.

If you do work on the library itself and would like to modify an existing or add a new test, please see docs/contributing/how-to-write-unit-tests.md for more information.

This file also contains the instructions for running the tests if you'd just like to do it to confirm that the library works correctly.