forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3'
Change-Id: I44511e06986b7df6007be7daf7051c895a10794b
This commit is contained in:
@@ -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())();
|
||||
|
||||
Reference in New Issue
Block a user