Always use wxTE_MULTILINE explicitly in PositionToCoords() test

While it is added implicitly when running all tests in the order, this
style wasn't used if just this test was ran using "-c PositionToCoords"
option.

Specify wxTE_MULTILINE in it explicitly to allow this to work too.
This commit is contained in:
Vadim Zeitlin
2017-11-07 14:23:07 +01:00
parent faad429b0f
commit 407d38d9ed

View File

@@ -603,7 +603,7 @@ void TextCtrlTestCase::PositionToCoordsRich2()
void TextCtrlTestCase::DoPositionToCoordsTestWithStyle(long style)
{
delete m_text;
CreateText(style);
CreateText(style|wxTE_MULTILINE);
// Asking for invalid index should fail.
WX_ASSERT_FAILS_WITH_ASSERT( m_text->PositionToCoords(1) );