add a test for multiple files with the same key

This commit is contained in:
Aaron Seigo 2012-11-01 17:39:16 +01:00
parent 09cf013164
commit de086065a1
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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;