From c8dd0de1a6620d1f664d0188bd004065b7b6013f Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Thu, 31 May 2012 13:03:51 +0300 Subject: Line Breaking Algorithm: don't break inside numeric expressions Change-Id: I8362663454e4c6604ecb6289ae8009d47c78aeb1 Reviewed-by: Lars Knoll --- .../tst_qtextboundaryfinder.cpp | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'tests/auto') 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); } -- cgit v1.2.3