wxWidgets/tests
Andreas Falkenhahn a59901f8f1 Fix bug in CanUndo() returning true after wxTextCtrl creation
For wxMSW text controls with wxTE_RICH2 style, calling SetFont() counts
as an undoable operation, resulting in CanUndo() returning true even if
no "real" changes have been made yet.

Fix this by resetting the undo stack after creating the control using
ITextDocument::Undo().

Unfortunately this interface is not available in MinGW-32, so this fix
can't be used with it.

Closes https://github.com/wxWidgets/wxWidgets/pull/2010

Closes #17524.
2020-08-25 18:10:20 +02:00
..
any Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
archive adding an iOS build to travis (#1847) 2020-05-08 08:01:56 +02:00
arrays Do not use wxRegEx in wxCmpNaturalGeneric() 2020-08-14 19:26:33 +02:00
base64 Fix harmless warning in Base64 unit test 2017-12-09 14:15:37 +01:00
benchmarks Rebake after manifest changes 2020-07-31 01:53:43 +02:00
cmdline Suppress all -Wmissing-field-initializers in the test suite 2019-02-02 17:25:37 +01:00
config Fix harmless signed/unsigned comparison warnings in a test 2017-11-02 01:53:21 +01:00
controls Fix bug in CanUndo() returning true after wxTextCtrl creation 2020-08-25 18:10:20 +02:00
datetime Add a test for "%e" to wxDateTime::ParseFormat() 2020-05-09 23:23:31 +02:00
drawing Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
events Add wxUSE_MENUBAR build option, off by default in wxiOS 2020-07-14 18:16:59 +02:00
exec Restore wxConvAuto in wxTextInputStream used by wxExecute() 2019-04-21 20:10:30 +02:00
file Disable tests of /proc/cpuinfo in LXC containers 2020-04-07 14:30:01 +02:00
filekind Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
filename Fix bug in wxFileName::Normalize() with leading ".." 2020-06-30 23:00:06 +02:00
filesys Add test for wxMemoryFSHandler bug fixed in the parent commit 2020-05-01 18:57:54 +02:00
font Change fractional point size from float to double 2020-04-21 09:00:04 -07:00
fontmap Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
formatconverter Fix FormatConverterTestCase for MinGW and Cygwin 2017-11-25 11:13:02 +01:00
fswatcher Remove macOS workaround unnecessary any longer 2019-04-26 13:36:00 +02:00
fuzz Fix harmless warning about multiline comment in fuzzer runner 2020-05-02 03:38:28 +02:00
geometry Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
graphics Return non-zero height from GetMultiLineTextExtent("") in wxMSW 2020-07-15 02:10:49 +02:00
hashes Don't use gcc 4.8 workaround in the hash test with clang 2017-03-11 03:37:07 +01:00
html Tweak wxHtmlPrintout::Pagination unit test to pass under Travis 2019-07-19 01:40:44 +02:00
image Fix build with wxUSE_LIBTIFF==0 2019-09-19 00:39:59 +02:00
interactive adding an iOS build to travis (#1847) 2020-05-08 08:01:56 +02:00
intl Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
lists Make wxList iterators conform to input iterator requirements 2018-02-23 16:00:06 +01:00
log Use correct warning option for older gcc in wxLog test 2020-03-10 02:42:08 +01:00
longlong Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
mbconv Eliminate -Wcast-qual warnings with GCC and Clang 2020-02-02 22:50:32 -08:00
menu Add wxUSE_MENUBAR build option, off by default in wxiOS 2020-07-14 18:16:59 +02:00
misc adding an iOS build to travis (#1847) 2020-05-08 08:01:56 +02:00
net Add unit test for reading from wxSocket in a thread 2019-11-01 16:00:01 +01:00
persistence adding an iOS build to travis (#1847) 2020-05-08 08:01:56 +02:00
regex Add wxRegEx::QuoteMeta() helper 2019-08-25 12:32:51 +02:00
rowheightcache Fix memory leaks in newly added unit test 2018-12-07 04:17:16 +01:00
scopeguard Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
sizers Associate the window with the sizer in wxSizer::Replace() 2020-07-05 23:19:36 +02:00
streams Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
strings Define wxStrtox() overloads taking nullptr 2020-02-05 03:54:25 +01:00
textfile Disable tests of /proc/cpuinfo in LXC containers 2020-04-07 14:30:01 +02:00
thread Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
toplevel Disable tests requiring a WM under Xvfb 2019-07-18 17:45:20 +02:00
uris Make parsing wxURI paths more conforming to RFC 3986 2019-02-23 14:36:36 +01:00
validators Remove unneeded workarounds 2020-07-10 22:31:00 +01:00
vectors Fix off-by-one bug in wxVector::reverse_iterator::base() 2020-07-11 19:05:06 +02:00
weakref Suppress some harmless clang warnings in the test suite 2019-01-04 23:51:31 +01:00
window Get rid of an unnecessary function in wxWindow unit test 2019-10-17 22:01:36 +02:00
xlocale Check for wxXLocale availability without using wxLocale 2017-12-09 14:17:34 +01:00
xml Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
allheaders.cpp avoid using wxNO_IMPLICIT_WXSTRING_ENCODING in utf-8-only builds 2020-07-17 17:52:16 +02:00
allheaders.h Fix warning C4193: no matching pragma pop and push 2020-07-23 22:55:09 +02:00
asserthelper.cpp Display wxSize less confusingly if any tests fail 2020-07-15 02:09:42 +02:00
asserthelper.h Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
descrip.mms Update other test build files by hand for the new STC test 2019-03-20 17:07:56 -05:00
dummy.cpp Empty line at the end. 2004-11-22 15:12:29 +00:00
horse.ani add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.bmp add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.cur add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.gif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.ico add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.jpg add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pcx add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.png add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pnm add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tga add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.xpm Convert all XPM files to Unix EOLs. 2015-03-19 21:46:05 +01:00
makefile.bcc Rebake after manifest changes 2020-07-31 01:53:43 +02:00
makefile.gcc Rebake after manifest changes 2020-07-31 01:53:43 +02:00
Makefile.in Rebake after manifest changes 2020-07-31 01:53:43 +02:00
makefile.vc Rebake after manifest changes 2020-07-31 01:53:43 +02:00
runtests.bat Don't use "-t" option when running tests any longer 2017-11-02 01:53:29 +01:00
test_gui_vc10.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc11.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc12.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc14.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc15.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui.vcxproj Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
test_gui.vcxproj.filters Update other test build files by hand for the new STC test 2019-03-20 17:07:56 -05:00
test_vc7_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc7_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test_gui.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc8_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_gui.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc9_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_gui.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc10.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc11.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc12.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc14.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc15.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test.bkl avoid using wxNO_IMPLICIT_WXSTRING_ENCODING in utf-8-only builds 2020-07-17 17:52:16 +02:00
test.cpp Fix tests build with wxNO_IMPLICIT_WXSTRING_ENCODING 2020-07-17 17:52:16 +02:00
test.vcxproj Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
test.vcxproj.filters Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
testableframe.cpp Fix tests build with wxNO_IMPLICIT_WXSTRING_ENCODING 2020-07-17 17:52:16 +02:00
testableframe.h Refactor code waiting for events in the test suite 2019-01-24 22:52:46 +01:00
testdata.fc moved Unicode tests to testsuite (patch 943945) 2004-04-30 20:26:14 +00:00
testdate.h Include testdate.h before catch.hpp in unit tests 2017-12-02 14:38:19 +01:00
testfile.h Factor out TempFile class and reuse it in other tests 2017-11-05 17:28:24 +01:00
testimage.h Show only the first difference when images differ in the tests 2020-08-15 16:16:45 +02:00
testprec.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
testwindow.h Provide more information for failures involving FindFocus() 2019-07-18 17:45:20 +02:00
waitforpaint.h Don't do anything in WaitForPaint class under non-GTK platforms 2019-10-17 22:03:44 +02:00