Commit 07d3e712 authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Replace useless signal waiting



Since Squish 4.2.3 the signal handling has been fixed and this
signal won't be caught by Squish because it was triggered by another
object.

Change-Id: I4a849084712ee99f9e63b844f832ba8dadd793ac
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent f4cfa822
......@@ -16,11 +16,9 @@ def main():
placeCursorToLine(cppwindow, "return a.exec();")
typeLines(cppwindow, ("<Up>", testData.field(record, "declaration")))
type(cppwindow, testData.field(record, "usage"))
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}",
"sourceFilesRefreshed(QStringList)", 1000)
snooze(1) # maybe find something better
type(cppwindow, testData.field(record, "operator"))
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}",
"sourceFilesRefreshed(QStringList)", 1000)
waitFor("object.exists(':popupFrame_TextEditor::GenericProposalWidget')", 1500)
test.compare(str(lineUnderCursor(cppwindow)).strip(), testData.field(record, "expected"))
invokeMenuItem("File", 'Revert "main.cpp" to Saved')
clickButton(waitForObject(":Revert to Saved.Proceed_QPushButton"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment