forked from qt-creator/qt-creator
Designer: Fix failing test
Change-Id: I6bc9ec2007c9949b45c0f9068f12247ec50a44d5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -177,9 +177,11 @@ public:
|
||||
|
||||
// Wait for updated documents
|
||||
for (TextEditor::BaseTextEditor *editor : qAsConst(editors)) {
|
||||
QElapsedTimer t;
|
||||
t.start();
|
||||
const QString filePath = editor->document()->filePath().toString();
|
||||
if (auto parser = BuiltinEditorDocumentParser::get(filePath)) {
|
||||
forever {
|
||||
while (t.elapsed() < 2000) {
|
||||
if (Document::Ptr document = parser->document()) {
|
||||
if (document->editorRevision() == 2)
|
||||
break;
|
||||
@@ -193,6 +195,7 @@ public:
|
||||
const auto cppDocumentParser = BuiltinEditorDocumentParser::get(cppFile);
|
||||
QVERIFY(cppDocumentParser);
|
||||
const Document::Ptr cppDocument = cppDocumentParser->document();
|
||||
QCOMPARE(cppDocument->editorRevision(), 2);
|
||||
QVERIFY(checkDiagsnosticMessages(cppDocument));
|
||||
|
||||
const auto hDocumentParser = BuiltinEditorDocumentParser::get(hFile);
|
||||
|
Reference in New Issue
Block a user