Kaydet (Commit) db8853d7 authored tarafından Caolán McNamara's avatar Caolán McNamara

add regression test for #i19716#

Change-Id: I11440667bdf73ed09ebc83771acf33e2d3e61f6c
üst 2cf78960
......@@ -140,6 +140,22 @@ void TestBreakIterator::testLineBreaking()
CPPUNIT_ASSERT_MESSAGE("Expected a break at the first slash", aResult.breakIndex == 4);
}
}
//See https://issues.apache.org/ooo/show_bug.cgi?id=19716
{
rtl::OUString aTest(RTL_CONSTASCII_USTRINGPARAM("aaa]aaa"));
aLocale.Language = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en"));
aLocale.Country = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("US"));
{
//Here we want the line break to move the whole lot to the next line
i18n::LineBreakResults aResult = m_xBreak->getLineBreak(aTest, aTest.getLength()-2, aLocale, 0,
aHyphOptions, aUserOptions);
fprintf(stderr, "suggestion was %d\n", aResult.breakIndex);
CPPUNIT_ASSERT_MESSAGE("Expected a break at the start of the line, not at ]", aResult.breakIndex == 0);
}
}
}
//See https://bugs.freedesktop.org/show_bug.cgi?id=49629
......
......@@ -586,24 +586,10 @@ Date: Mon Mar 8 16:17:05 2004 +0000
INTEGRATION: CWS i18n09 (1.2.2); FILE MERGED
2003/12/04 23:45:37 khong 1.2.2.3: #i22602# make dot stick on beginning of a word when doing line break
2003/12/04 23:12:37 khong 1.2.2.2: #i21392# change line break rule to match with MS office
2003/12/03 19:32:02 khong 1.2.2.1: #i19716# fix wrong line break on bracket characters
commit 15f41851842866c9a486eb9cfa258907c472f69f
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Mar 8 16:16:53 2004 +0000
INTEGRATION: CWS i18n09 (1.2.2); FILE MERGED
2003/12/03 02:17:55 khong 1.2.2.1: #110105# Set word boundary between CJK and Latin script type
commit a83ef0cbe99b66241615b238c1d287a6da04e51e
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Mar 8 16:16:16 2004 +0000
INTEGRATION: CWS i18n09 (1.2.2); FILE MERGED
2003/12/03 02:17:54 khong 1.2.2.1: #110105# Set word boundary between CJK and Latin script type
done, regression tests added:
#i19716# fix wrong line break on bracket characters
#i21290# extend Greek script type
#i21907# fix isBeginWord and isEndWord problem
#i85411# Apply patch for ZWSP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment