summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-04-19 11:07:15 +0200
committerDavid Schulz <david.schulz@qt.io>2017-04-19 09:52:12 +0000
commit45a5f47e01a03b42bd129a32fafbe0429439fe64 (patch)
treec6309a158595e4a247ff390b6b73e9cc8f093f66 /src
parent078b8bbf4da2b1549101273bb2541e8ca370a4f5 (diff)
downloadqt-creator-45a5f47e01a03b42bd129a32fafbe0429439fe64.tar.gz
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 <david.schulz@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmljstools/qmljstools_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qmljstools/qmljstools_test.cpp b/src/plugins/qmljstools/qmljstools_test.cpp
index e8e31c7d82..9db7c7ef7a 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())();