Commit Graph

611 Commits

Author SHA1 Message Date
Vadim Zeitlin
56873923f3 extract (and expand and clean up and document) the header window implementation used inside the generic wxDataViewCtrl in a separate wxHeaderCtrl class which could be reused in (generic) wxListCtrl and, most importantly, wxGrid later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-03 21:53:10 +00:00
Vadim Zeitlin
80cc5fc7ad document column reordering in wxListCtrl; fix confusion between GetColumnOrder() and GetColumnIndexFromOrder() doing this discovered; show the use of these methods in the sample and added a unit test for them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-26 19:11:22 +00:00
Vadim Zeitlin
b245cbc587 fix (harmless) VC7 warnings about auto_ptr assignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-23 00:09:34 +00:00
Vadim Zeitlin
e5a0bdfbaf use TCP for this benchmark under Windows too (and not DDE)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-22 14:34:04 +00:00
Vadim Zeitlin
e4e7977701 no need to disable DoTestSwap() for VC6 any more with latest wx/cppunit.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-22 14:33:09 +00:00
Vadim Zeitlin
a779d8091c fix comparison in Normalize() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-19 11:52:04 +00:00
Vadim Zeitlin
93a800a95e minor icc warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-19 09:55:27 +00:00
Vadim Zeitlin
6d9407fec4 fix compilation with cppunit 1.9 (which doesn't have stdCOut()) and some harmless warnings (which probably were fixed in newer cppunit version too)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-18 15:51:09 +00:00
Vadim Zeitlin
afd9046882 add command line options for displaying the test name and time taken by them (closes #10156)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-05 10:08:19 +00:00
Vadim Zeitlin
68baf10e3f disable the test under Windows as it hangs and prevents buildbot from working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-04 12:15:24 +00:00
Vadim Zeitlin
f9bb777f88 define wxHAS_CONFIG_TEMPLATE_RW if template wxConfig::Read/Write() are available; use it to exclude the calls to these functions from the test to fix VC6 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 13:36:08 +00:00
Vadim Zeitlin
097a92e228 blind fix for yet another VC6 compilation error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 01:11:59 +00:00
Vadim Zeitlin
527587d347 really fix VC6 compilation of all testsi (without breaking VC9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 00:31:16 +00:00
Vadim Zeitlin
8112fbf0d7 undo the previous change, it's not needed any more now that we overload assertEquals(int,long) too and it broke VC6 compilation again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 22:30:16 +00:00
Vadim Zeitlin
94bc35dc33 explicitly cast wxUniCharRef to char inside CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:59:34 +00:00
Vadim Zeitlin
9ea7a5ddb7 yet another compilation fix, this time for VC9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 18:05:59 +00:00
Vadim Zeitlin
fecddbaa5d disable a correct test which VC6 just doesn't want to grok (hopefully last buildbot error?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 23:23:07 +00:00
Vadim Zeitlin
10d256d6c8 attempting to fix VC6 compilation error from buildbot logs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 16:54:41 +00:00
Vadim Zeitlin
0c61ab6f66 add WX_CLEAR_ARRAY test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 12:33:34 +00:00
Vadim Zeitlin
7ee34f2be1 no changes, just use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 12:25:32 +00:00
Vadim Zeitlin
438febca6e don't sleep too long to avoid missing the timers; added a simple test for timer events processing in console apps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 22:04:42 +00:00
Vadim Zeitlin
506e9b7ed2 rebaked using bakefile 0.2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:40:51 +00:00
Vadim Zeitlin
6c58cd78a5 use hex escapes instead of 8 bit characaters (#10105)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-23 13:08:02 +00:00
Vadim Zeitlin
3e356d4144 add a simple benchmark for wx and iconv converters benchmarking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:24:24 +00:00
Vadim Zeitlin
51725fc0c2 reverted the change of r56246 and keep the old behaviour of MB2WC/WC2MB; document it even more clearly and correct code using these functions incorrectly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 11:31:22 +00:00
Vadim Zeitlin
65669e3152 add very simple (but already exposing many problems) wxIPC benchmark
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:35:03 +00:00
Vadim Zeitlin
fa8825a01d allow specifying initialization and cleanup functions for benchmarks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:34:47 +00:00
Václav Slavík
c39058f631 added a test to check if wxHtmlWindow::SelectionToText() inserts \n characters correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 15:55:25 +00:00
Vadim Zeitlin
139ea30e15 added -1 (a.k.a. --single) command line option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 13:34:02 +00:00
Vadim Zeitlin
b9f9065e28 fix the bug in insert(end(), value) and added unit test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 09:04:52 +00:00
Vadim Zeitlin
ebfa7ceaa4 make the default value of numeric parameter 0, not 1, to make testing for it more natural; also allow passing string parameter to the benchmarks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 22:25:51 +00:00
Vadim Zeitlin
7b9b06e323 create local event loop for the operations which need it; test reading with wxSOCKET_BLOCK flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:55:56 +00:00
Vadim Zeitlin
6b6b233ac0 wxUSE_STL compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:27:49 +00:00
Vadim Zeitlin
3afc646cae don't allocate a too big buffer on stack
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:57:19 +00:00
Vadim Zeitlin
62fb86a515 add simple (and disabled by default) wxSocket client test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:45:29 +00:00
Vadim Zeitlin
ea6319cb38 don't replace . and .. with the corresponding directoties names in GetLongPath() as this breaks the normalization of file names without wxPATH_NORM_DOTS flag (#9814)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 15:15:32 +00:00
Vadim Zeitlin
8a493b67ac fix off by one bug in the buffer size (fixes #10039)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 14:51:45 +00:00
Vadim Zeitlin
6221357baa add a unit test for reading non existent values (to check for #10030)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 12:52:43 +00:00
Vadim Zeitlin
a08711325b fix C strings comparison in LoadSave() test in STL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 21:12:51 +00:00
Vadim Zeitlin
e767076e80 just return false instead of crashing if the document contents can't be converted to the target encoding (#10064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 16:13:53 +00:00
Vadim Zeitlin
4c493e0bc5 add a very simple test for Load/Save()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 15:37:50 +00:00
Vadim Zeitlin
252ead2e54 fix bug in the test in STL build (where std::vector uses operator=() and not copy ctor to copy objects around, at least with g++)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 09:33:13 +00:00
Vadim Zeitlin
7da8bfe30d add VC9 project files (closes #9960)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 16:42:00 +00:00
Vadim Zeitlin
8ece421c6c rebaked makefiles with 0.2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 15:44:49 +00:00
Vadim Zeitlin
c565abe1c5 fix After{First,Last}() to work for strings with non-ASCII characters in UTF-8 build and added unit tests for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:08:44 +00:00
Vadim Zeitlin
5fed01a943 fix VC9 compilation: FileNameInfo identifier conflicts with an enum name in the SDK it uses, so rename it to TestFileNameInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 09:20:10 +00:00
Vadim Zeitlin
b5f85206a9 fix ParseFormat("%d") to set the date it finds (#10002)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 15:27:08 +00:00
Vadim Zeitlin
c4dbb95303 fix parsing of IP literals in URIs, added test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:27:10 +00:00
Vadim Zeitlin
c3a65218fb introduced more convenient and readable URI_ASSERT_XXX_EQUAL() macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 14:08:01 +00:00
Vadim Zeitlin
fbfd8b1ace compilation fix for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 17:33:41 +00:00