add a test for multiple files with the same key
This commit is contained in:
parent
09cf013164
commit
de086065a1
@ -35,6 +35,8 @@ public:
|
||||
{
|
||||
setContentsPrefixPaths(QStringList());
|
||||
addDirectoryDefinition("bin", "bin", "bin");
|
||||
addFileDefinition("MultiplePaths", "first", "Description proper");
|
||||
addFileDefinition("MultiplePaths", "second", "Description proper");
|
||||
setPath("/");
|
||||
}
|
||||
};
|
||||
@ -71,6 +73,12 @@ void PackageStructureTest::emptyContentsPrefix()
|
||||
QCOMPARE(path, QString("/bin/ls"));
|
||||
}
|
||||
|
||||
void PackageStructureTest::multiplePaths()
|
||||
{
|
||||
NoPrefixes package;
|
||||
QCOMPARE(package.name("MultiplePaths"), QString("Description proper"));
|
||||
}
|
||||
|
||||
void PackageStructureTest::directories()
|
||||
{
|
||||
QList<const char*> dirs;
|
||||
|
@ -33,6 +33,7 @@ public:
|
||||
private Q_SLOTS:
|
||||
void copyPerformance();
|
||||
void emptyContentsPrefix();
|
||||
void multiplePaths();
|
||||
void directories();
|
||||
void requiredDirectories();
|
||||
void files();
|
||||
@ -42,8 +43,6 @@ private Q_SLOTS:
|
||||
void required();
|
||||
void mimeTypes();
|
||||
|
||||
//TODO: add tests for copy construction
|
||||
|
||||
private:
|
||||
Plasma::Package ps;
|
||||
QString m_packagePath;
|
||||
|
Loading…
Reference in New Issue
Block a user