diff options
author | aavit <qt-info@nokia.com> | 2010-11-01 15:11:28 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-11-02 10:56:34 (GMT) |
commit | a893f18cdaf1681e76413cbf637827371ada5865 (patch) | |
tree | 759a9c943580af82318aa547fb1c3dc440183d8e /tests/auto/qimagereader | |
parent | d42e644daf975160f46550abc8923c08df22ae7e (diff) | |
download | Qt-a893f18cdaf1681e76413cbf637827371ada5865.zip Qt-a893f18cdaf1681e76413cbf637827371ada5865.tar.gz Qt-a893f18cdaf1681e76413cbf637827371ada5865.tar.bz2 |
Fixes: Reading and writing PNG iTXt international text chunks
Reviewed-by: Kim
Diffstat (limited to 'tests/auto/qimagereader')
-rw-r--r-- | tests/auto/qimagereader/tst_qimagereader.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/auto/qimagereader/tst_qimagereader.cpp b/tests/auto/qimagereader/tst_qimagereader.cpp index 149cc84..02f95f1 100644 --- a/tests/auto/qimagereader/tst_qimagereader.cpp +++ b/tests/auto/qimagereader/tst_qimagereader.cpp @@ -1960,13 +1960,16 @@ void tst_QImageReader::preserveTexts_data() QTest::newRow("Newline") << "A text\nwith newlines\n"; QTest::newRow("Double newlines") << "A text\n\nwith double newlines\n\n"; QTest::newRow("Long") << QString("A rather long text, at least after many repetitions. ").repeated(100); - -#if 0 - // Depends on iTXt support in libpng QString latin1set; - for(int c = 0x20; c <= 0xff; c++) + int c; + for(c = 0x20; c <= 0x7e; c++) + latin1set.append(QLatin1Char(c)); + for(c = 0xa0; c <= 0xff; c++) latin1set.append(QLatin1Char(c)); QTest::newRow("All Latin1 chars") << latin1set; + +#if 0 + // Depends on iTXt support in libpng QTest::newRow("Multibyte string") << QString::fromUtf8("\341\233\222\341\233\226\341\232\251\341\232\271\341\232\242\341\233\232\341\232\240"); #endif } |