Commit 99524f65 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Also try to load all .qml files in creator

parent ed1c6cb9
......@@ -125,5 +125,19 @@ void TestBauhaus::loadDemos()
QFAIL(filePath.toAscii());
}
void TestBauhaus::loadCreator_data()
{
QTest::addColumn<QString>("filePath");
foreach (const QString &file, findAllQmlFiles(QDir(m_creatorDir))) {
QTest::newRow("file") << file;
}
}
void TestBauhaus::loadCreator()
{
QFETCH(QString, filePath);
if (!loadFile(filePath))
QFAIL(filePath.toAscii());
}
QTEST_MAIN(TestBauhaus);
......@@ -48,6 +48,8 @@ private slots:
void loadExamples();
void loadDemos_data();
void loadDemos();
void loadCreator_data();
void loadCreator();
private:
bool loadFile(const QString &file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment