Commit c6936d9e authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Squish: Speeding up switching modes by replacing snooze



Change-Id: Ia13a98e7ae27f4c4643d8efd9a7c25b53fad4dd3
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent 23b5e1ce
...@@ -7,8 +7,11 @@ def switchViewTo(view): ...@@ -7,8 +7,11 @@ def switchViewTo(view):
tabBar = waitForObject("{type='Core::Internal::FancyTabBar' unnamed='1' visible='1' " tabBar = waitForObject("{type='Core::Internal::FancyTabBar' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}") "window=':Qt Creator_Core::Internal::MainWindow'}")
mouseMove(tabBar, 10, 10 + 52 * view) mouseMove(tabBar, 10, 10 + 52 * view)
snooze(2) if waitFor("QToolTip.isVisible()", 10000):
text = str(QToolTip.text()) text = str(QToolTip.text())
else:
test.warning("Waiting for ToolTip timed out.")
text = ""
pattern = ViewConstants.getToolTipForViewTab(view) pattern = ViewConstants.getToolTipForViewTab(view)
if re.match(pattern, unicode(text), re.UNICODE): if re.match(pattern, unicode(text), re.UNICODE):
test.passes("ToolTip verified") test.passes("ToolTip verified")
......
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