wxWidgets/tests
Vadim Zeitlin f4370376b6 Fix bugs in the recently added wxDateTime::DiffAsDateSpan().
Correct the test for negative spans less than a month and use the correct
month for computing the number of days in it.

Also add unit tests for problematic cases.

Closes #14704.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-04 22:48:30 +00:00
..
any No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
archive Remove support for MetroWerks CodeWarrior compiler. 2012-04-05 18:40:11 +00:00
arrays Test correctness of wxArray::Index() with bFromEnd=true. 2011-11-05 15:20:11 +00:00
base64 No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
benchmarks Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
cmdline Fix parsing of negated long options in wxCmdLineParser. 2011-07-21 13:49:55 +00:00
config Fix crash in wxFileConfig when deleting last entry of the root group. 2012-04-28 22:25:19 +00:00
controls Don't generate events from wxSpinCtrl::SetRange() in wxMSW. 2012-08-15 23:34:10 +00:00
datetime Fix bugs in the recently added wxDateTime::DiffAsDateSpan(). 2012-10-04 22:48:30 +00:00
events fake paint events don't work with wxGTK3 either 2012-07-11 07:32:10 +00:00
exec Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2). 2012-03-04 20:31:42 +00:00
file Fix fatal bug in the recently added wxFile::ReadAll(). 2012-10-04 22:47:44 +00:00
filekind No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
filename Fix unit tests compilation in STL build. 2012-07-10 23:50:52 +00:00
filesys No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
font Handle underlined and strikethrough attributes in wxGTK native font info. 2012-09-15 23:17:12 +00:00
fontmap No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
formatconverter No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
fswatcher Disable the recently added wxFileSystemWatcher unit case under Windows. 2012-07-14 20:10:54 +00:00
geometry Document and test behaviour of wxRegion methods when it is invalid. 2011-10-18 21:56:48 +00:00
graphics Several fixes for wxAffineMatrix2D transformations. 2012-05-25 09:48:09 +00:00
hashes No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
html Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events. 2012-03-11 14:32:24 +00:00
image Added alpha saving support to TIFF image handler. 2011-08-29 01:13:06 +00:00
interactive Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2). 2012-03-04 20:31:42 +00:00
intl Fix unit test French locate checks for glibc >= 2.8. 2012-02-20 10:59:37 +00:00
lists No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
log No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
longlong No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
mbconv No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
menu Reuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand(). 2012-04-05 22:27:32 +00:00
misc Add missing header to fix MiscGUIFuncsTestCase compilation. 2012-10-03 07:58:56 +00:00
net Add per-direction wxSocket wait flags and byte counters. 2012-09-30 22:21:44 +00:00
regex No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
scopeguard No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
sizers Respect item max sizes in wxBoxSizer. 2012-08-15 23:34:27 +00:00
streams Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2). 2012-03-04 20:31:42 +00:00
strings Fix bugs in parsing wxLongLong values starting with zeroes. 2012-08-30 20:22:17 +00:00
textfile No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
thread No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
toplevel No changes, just cleanup TopLevelWindowTestCase unit test a little. 2012-03-04 00:29:14 +00:00
uris No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
validators Add IsAutomaticTest() function to the unit tests. 2012-06-01 16:21:06 +00:00
vectors No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
weakref No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
window Honour window min and max sizes in wxWindow::GetBestSize(). 2012-08-15 23:34:18 +00:00
xlocale Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2). 2012-03-04 20:31:42 +00:00
xml No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
asserthelper.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
asserthelper.h Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
descrip.mms Fixes for OpenVMS on IA64 2011-09-29 13:47:38 +00:00
dummy.cpp
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 add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
makefile.bcc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.gcc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
Makefile.in Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.vc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.wat Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
runtests.bat adds proper detection of tests success/failure; clear that "error level" != "return code" 2009-03-23 14:57:10 +00:00
test_printfbench.dsp link with wininet.lib under Windows to avoid linking errors in wxUSE_URL_NATIVE==1 build (#10338) 2009-01-15 13:33:51 +00:00
test_test_gui.dsp Update version to 2.9.4 in version.bkl too and rebake everything. 2011-12-18 14:35:50 +00:00
test_test.dsp Rebake everything using bakefile 0.2.9. 2011-02-03 15:02:45 +00:00
test_vc7_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc7_test_gui.vcproj Update version to 2.9.4 in version.bkl too and rebake everything. 2011-12-18 14:35:50 +00:00
test_vc7_test.vcproj Link console programs with PNG library in monolithic build. 2011-02-05 20:25:09 +00:00
test_vc8_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc8_test_gui.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
test_vc8_test.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
test_vc9_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc9_test_gui.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
test_vc9_test.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
test.bkl Use PCH in the tests in all Windows ports and not only when using wxMSW. 2012-04-29 23:22:28 +00:00
test.cpp No changes, just suppress an unused variable warning. 2012-06-30 23:41:33 +00:00
testableframe.cpp Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events. 2012-03-11 14:32:24 +00:00
testableframe.h Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events. 2012-03-11 14:32:24 +00:00
testdata.fc
testdate.h Add wxDateTime::DiffAsDateSpan(). 2012-10-01 09:55:05 +00:00
testfile.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
testimage.h Added alpha saving support to TIFF image handler. 2011-08-29 01:13:06 +00:00
testprec.h Add IsAutomaticTest() function to the unit tests. 2012-06-01 16:21:06 +00:00