summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2012-05-31 13:03:51 +0300
committerQt by Nokia <qt-info@nokia.com>2012-06-10 15:58:09 +0200
commitc8dd0de1a6620d1f664d0188bd004065b7b6013f (patch)
tree58c0cdb7469c67224b8f100fbb8abc188500dcb0 /tests
parent48d99e74fc9f6a73c4d8c8e9278efe448c37e5f2 (diff)
Line Breaking Algorithm: don't break inside numeric expressions
Change-Id: I8362663454e4c6604ecb6289ae8009d47c78aeb1 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp b/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
index 74d52aaf8f..d445f47bdf 100644
--- a/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
+++ b/tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp
@@ -288,31 +288,6 @@ void tst_QTextBoundaryFinder::lineBoundariesDefault()
if (testString.contains(QChar::ObjectReplacementCharacter))
QSKIP("QTextBoundaryFinder doesn't handle Object Replacement character");
- { // The Line Break tests use tailoring of numbers described in Example 7
- // of Section 8.2 Examples of Customization
- QChar s[][2] = {
- { 0x007D, 0x0025 }, // CL x PO
- { 0x007D, 0x0024 }, // CL x PR
- { 0x0029, 0x0025 }, // CP x PO
- { 0x0029, 0x0024 }, // CP x PR
- { 0x002C, 0x0030 }, // IS x NU
- { 0x002E, 0x0031 }, // IS x NU
- { 0x002E, 0x0032 }, // IS x NU
- { 0x002E, 0x0033 }, // IS x NU
- { 0x002E, 0x0034 }, // IS x NU
- { 0x0025, 0x0028 }, // PO x OP
- { 0x0024, 0x0028 }, // PR x OP
- { 0x005C, 0x0028 }, // PR x OP
- { 0x005C, 0x007B }, // PR x OP
- { 0x002F, 0x0030 }, // SY x NU
- };
- QChar cm(0x0308);
- for (int i = 0; i < int(sizeof(s) / sizeof(QChar)) / 2; ++i) {
- if (testString.contains(QString(s[i], 2)) || testString.contains(QString(s[i], 2).insert(1, cm)))
- QSKIP("QTextBoundaryFinder doesn't handle numerical expressions");
- }
- }
-
expectedBreakPositions.prepend(0); // ### QTBF generates a boundary at start of text
doTestData(testString, expectedBreakPositions, QTextBoundaryFinder::Line, true);
}