Commit Graph

491 Commits

Author SHA1 Message Date
Václav Slavík
e835292782 regenerated all trunk makefiles with bakefile-0.2.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-02 14:48:50 +00:00
Vadim Zeitlin
24671bc900 define wxHAS_RAW_BITMAP (instead of inconsistenly named wxHAVE_RAW_BITMAP) and use it to avoid test build error under ports not supporting raw bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 18:42:33 +00:00
Vadim Zeitlin
14b4f6fcc0 ReadBig() should be defined in ANSI build too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 16:59:10 +00:00
Vadim Zeitlin
7ace5fd8e0 include wx/crt.h to get wxUSE_WXVSNPRINTF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 16:58:17 +00:00
Vadim Zeitlin
a669640b7a really fix the test to work in any time zone and with or without DST
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 15:44:16 +00:00
Vadim Zeitlin
cf9f673789 fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 14:37:26 +00:00
Vadim Zeitlin
77fa3d8243 add a special macro for comparing time_t values to fix unit test compilation on platforms with 64 bit time_t (such as FreeBSD 6.2 apparently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 13:01:59 +00:00
Vadim Zeitlin
c4e2528835 fix time zone conversion test to work in any time zone, not just GMT+1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 12:58:43 +00:00
Vadim Zeitlin
ca8cf4fffb added wxTextOutputStream::Flush(): this is necessary with the stateful encodings, such as UTF-7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 03:09:25 +00:00
Vadim Zeitlin
c226adeedb use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT to have more details when the test fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 23:08:57 +00:00
Vadim Zeitlin
04080f208e make test failure in TestStreamDecoder more informative
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 02:46:22 +00:00
Vadim Zeitlin
78648f606d use more informative CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:57:25 +00:00
Vadim Zeitlin
9fc7a1d276 disable test using network by default as it's not available on some of buildbot machines and so makes the test fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 23:38:56 +00:00
Vadim Zeitlin
093315a121 fix test failures: the expected results were incorrect, UTF-8 build uses %lc for characters and not %s
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 23:38:13 +00:00
Vadim Zeitlin
788257c0a4 make assertion failure messages more useful by using WX_ASSERT_STR_EQUAL instead of just CPPUNIT_ASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 22:57:32 +00:00
Vadim Zeitlin
05b5a45f96 don't run vsnprintf() test if we're using the system version, there is nothing we can do about its failures then anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 22:11:51 +00:00
Vadim Zeitlin
fc215b4140 don't compile the test in the build configurations where it's not supported (trying to fix buildbot OS X build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 21:59:24 +00:00
Vadim Zeitlin
3e50a139b4 fixed wxImagePixelData compilation (ticket #3003); added a unit test for it (to be extended to cover more wxImage methods...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 19:30:23 +00:00
Vadim Zeitlin
5af86f4df5 don't take the min size into account when setting the window size explicitly in wxGTK, just as wxMSW doesn't do it; mention this in the docs and added a unit test to enforce this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-25 03:08:31 +00:00
Vadim Zeitlin
1a86d2e52c create tests/window directory for wxWindow tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-25 02:56:22 +00:00
Vadim Zeitlin
9a0c5c012a do case normalization after long path one, this fixes the problem with incorrect paths case under Vista (closes 9162)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-24 14:42:40 +00:00
Vadim Zeitlin
c7099635d1 add tests for wxPATH_NORM_CASE (unsuccessfully trying to reproduce the problem of #9162)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-18 11:38:33 +00:00
Vadim Zeitlin
8e08370217 work around VC7 compiler bug resulting in a warning about FileNameTest being never instantiatable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-18 11:14:20 +00:00
Vadim Zeitlin
e559d790fb add wxCmdLineParser::AddUsageText() and wxCMD_LINE_USAGE_TEXT (modified patch 1957542)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-12 00:03:06 +00:00
Vadim Zeitlin
c6d36593cd add a test for reading files >4KB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 17:43:56 +00:00
Vadim Zeitlin
e0257cc505 added a simple benchmark for wxDC::DrawLine() performance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-13 01:30:14 +00:00
Vadim Zeitlin
5769cf0f89 fix bugs introduced in wxCmdLineParser::ConvertStringToArgs() during Unicode transition; added a unit test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 17:03:09 +00:00
Vadim Zeitlin
c8f80d2758 throw away the now invalid items in wxSelectionStore::SetItemCount() (bug 1929823) and added a unit test for this class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 15:22:10 +00:00
Václav Slavík
43a302f200 added wxXmlNode::InsertChildAfter and use it for (much) faster XML parsing (based on patch by Francesco Montorsi)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-30 10:27:19 +00:00
Václav Slavík
5e05df3c7f 1. fixed wxXmlNode::InsertChild() documentation to match the code
2. added tests for InsertChild()
3. simplified InsertChild() code without changing what it does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 22:55:35 +00:00
Vadim Zeitlin
65ef1791d3 compilation fix for PCH-less compilation (thanks buildbot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 16:41:08 +00:00
Vadim Zeitlin
d2a48d5cbc added convenient wxON_BLOCK_EXIT_SET() macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 16:13:50 +00:00
Vadim Zeitlin
51c679d5e2 added convenient wxON_BLOCK_EXIT_THISn() macros wrapping wxON_BLOCK_EXIT_OBJn(*this)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 15:37:41 +00:00
Francesco Montorsi
a15302de18 update infos about profiling under linux (callgrind utility has been merged with valgrind)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 18:08:16 +00:00
Michael Wetherell
6ed28b941c Compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-20 22:28:02 +00:00
Václav Slavík
301d7a0da6 added wxWindow::ClientToWindowSize and WindowToClientSize helpers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-12 15:49:22 +00:00
Vadim Zeitlin
f9727b1be5 fixed wxXLocale(wxLanguage) ctor under Windows, use it instead of ctor from locale string in the test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:38:37 +00:00
Vadim Zeitlin
609ea9cf02 fix compilation with VC7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:18:04 +00:00
Vadim Zeitlin
6e4ae332ac add wxXLocale class and wxIsxxx_l() and wxToxxx_l() functions (heavily modified and extended patch 1874287)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:03:23 +00:00
Vadim Zeitlin
f3f2e255b4 added wxDateTime::FormatISOCombined() and ParseISODate/Time/Combined()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 13:04:56 +00:00
Václav Slavík
4f03ec887b converting temporary wxString to const wxChar* and storing that doesn't work (and doesn't even compile if wxUSE_STL), fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 16:25:33 +00:00
Václav Slavík
c3c11581dc added VC7/8 project files for samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 11:38:07 +00:00
Václav Slavík
6e0fbb3dbf regenerated makefiles with bkl-0.2.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-23 12:13:07 +00:00
Václav Slavík
6712283cf1 fixed wxVector<T> to work with non-POD types again; added optimization to keep using (much faster) realloc with types that are movable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-22 11:29:21 +00:00
Vadim Zeitlin
3781c92083 don't write wide string to std::ostream which outputs them as pointer values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-16 22:15:18 +00:00
Vadim Zeitlin
2ef0f6ce31 remove the test of weak references classes size, it's implementation-dependent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-16 02:03:10 +00:00
Vadim Zeitlin
7bac0684f5 added unit tests for decoding invalid base64 strings; corrected bugs exposed by them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-15 16:56:17 +00:00
Vadim Zeitlin
6490a288bb rebaked and regenerated everything after the latest changes (wxWeakRef &c)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 02:48:17 +00:00
Vadim Zeitlin
5098c258b2 compilation fixes for VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 01:13:03 +00:00
Vadim Zeitlin
cc6ceca789 improvements to wxWeakRef and related classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-13 01:12:13 +00:00