Commit 45a5f47e authored by Christian Stenger's avatar Christian Stenger Committed by David Schulz
Browse files

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's avatarDavid Schulz <>
parent 078b8bbf
......@@ -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);
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())();
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