test removing a defintion on a copy
This commit is contained in:
parent
b4f4515d2a
commit
c8c342abd3
@ -117,6 +117,11 @@ void PackageStructureTest::mutateAfterCopy()
|
|||||||
QCOMPARE(ps.directories(), dirs);
|
QCOMPARE(ps.directories(), dirs);
|
||||||
QVERIFY(ps.directories() != copy.directories());
|
QVERIFY(ps.directories() != copy.directories());
|
||||||
|
|
||||||
|
copy = ps;
|
||||||
|
copy.removeDefinition("mainscript");
|
||||||
|
QCOMPARE(ps.files(), files);
|
||||||
|
QVERIFY(ps.files() != copy.files());
|
||||||
|
|
||||||
#ifndef PLASMA_NO_PACKAGE_EXTRADATA
|
#ifndef PLASMA_NO_PACKAGE_EXTRADATA
|
||||||
copy = ps;
|
copy = ps;
|
||||||
QVERIFY(!imageMimeTypes.isEmpty());
|
QVERIFY(!imageMimeTypes.isEmpty());
|
||||||
|
Loading…
Reference in New Issue
Block a user