test removing a defintion on a copy

This commit is contained in:
Aaron Seigo 2014-08-08 07:24:00 +02:00
parent b4f4515d2a
commit c8c342abd3

View File

@ -117,6 +117,11 @@ void PackageStructureTest::mutateAfterCopy()
QCOMPARE(ps.directories(), dirs);
QVERIFY(ps.directories() != copy.directories());
copy = ps;
copy.removeDefinition("mainscript");
QCOMPARE(ps.files(), files);
QVERIFY(ps.files() != copy.files());
#ifndef PLASMA_NO_PACKAGE_EXTRADATA
copy = ps;
QVERIFY(!imageMimeTypes.isEmpty());