diff --git a/duchain/declarationbuilder.cpp b/duchain/declarationbuilder.cpp index f9808ffb42ccb3ae5ea97d3017279e65189d8fe1..aee5712f612ff548fd56b9ec1b558ef9e17e5f6d 100644 --- a/duchain/declarationbuilder.cpp +++ b/duchain/declarationbuilder.cpp @@ -49,7 +49,7 @@ ReferencedTopDUContext DeclarationBuilder::build(const IndexedString& url, Q_ASSERT(m_session->url() == url); // The declaration builder needs to run twice, so it can resolve uses of e.g. functions - // which are called before they are defined (which is easily possible, due to python's dynamic nature). + // which are called before they are defined (which is easily possible, due to JS's dynamic nature). if (!m_prebuilding) { kDebug() << "building, but running pre-builder first"; DeclarationBuilder* prebuilder = new DeclarationBuilder(m_session); diff --git a/tests/test_files.cpp b/tests/test_files.cpp index 9cb24968fcbae69b038b934c094357ec50fefd40..dbcf2562837cf13c9d5376cb5de3e3b2e9268857 100644 --- a/tests/test_files.cpp +++ b/tests/test_files.cpp @@ -74,7 +74,7 @@ void TestFiles::testFiles() ReferencedTopDUContext top = DUChain::self()->waitForUpdate(indexedFileName, KDevelop::TopDUContext::AllDeclarationsContextsAndUses); - while (ICore::self()->languageController()->backgroundParser()->queuedCount() != 0) { + while (!ICore::self()->languageController()->backgroundParser()->isIdle()) { QTest::qWait(500); }