wxwidgets/tests
Artur Wieczorek 6674ce7fe6 Apply workaround to fix drawing glitches caused by
wxGraphicsContext::ResetClip (wxOSX)

Using native CGContextResetClip() to reset the clip causes some
drawing glitches - especially with drawing text with CT - see
https://github.com/wxWidgets/wxWidgets/issues/22629#issuecomment-1399554002
For the time being we have to revert to the previous code
with emulated resetting based on restoring the graphics context state.
We also have to disable a unit tests that fails with emulated
resetting the clip.

See #22629.
2023-01-31 22:32:41 +01:00
..
any Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
archive Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
arrays Add tests for direction of search in arrays 2022-01-15 21:02:22 +02:00
base64 Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
benchmarks Rebake after the copyright year update 2023-01-03 18:39:06 +01:00
cmdline Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
config Compile wxConfig unit tests as part of non-GUI test too 2021-03-13 15:15:40 +01:00
controls Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
datetime Handle 'T' separator in wxDateTime::ParseDateTime() 2022-11-30 02:23:37 +01:00
drawing Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
events Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
exec Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
file Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
filekind Initialize unused variable in FileKindTestCase to avoid a warning 2022-06-29 22:10:55 +02:00
filename Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
filesys Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
font Avoid calling wxFont::GetPixelSize() under wxOSX, it's buggy 2023-01-14 17:26:22 +01:00
fontmap Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
formatconverter Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
fswatcher Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
fuzz Fix harmless warning about multiline comment in fuzzer runner 2020-05-02 03:38:28 +02:00
geometry Add operator/(wxSize, double) 2021-11-20 22:06:28 +01:00
graphics Apply workaround to fix drawing glitches caused by 2023-01-31 22:32:41 +01:00
hashes Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
html Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
image Disable test for loading images using wxURL 2022-12-31 19:21:33 +01:00
interactive Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
intl Give more information if wxLocale::Default unit test fails 2022-12-31 20:32:47 +01:00
lists Remove wxUSE_STD_STRING and wxUSE_STD_CONTAINERS_COMPATIBLY 2022-11-17 00:40:50 +01:00
log Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
longlong Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
mbconv Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
menu Enable radio check test for wxQt 2022-11-24 14:15:02 +01:00
misc Consistently include trailing NUL in wxMSW wxTextDataObject size 2022-12-06 02:25:44 +01:00
net Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
persistence Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
regex Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +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 Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
streams Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
strings Remove code restoring errno in StringTestCase::Format() 2023-01-07 16:50:28 +01:00
textfile Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
thread Remove wxTLS_XXX() macros from wx itself 2022-10-26 03:31:54 +02:00
toplevel Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
uris Switch to using detectportal.firefox.com for wxURL HTTP test 2022-12-31 17:47:47 +01:00
validators Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
weakref Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +02:00
window Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept 2022-10-15 18:10:45 +02:00
xlocale Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
xml Remove "xrc" tag from XRC test disabled by default 2023-01-27 02:14:57 +00:00
allheaders.cpp Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
allheaders.h Remove memory debugging/tracing support and all related options 2023-01-05 21:41:38 +01:00
asserthelper.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
asserthelper.h
descrip.mms Remove wxVector unit test 2022-10-11 00:48:00 +02: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 Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
Makefile.in Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
makefile.vc Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
README.md Explain how to build the tests 2021-11-12 14:21:41 +01:00
runtests.bat
test.bkl Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
test.cpp Optionally return Wine version from wxIsRunningUnderWine() 2022-12-01 01:30:27 +01:00
test.vcxproj Update to Catch v2 2022-10-18 18:39:13 +02:00
test.vcxproj.filters Remove wxVector unit test 2022-10-11 00:48:00 +02:00
test_gui.vcxproj Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
test_gui.vcxproj.filters Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
test_gui_vc14.sln Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
test_gui_vc15.sln Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
test_gui_vc16.sln Execute automated tests for wxPropertyGrid 2023-01-30 17:28:17 +01:00
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
testableframe.cpp Use nullptr instead of NULL in the code and documentation 2022-10-18 01:25:25 +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 Stop using Catch::toString() 2022-10-18 18:39:13 +02:00
testprec.h Improve implementation of WX_ASSERT_FAILS_WITH_ASSERT_MESSAGE 2022-11-26 16:55:09 +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.