X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232fdc630c42eb165f7659981043e794be03b3b7..c29c95fe24973b94fd724db767193171ca7c513d:/tests/controls/textentrytest.cpp diff --git a/tests/controls/textentrytest.cpp b/tests/controls/textentrytest.cpp index e28fc4809f..81f9e41bc8 100644 --- a/tests/controls/textentrytest.cpp +++ b/tests/controls/textentrytest.cpp @@ -144,6 +144,9 @@ void TextEntryTestCase::InsertionPoint() entry->WriteText("-"); // should move it after the written text CPPUNIT_ASSERT_EQUAL( 4, entry->GetLastPosition() ); CPPUNIT_ASSERT_EQUAL( 1, entry->GetInsertionPoint() ); + + entry->SetValue("something different"); // should still reset the caret + CPPUNIT_ASSERT_EQUAL( 0, entry->GetInsertionPoint() ); } void TextEntryTestCase::Replace()