forked from qt-creator/qt-creator
QmlJS: Track futures to allow testing
Tests often want to wait for all async tasks to finish before progressing. Change-Id: I61738df730ca341b5c9d227569d961cd1991b296 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Philip Van Hoof <philip@codeminded.be>
This commit is contained in:
@@ -45,7 +45,7 @@ void QmlJSToolsPlugin::test_basic()
|
||||
|
||||
const QString qmlFilePath = Core::ICore::resourcePath() + QLatin1String("/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml");
|
||||
modelManager->updateSourceFiles(QStringList(qmlFilePath), false);
|
||||
modelManager->joinAllThreads();
|
||||
modelManager->test_joinAllThreads();
|
||||
|
||||
Snapshot snapshot = modelManager->snapshot();
|
||||
Document::Ptr doc = snapshot.document(qmlFilePath);
|
||||
|
||||
Reference in New Issue
Block a user