diff options
author | Øystein Heskestad <oystein.heskestad@qt.io> | 2021-08-11 11:50:59 +0200 |
---|---|---|
committer | Øystein Heskestad <oystein.heskestad@qt.io> | 2021-11-10 09:44:03 +0100 |
commit | 09291eead45a49e2450e2a6ab6da53351dedd4be (patch) | |
tree | 342b26e4a6232cbd56ff04f3ed9fe2a7b7d65330 /tests/auto/corelib/text/qchar | |
parent | 76b4739e0714414fa6a8ae999bc93a692f5c81aa (diff) |
Add additional grapheme, word, and sentence break class tests from tr29
Stop turning THAI CHARACTER SARA AM into a grapheme boundary because it
breaks a test and chromium does not consider it to be a separate
grapheme.
Fixes: QTBUG-88545
Change-Id: Ib1aea8dbb66ac42b2129cf9fe04c39f5f76eeb36
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/text/qchar')
-rw-r--r-- | tests/auto/corelib/text/qchar/tst_qchar.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/auto/corelib/text/qchar/tst_qchar.cpp b/tests/auto/corelib/text/qchar/tst_qchar.cpp index 3c621948fe..fe7fd24544 100644 --- a/tests/auto/corelib/text/qchar/tst_qchar.cpp +++ b/tests/auto/corelib/text/qchar/tst_qchar.cpp @@ -30,7 +30,6 @@ #include <qchar.h> #include <qfile.h> #include <qstringlist.h> -#include <private/qunicodetables_p.h> class tst_QChar : public QObject { @@ -67,7 +66,6 @@ private slots: void digitValue(); void mirroredChar(); void decomposition(); - void lineBreakClass(); void script(); void normalization_data(); void normalization(); @@ -748,24 +746,6 @@ void tst_QChar::decomposition() } } -void tst_QChar::lineBreakClass() -{ - QVERIFY(QUnicodeTables::lineBreakClass(0x0029) == QUnicodeTables::LineBreak_CP); - QVERIFY(QUnicodeTables::lineBreakClass(0x0041) == QUnicodeTables::LineBreak_AL); - QVERIFY(QUnicodeTables::lineBreakClass(0x0033) == QUnicodeTables::LineBreak_NU); - QVERIFY(QUnicodeTables::lineBreakClass(0x00ad) == QUnicodeTables::LineBreak_BA); - QVERIFY(QUnicodeTables::lineBreakClass(0x05d0) == QUnicodeTables::LineBreak_HL); - QVERIFY(QUnicodeTables::lineBreakClass(0xfffc) == QUnicodeTables::LineBreak_CB); - QVERIFY(QUnicodeTables::lineBreakClass(0xe0164) == QUnicodeTables::LineBreak_CM); - QVERIFY(QUnicodeTables::lineBreakClass(0x2f9a4) == QUnicodeTables::LineBreak_ID); - QVERIFY(QUnicodeTables::lineBreakClass(0x10000) == QUnicodeTables::LineBreak_AL); - QVERIFY(QUnicodeTables::lineBreakClass(0x1f1e6) == QUnicodeTables::LineBreak_RI); - - // mapped to AL: - QVERIFY(QUnicodeTables::lineBreakClass(0xfffd) == QUnicodeTables::LineBreak_AL); // AI -> AL - QVERIFY(QUnicodeTables::lineBreakClass(0x100000) == QUnicodeTables::LineBreak_AL); // XX -> AL -} - void tst_QChar::script() { QVERIFY(QChar::script(0x0020) == QChar::Script_Common); |