diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-30 12:13:27 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-14 07:50:49 +0200 |
commit | 9515d45f8891d0760f722965df6af7761d403e3e (patch) | |
tree | e57e1db89dd00ee130485d09167f45238a3a0ca6 /tests | |
parent | 103ef2bf584480979da34d150f5467fdfb85a68b (diff) |
Remove QTextCodec dependency from test
Change-Id: Ie546065c3179d475df46b284ca7df502c4465b93
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/text/qtextboundaryfinder/tst_qtextboundaryfinder.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/corelib/text/qtextboundaryfinder/tst_qtextboundaryfinder.cpp b/tests/auto/corelib/text/qtextboundaryfinder/tst_qtextboundaryfinder.cpp index b4c2657c84..c2cbc6d818 100644 --- a/tests/auto/corelib/text/qtextboundaryfinder/tst_qtextboundaryfinder.cpp +++ b/tests/auto/corelib/text/qtextboundaryfinder/tst_qtextboundaryfinder.cpp @@ -29,7 +29,6 @@ #include <QtTest/QtTest> #include <qtextboundaryfinder.h> -#include <qtextcodec.h> #include <qfile.h> #include <qdebug.h> #include <qlist.h> @@ -783,10 +782,7 @@ void tst_QTextBoundaryFinder::thaiLineBreak() if (!init_libthai()) QSKIP("This test requires libThai-0.1.1x to be installed."); #if 0 - // สวัสดีครับ นี่เป็นการงทดสอบตัวเอ - QTextCodec *codec = QTextCodec::codecForMib(2259); - QString text = codec->toUnicode(QByteArray("\xca\xc7\xd1\xca\xb4\xd5\xa4\xc3\xd1\xba\x20\xb9\xd5\xe8\xe0\xbb\xe7\xb9\xa1\xd2\xc3\xb7\xb4\xca\xcd\xba\xb5\xd1\xc7\xe0\xcd\xa7")); - QCOMPARE(text.length(), 32); + QString text = QString::fromUtf8("สวัสดีครับ นี่เป็นการงทดสอบตัวเอ"); QTextBoundaryFinder finder(QTextBoundaryFinder::Line, text); finder.setPosition(0); |