Remove some files as instructed by Legal department. · alexkoltun/wkhtmltopdf-qt-batch@9b142a0 · GitHub
Skip to content

Commit

Permalink
Remove some files as instructed by Legal department.
Browse files Browse the repository at this point in the history
Task-number: QT-3613
(cherry picked from commit 2c574ed)
  • Loading branch information
Jason McDonald committed Jul 20, 2010
1 parent f3c53e1 commit 9b142a0
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 96 deletions.
Binary file not shown.
Binary file removed tests/auto/qimagereader/images/pngwithtext.png
Binary file not shown.
2 changes: 0 additions & 2 deletions tests/auto/qimagereader/qimagereader.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
<file>images/noclearcode.bmp</file>
<file>images/noclearcode.gif</file>
<file>images/nontransparent.xpm</file>
<file>images/pngwithcompressedtext.png</file>
<file>images/pngwithtext.png</file>
<file>images/runners.ppm</file>
<file>images/teapot.ppm</file>
<file>images/test.ppm</file>
Expand Down
56 changes: 0 additions & 56 deletions tests/auto/qimagereader/tst_qimagereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ private slots:
void supportsAnimation_data();
void supportsAnimation();

void description_data();
void description();

void readFromResources_data();
void readFromResources();

Expand Down Expand Up @@ -1236,53 +1233,6 @@ void tst_QImageReader::devicePosition()
}


void tst_QImageReader::description_data()
{
QTest::addColumn<QString>("fileName");
QTest::addColumn<QStringMap>("description");

QMap<QString, QString> willem;
willem["Title"] = "PngSuite";
willem["Author"] = "Willem A.J. van Schaik (gwillem@ntuvax.ntu.ac.sg)";
willem["Copyright"] = "Copyright Willem van Schaik, Singapore 1995";
willem["Description"] = "A compilation of a set of images created to test the "
"various color-types of the PNG format. Included are "
"black&white, color, paletted, with alpha channel, with "
"transparency formats. All bit-depths allowed according "
"to the spec are present.";
willem["Software"] = "Created on a NeXTstation color using \"pnmtopng\".";
willem["Disclaimer"] = "Freeware.";

QTest::newRow("PNG") << QString("pngwithtext.png") << willem;
QTest::newRow("PNG Compressed") << QString("pngwithcompressedtext.png") << willem;
}

void tst_QImageReader::description()
{
QFETCH(QString, fileName);
QFETCH(QStringMap, description);

// Sanity check
QVERIFY(!QImage(prefix + fileName).isNull());

QImageReader reader(prefix + fileName);

foreach (QString key, description.keys())
QCOMPARE(reader.text(key), description.value(key));
QCOMPARE(reader.textKeys(), QStringList(description.keys()));

QImage image = reader.read();
QVERIFY(!image.isNull());

foreach (QString key, description.keys())
QCOMPARE(image.text(key), description.value(key));
QCOMPARE(image.textKeys(), QStringList(description.keys()));

foreach (QString key, description.keys())
QCOMPARE(reader.text(key), description.value(key));
QCOMPARE(reader.textKeys(), QStringList(description.keys()));
}

void tst_QImageReader::readFromResources_data()
{
QTest::addColumn<QString>("fileName");
Expand Down Expand Up @@ -1388,12 +1338,6 @@ void tst_QImageReader::readFromResources_data()
QTest::newRow("image.png") << QString("image.png")
<< QByteArray("png") << QSize(22, 22)
<< QString("");
QTest::newRow("pngwithcompressedtext.png") << QString("pngwithcompressedtext.png")
<< QByteArray("png") << QSize(32, 32)
<< QString("");
QTest::newRow("pngwithtext.png") << QString("pngwithtext.png")
<< QByteArray("png") << QSize(32, 32)
<< QString("");
QTest::newRow("kollada.png") << QString("kollada.png")
<< QByteArray("png") << QSize(436, 160)
<< QString("");
Expand Down
38 changes: 0 additions & 38 deletions tests/auto/qimagewriter/tst_qimagewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ private slots:
void largeTiff();
#endif

void setDescription_data();
void setDescription();

void writeToInvalidDevice();

void supportsOption_data();
Expand Down Expand Up @@ -420,41 +417,6 @@ void tst_QImageWriter::readWriteNonDestructive()
QCOMPARE(image, image2);
}

void tst_QImageWriter::setDescription_data()
{
QTest::addColumn<QString>("fileName");
QTest::addColumn<QStringMap>("description");

QMap<QString, QString> willem;
willem["Title"] = "PngSuite";
willem["Author"] = "Willem A.J. van Schaik (willem@schaik.com)";
willem["Copyright"] = "Copyright Willem van Schaik, Singapore 1995-96";
willem["Description"] = "A compilation of a set of images created to test the "
"various color-types of the PNG format. Included are "
"black&white, color, paletted, with alpha channel, with "
"transparency formats. All bit-depths allowed according "
"to the spec are present.";
willem["Software"] = "Created on a NeXTstation color using \"pnmtopng\".";
willem["Disclaimer"] = "Freeware.";

QTest::newRow("PNG") << prefix + QString("gen-pngwithtext.png") << willem;
}

void tst_QImageWriter::setDescription()
{
QFETCH(QString, fileName);
QFETCH(QStringMap, description);

QImageWriter writer(fileName, "png");
foreach (QString key, description.keys())
writer.setText(key, description.value(key));
QVERIFY(writer.write(QImage(prefix + "kollada.png")));

QImageReader reader(fileName);
foreach (QString key, description.keys())
QCOMPARE(reader.text(key), description.value(key));
}

void tst_QImageWriter::writeToInvalidDevice()
{
QLatin1String fileName("/these/directories/do/not/exist/001.png");
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 9b142a0

Please sign in to comment.