forked from qt-creator/qt-creator
SquishTests: Wait for expected function context in tst_CSUP01
Fixing related comment along the way. Change-Id: Ie5dcfd5795c934f407acf772a531a367e4ab7213 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -52,6 +52,14 @@ def main():
|
|||||||
earlyExit("Did not find first line in function block.")
|
earlyExit("Did not find first line in function block.")
|
||||||
return
|
return
|
||||||
type(editorWidget, "<Return>")
|
type(editorWidget, "<Return>")
|
||||||
|
if useClang:
|
||||||
|
codeModelInMain = lambda: object.exists(
|
||||||
|
"{currentText='main(int, char **) -> int '"
|
||||||
|
" type='QComboBox' unnamed='1' visible='1'"
|
||||||
|
" window=':Qt Creator_Core::Internal::MainWindow'}")
|
||||||
|
if not waitFor(codeModelInMain, 5000):
|
||||||
|
test.warning("ComboBox does not display expected main function",
|
||||||
|
"Did this slow down or did the displayed content change?")
|
||||||
type(editorWidget, "re")
|
type(editorWidget, "re")
|
||||||
triggerCompletion(editorWidget)
|
triggerCompletion(editorWidget)
|
||||||
functionName = "realpath"
|
functionName = "realpath"
|
||||||
@@ -63,7 +71,7 @@ def main():
|
|||||||
test.compare(str(lineUnderCursor(editorWidget)).strip(), functionName + "()",
|
test.compare(str(lineUnderCursor(editorWidget)).strip(), functionName + "()",
|
||||||
"Step 3: Verifying if: The list of suggestions is opened. It is "
|
"Step 3: Verifying if: The list of suggestions is opened. It is "
|
||||||
"possible to select one of the suggestions.")
|
"possible to select one of the suggestions.")
|
||||||
# Step 4: Insert text "voi" to new line and press Tab.
|
# Step 4: Insert text "unsig" to new line and press Tab.
|
||||||
resetLine(editorWidget)
|
resetLine(editorWidget)
|
||||||
type(editorWidget, "unsig")
|
type(editorWidget, "unsig")
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user