Squish: Parse qtcreator.pro with Qt 5.6 to avoid changing results

Change-Id: I47cecb8ac8aaf1d5a845b801ff4038b3f023a220
Task-number: QTCREATORBUG-17577
Task-number: QTCREATORBUG-17609
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2017-01-20 12:20:00 +01:00
parent 2def95374d
commit 326d40dde1
2 changed files with 8 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ def main():
waitFor("runButton.enabled", 30000) waitFor("runButton.enabled", 30000)
# Starting before opening, because this is where Creator froze (QTCREATORBUG-10733) # Starting before opening, because this is where Creator froze (QTCREATORBUG-10733)
startopening = datetime.utcnow() startopening = datetime.utcnow()
openQmakeProject(pathCreator, Targets.DESKTOP_531_DEFAULT) openQmakeProject(pathCreator, Targets.DESKTOP_561_DEFAULT)
# Wait for parsing to complete # Wait for parsing to complete
startreading = datetime.utcnow() startreading = datetime.utcnow()
waitFor("runButton.enabled", 300000) waitFor("runButton.enabled", 300000)
@@ -62,12 +62,15 @@ def main():
if not test.verify(object.exists(":Qt Creator_Core::OutputWindow"), if not test.verify(object.exists(":Qt Creator_Core::OutputWindow"),
"Did the General Messages view show up?"): "Did the General Messages view show up?"):
openGeneralMessages() openGeneralMessages()
# Verify messages appear once, from using default kit before configuring
generalMessages = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText) generalMessages = str(waitForObject(":Qt Creator_Core::OutputWindow").plainText)
test.verify("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1." in generalMessages, test.compare(generalMessages.count("Project MESSAGE: Cannot build Qt Creator with Qt version 5.3.1."), 1,
"Warning about outdated Qt shown?") "Warning about outdated Qt shown?")
test.verify("Project ERROR: Use at least Qt 5.5.0." in generalMessages, test.compare(generalMessages.count("Project ERROR: Use at least Qt 5.5.0."), 1,
"Minimum Qt version shown?") "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 # Now check some basic lookups in the search box
selectFromLocator(": Qlist::QList", "QList::QList") selectFromLocator(": Qlist::QList", "QList::QList")
test.compare(wordUnderCursor(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")), "QList") test.compare(wordUnderCursor(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")), "QList")

View File

@@ -2683,8 +2683,6 @@
"qmljsgrammar.cpp" "6" "qmljsgrammar.cpp" "6"
"qmljslexer.cpp" "6" "qmljslexer.cpp" "6"
"qmljsparser.cpp" "6" "qmljsparser.cpp" "6"
"Other files" "5"
"qmljs.g" "6"
"Headers" "4" "Headers" "4"
"jsoncheck.h" "5" "jsoncheck.h" "5"
"persistenttrie.h" "5" "persistenttrie.h" "5"
@@ -2760,9 +2758,6 @@
"qmljsutils.cpp" "5" "qmljsutils.cpp" "5"
"qmljsvalueowner.cpp" "5" "qmljsvalueowner.cpp" "5"
"qmljsviewercontext.cpp" "5" "qmljsviewercontext.cpp" "5"
"Other files" "4"
"parser" "5"
"qmljs.g" "6"
"qtcreatorlibrary" "3" "qtcreatorlibrary" "3"
"qtcreatorlibrary.pri" "4" "qtcreatorlibrary.pri" "4"
"qmljs_dependencies" "4" "qmljs_dependencies" "4"
@@ -13819,8 +13814,6 @@
"qmljsgrammar.cpp" "8" "qmljsgrammar.cpp" "8"
"qmljslexer.cpp" "8" "qmljslexer.cpp" "8"
"qmljsparser.cpp" "8" "qmljsparser.cpp" "8"
"Other files" "7"
"qmljs.g" "8"
"Headers" "6" "Headers" "6"
"jsoncheck.h" "7" "jsoncheck.h" "7"
"persistenttrie.h" "7" "persistenttrie.h" "7"
@@ -13896,9 +13889,6 @@
"qmljsutils.cpp" "7" "qmljsutils.cpp" "7"
"qmljsvalueowner.cpp" "7" "qmljsvalueowner.cpp" "7"
"qmljsviewercontext.cpp" "7" "qmljsviewercontext.cpp" "7"
"Other files" "6"
"parser" "7"
"qmljs.g" "8"
"qttest" "5" "qttest" "5"
"qttest.pri" "6" "qttest.pri" "6"
"qtcreator" "6" "qtcreator" "6"
1 text nestinglevel
2683 qmljsgrammar.cpp 6
2684 qmljslexer.cpp 6
2685 qmljsparser.cpp 6
Other files 5
qmljs.g 6
2686 Headers 4
2687 jsoncheck.h 5
2688 persistenttrie.h 5
2758 qmljsutils.cpp 5
2759 qmljsvalueowner.cpp 5
2760 qmljsviewercontext.cpp 5
Other files 4
parser 5
qmljs.g 6
2761 qtcreatorlibrary 3
2762 qtcreatorlibrary.pri 4
2763 qmljs_dependencies 4
13814 qmljsgrammar.cpp 8
13815 qmljslexer.cpp 8
13816 qmljsparser.cpp 8
Other files 7
qmljs.g 8
13817 Headers 6
13818 jsoncheck.h 7
13819 persistenttrie.h 7
13889 qmljsutils.cpp 7
13890 qmljsvalueowner.cpp 7
13891 qmljsviewercontext.cpp 7
Other files 6
parser 7
qmljs.g 8
13892 qttest 5
13893 qttest.pri 6
13894 qtcreator 6