From 45a5f47e01a03b42bd129a32fafbe0429439fe64 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 19 Apr 2017 11:07:15 +0200 Subject: [PATCH] QmlJSTools: Test: Fix used qml file Former welcomescreen.qml is gone. Use another qml file to perform the test. Change-Id: Ibb6a143eab96202e152c799dc394a305f9db405d Reviewed-by: David Schulz --- src/plugins/qmljstools/qmljstools_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmljstools/qmljstools_test.cpp b/src/plugins/qmljstools/qmljstools_test.cpp index e8e31c7d829..9db7c7ef7a8 100644 --- a/src/plugins/qmljstools/qmljstools_test.cpp +++ b/src/plugins/qmljstools/qmljstools_test.cpp @@ -43,12 +43,12 @@ void QmlJSToolsPlugin::test_basic() { ModelManagerInterface *modelManager = ModelManagerInterface::instance(); - const QString welcomescreenRootPath = Core::ICore::resourcePath() + QLatin1String("/welcomescreen/welcomescreen.qml"); - modelManager->updateSourceFiles(QStringList(welcomescreenRootPath), false); + const QString qmlFilePath = Core::ICore::resourcePath() + QLatin1String("/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml"); + modelManager->updateSourceFiles(QStringList(qmlFilePath), false); modelManager->joinAllThreads(); Snapshot snapshot = modelManager->snapshot(); - Document::Ptr doc = snapshot.document(welcomescreenRootPath); + Document::Ptr doc = snapshot.document(qmlFilePath); QVERIFY(doc && doc->isQmlDocument()); ContextPtr context = Link(snapshot, ViewerContext(), LibraryInfo())();