diff options
Diffstat (limited to 'tests/system/suite_general/tst_openqt_creator/test.py')
-rw-r--r-- | tests/system/suite_general/tst_openqt_creator/test.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/system/suite_general/tst_openqt_creator/test.py b/tests/system/suite_general/tst_openqt_creator/test.py index 10ec71744c..5722a3fe46 100644 --- a/tests/system/suite_general/tst_openqt_creator/test.py +++ b/tests/system/suite_general/tst_openqt_creator/test.py @@ -41,7 +41,7 @@ def main(): waitFor("runButton.enabled", 30000) # Starting before opening, because this is where Creator froze (QTCREATORBUG-10733) startopening = datetime.utcnow() - openQmakeProject(pathCreator, Targets.DESKTOP_531_DEFAULT) + openQmakeProject(pathCreator, Targets.DESKTOP_561_DEFAULT) # Wait for parsing to complete startreading = datetime.utcnow() waitFor("runButton.enabled", 300000) @@ -62,12 +62,15 @@ def main(): if not test.verify(object.exists(":Qt Creator_Core::OutputWindow"), "Did the General Messages view show up?"): openGeneralMessages() + # Verify messages appear once, from using default kit before configuring generalMessages = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText) - test.verify("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1." in generalMessages, - "Warning about outdated Qt shown?") - test.verify("Project ERROR: Use at least Qt 5.5.0." in generalMessages, - "Minimum Qt version shown?") + test.compare(generalMessages.count("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1."), 1, + "Warning about outdated Qt shown?") + test.compare(generalMessages.count("Project ERROR: Use at least Qt 5.5.0."), 1, + "Minimum Qt version shown?") + # Verify that qmljs.g is in the project even when we don't know where (QTCREATORBUG-17609) + selectFromLocator("p qmljs.g", "qmljs.g") # Now check some basic lookups in the search box selectFromLocator(": Qlist::QList", "QList::QList") test.compare(wordUnderCursor(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")), "QList") |