summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-04-24 08:23:13 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-04-24 10:42:40 (GMT)
commit294f32f41da900ad3ae70e1546ea0057f8864d95 (patch)
treece0155aff9e81cf518b5f6560b3a4d9716b4aa38 /tests
parente09144d9ae2fbebaa5c6a2eeb7975a3a75ddbf0b (diff)
downloadQt-294f32f41da900ad3ae70e1546ea0057f8864d95.zip
Qt-294f32f41da900ad3ae70e1546ea0057f8864d95.tar.gz
Qt-294f32f41da900ad3ae70e1546ea0057f8864d95.tar.bz2
Alias for QUtf16Codec is wrong.
Requested/spotted by Nokia i18n team/Darpan. Task-number: 252102 Reviewed-by: Denis AutoTest: In this submit.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtextcodec/tst_qtextcodec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qtextcodec/tst_qtextcodec.cpp b/tests/auto/qtextcodec/tst_qtextcodec.cpp
index b1bfb86..536b695 100644
--- a/tests/auto/qtextcodec/tst_qtextcodec.cpp
+++ b/tests/auto/qtextcodec/tst_qtextcodec.cpp
@@ -68,6 +68,7 @@ private slots:
void flagEFBFBF() const;
void decode0D() const;
void codecForIndex() const;
+ void aliasForUTF16() const;
void utf8Codec_data();
void utf8Codec();
@@ -453,6 +454,11 @@ void tst_QTextCodec::codecForIndex() const
{
}
+void tst_QTextCodec::aliasForUTF16() const
+{
+ QVERIFY(QTextCodec::codecForName("UTF-16")->aliases().isEmpty());
+}
+
static QString fromInvalidUtf8Sequence(const QByteArray &ba)
{
return QString().fill(QChar::ReplacementCharacter, ba.size());