Commit 74db5690 authored by Kevin Funk's avatar Kevin Funk
Browse files

test_qmljsdeclarations: Fix unit test

Remove references to modules which are not installed / not installed by
default.

CCMAIL: cordlandwehr@kde.org
parent fa014cb0
......@@ -43,7 +43,7 @@ using namespace KDevelop;
void TestDeclarations::initTestCase()
{
AutoTestShell::init();
AutoTestShell::init({"kdevqmljslanguagesupport"});
TestCore::initialize(Core::NoUi);
QmlJS::registerDUChainItems();
......@@ -266,9 +266,6 @@ void TestDeclarations::testQMLtypesImportPaths()
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQuick.Dialogs", "1.1");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQuick.Extras", "1.1");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQuick.LocalStorage", "2.0");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
......@@ -282,15 +279,9 @@ void TestDeclarations::testQMLtypesImportPaths()
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
// QtQml QML modules
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQml", "2.2");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQml.Models", "2.3");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
path = QmlJS::Cache::instance().modulePath(stubPath, "QtQml.StateMachine", "1.0");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
// QtMultimedia QML modules
path = QmlJS::Cache::instance().modulePath(stubPath, "QtMultimedia", "5.6");
QVERIFY(QFileInfo::exists(path + "/plugins.qmltypes"));
......
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