Francesco Montorsi
6aea1e4a70
implement wxNativeFontInfo::SetFamily for wxGTK with the same logic used by wxMSW; remove the now useless m_family from wxGTK's wxFont implementation; better docs for many wxFont functions (don't use typeface term; use the 'face name' one instead) and wxFontFamily
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 22:53:26 +00:00
Vadim Zeitlin
390b8241d3
revert r60023 and really fixed compilation problems caused by r60017 by providing assertEquals(const char *, const char *) overload as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 23:55:05 +00:00
Vadim Zeitlin
0eb83a1a72
compilation fix after r60017
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 22:33:20 +00:00
Michael Wetherell
cc90c1cc3e
Fixes for archive tests on Windows.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 22:12:04 +00:00
Vadim Zeitlin
245ff47f7c
fix the test for !wxUSE_UNICODE_UTF8 builds: don't suppose that strings are UTF-8 encoded in VsnprintfTestCase::S() but use FromUTF8() explicitly (how did it manage to work with VC9 before?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 16:45:23 +00:00
Vadim Zeitlin
3879212eee
fix VsnprintfTestCase::P() for mingw32 which may use MSVC CRT ( closes #10679 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 16:02:23 +00:00
Vadim Zeitlin
df6de630f5
fix test failure on glibc systems which do not use %T; also replace CompareTimeFormats() with a macro to get failure messages on the right line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 12:09:54 +00:00
Vadim Zeitlin
84d8eabd81
no changes, just fixed typo in an error message
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 11:49:30 +00:00
Stefan Csomor
db227bf893
adjusting DATE_TIME_FMT on OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 18:05:57 +00:00
Vadim Zeitlin
727e8d842f
fix the test case which wrongly relied on wxString using UTF-8 representation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 17:03:16 +00:00
Vadim Zeitlin
27dd021da3
fix the test case which wrongly relied on wxString using UTF-8 representation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 17:02:12 +00:00
Vadim Zeitlin
e992b97f1b
avoid the ugly hack with adding an empty string to m_registries to indicate that we need to run all tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 16:38:20 +00:00
Vadim Zeitlin
ad16130f66
add possibility to choose the locale (useful for Windows which doesn't honour LC_ALL &c)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 15:31:57 +00:00
Vadim Zeitlin
fac0939500
use correct expected values for Windows and OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-03 15:23:26 +00:00
Vadim Zeitlin
525711d7a3
don't run wxPATH_NORM_LONG test on systems where the short file names are disabled
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-01 21:49:47 +00:00
Vadim Zeitlin
27aec6b6fc
expect 4 digit year in French locale under all platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-01 21:17:35 +00:00
Vadim Zeitlin
d8a696fb5f
correct French short date format for glibc; added more detailed messages for failing tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 22:23:05 +00:00
Vadim Zeitlin
d73a520945
allow running tests whose names don't end with TestCase again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 22:18:24 +00:00
Vadim Zeitlin
b9d2203419
only Linux/glibc seem to use periods as date separator in French locale
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 21:14:09 +00:00
Vadim Zeitlin
89a7e1ff98
Added wxLOCALE_DATE/TIME_FMT support to wxLocale::GetInfo().
...
- Implement for POSIX and Win32, TODO for OS X
- Use this instead of ad hoc code in wxDateTime::ParseFormat()
- Remove HAVE_STRPTIME, we don't need nor use strptime() any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 17:15:43 +00:00
Václav Slavík
de4983f323
split wxCharTypeBuffer<T> into wxScopedCharTypeBuffer<T> and wxCharTypeBuffer<T> -- the former is for transient data with validity limited to parent's lifetime, the latter is for permanent storage of string data (bug #9638 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-27 15:33:55 +00:00
Vadim Zeitlin
07c4e84f7b
always declare TestStrip(), it is now available even without 2.8 compatibility
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 23:00:14 +00:00
Vadim Zeitlin
181dd701fa
implement deprecated wxStripExtension() in terms of new wxFileName::StripExtension() ( closes #10634 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:55:01 +00:00
Vadim Zeitlin
62714742f3
no changes, just some cleanup (use compile-time asserts instead of run-time ones; use "FAIL" instead of "F")
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:35:30 +00:00
Vadim Zeitlin
875f82b1b6
switch off logging sooner ( closes #10646 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:31:54 +00:00
Vadim Zeitlin
2057acc2a7
build bot systems don't manage to generate enough ticks in 2 seconds to pass this test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 14:58:22 +00:00
Vadim Zeitlin
92f8206fee
remove unused variable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 13:46:22 +00:00
Vadim Zeitlin
29e0c68ef5
produce a better looking report with --time option ( closes #10643 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 16:28:20 +00:00
Vadim Zeitlin
955e1ce861
ensure the number of values we expect to record in RecordingDefaultsTest() is always correct (fixes test failure under VC6)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:43:31 +00:00
Vadim Zeitlin
5c8640d093
correct order of parameters in CPPUNIT_ASSERT_EQUAL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:40:22 +00:00
Vadim Zeitlin
174649c955
fix tests for the release builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:32:53 +00:00
Vadim Zeitlin
9912799caf
don't log std::exceptions ourselves, let cppunit do it as it outputs more details
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:32:19 +00:00
Vadim Zeitlin
2e6c4a5702
give more detailed message when the test fails in TestTimeFormat()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 12:59:19 +00:00
Francesco Montorsi
14a83cbf36
fix the FontTestCase::GetSet unit so that it passes under wxMSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 12:49:04 +00:00
Vadim Zeitlin
b33e98f0bd
trap CRT assertions and report assertions which happen inside CppUnit tests in a better way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 10:42:11 +00:00
Francesco Montorsi
8057186b81
PCH less build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 00:25:37 +00:00
Francesco Montorsi
e3527f7bc5
make sure that wxSystemSettings::GetFont/GetColour return values are always valid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 23:13:02 +00:00
Vadim Zeitlin
e538985edc
added GetEnglish{Month,WeekDay}Name()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 16:51:10 +00:00
Vadim Zeitlin
dc310ea07f
discard the time zone part of strings being parsed (generalizes the "CEST"-ignoring hack of r59682)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 12:19:21 +00:00
Vadim Zeitlin
66f22f4ae5
fix parsing methods for non-ASCII strings (e.g. dates in non-"C" locales) (see #9560 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 00:11:42 +00:00
Vadim Zeitlin
34d4d2864c
enforce "C" locale for tests which can't work in any other (because test data is in English)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 23:29:10 +00:00
Vadim Zeitlin
3aa3163f66
give better error messages when tests fail
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 23:22:37 +00:00
Francesco Montorsi
3162be2bd9
small changes to make the test run fine on wxMSW, too;
...
do not use stdout as variable name as VC9 doesn't like it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:49:20 +00:00
Francesco Montorsi
16f7158098
put wxSetLocale() call in setUp() as VC6 still fails because of wrong locale in VsnprintfTestCase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:25:44 +00:00
Francesco Montorsi
ca5016d4dd
make sure that wxProcess always have a valid PID set; add test unit for wxExecute,wxShell,wxProcess based on the code in the console sample; add some more infos/notes in wxProcess docs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:23:44 +00:00
Francesco Montorsi
7749be1236
adds proper detection of tests success/failure; clear that "error level" != "return code"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 14:57:10 +00:00
Vadim Zeitlin
ffdb0ee5ab
initialize NUM_COLS correctly in columns order test ( closes #10630 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 12:18:51 +00:00
Francesco Montorsi
12e91a550c
fix typo; use C locale for VsnprintfTestCase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 12:17:39 +00:00
Francesco Montorsi
2026b433b9
this one should really work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 11:01:33 +00:00
Francesco Montorsi
78f2eafcb6
fix the build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 10:58:32 +00:00