From 56375f60c7b04e2f2018fb80e4df1ad71c7f54f0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Apr 2014 00:00:37 +0000 Subject: [PATCH] Disable TextCtrlTestCase::LongText() for non-MSW platforms. At least under GTK SetMaxLength(), tested by this test, can't be used with multiline text controls at all, so running it fails. Keep the test for MSW only where SetMaxLength() works with controls of all kinds. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/controls/textctrltest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index eb75947272..9639f26b2d 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -525,6 +525,9 @@ void TextCtrlTestCase::LogTextCtrl() void TextCtrlTestCase::LongText() { + // This test is only possible under MSW as in the other ports + // SetMaxLength() can't be used with multi line text controls. +#ifdef __WXMSW__ delete m_text; CreateText(wxTE_MULTILINE|wxTE_DONTWRAP); @@ -554,6 +557,7 @@ void TextCtrlTestCase::LongText() wxString line = m_text->GetLineText(i); CPPUNIT_ASSERT_EQUAL( line, pattern ); } +#endif // __WXMSW__ } void TextCtrlTestCase::PositionToCoords()