]> git.saurik.com Git - wxWidgets.git/commitdiff
Pass wxWANTS_CHARS to the wxRichTextCtrl constructor in the unit tests.
authorSteve Lamerton <steve.lamerton@gmail.com>
Sun, 20 Jan 2013 19:28:20 +0000 (19:28 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Sun, 20 Jan 2013 19:28:20 +0000 (19:28 +0000)
Fixes test failures caused by the return key being used for dialog navigation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/richtextctrltest.cpp

index f3813de3c5355b1c94e4e1873665e0370e736fe1..f1e1cc7ca4d0d8edb9fbcdd1e1a14cb133a9e5f5 100644 (file)
@@ -106,7 +106,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( RichTextCtrlTestCase, "RichTextCtrlTestCa
 void RichTextCtrlTestCase::setUp()
 {
     m_rich = new wxRichTextCtrl(wxTheApp->GetTopWindow(), wxID_ANY, "",
-                                wxDefaultPosition, wxSize(400, 200));
+                                wxDefaultPosition, wxSize(400, 200), wxWANTS_CHARS);
 }
 
 void RichTextCtrlTestCase::tearDown()