- qtextdocument unittest to remove foo.png after test.
- qtextdocumentlayout unittest to remove expected.png and img.png after test.
Change-Id: I42971e9128d399cadc87b9fd345c868065f180a9
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
public slots:
void init();
void cleanup();
+ void cleanupTestCase();
private slots:
void getSetCheck();
void isEmpty();
tst_QTextDocument::~tst_QTextDocument()
{
- QFile::remove(QLatin1String("foo.png"));
}
void tst_QTextDocument::init()
doc = 0;
}
+void tst_QTextDocument::cleanupTestCase()
+{
+ QFile::remove(QLatin1String("foo.png"));
+}
+
void tst_QTextDocument::isEmpty()
{
QVERIFY(doc->isEmpty());
public slots:
void init();
void cleanup();
+ void cleanupTestCase();
private slots:
void defaultPageSizeHandling();
doc = 0;
}
+void tst_QTextDocumentLayout::cleanupTestCase()
+{
+ if (qgetenv("QTEST_KEEP_IMAGEDATA").toInt() == 0) {
+ QFile::remove(QLatin1String("expected.png"));
+ QFile::remove(QLatin1String("img.png"));
+ }
+}
+
void tst_QTextDocumentLayout::defaultPageSizeHandling()
{
QAbstractTextDocumentLayout *layout = doc->documentLayout();