Skip to content
Snippets Groups Projects
Commit 4d2d62a6 authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Squish: Improved tst_build_speedcrunch


Change-Id: I09c25505354d9f6a3613e86ef5121ab37857f194
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent be4e2c1a
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ def main(): ...@@ -28,7 +28,7 @@ def main():
clickButton(fancyToolButton) clickButton(fancyToolButton)
listWidget = waitForObject("{occurrence='2' type='ProjectExplorer::Internal::GenericListWidget' unnamed='1' visible='0' " listWidget = waitForObject("{occurrence='2' type='ProjectExplorer::Internal::GenericListWidget' unnamed='1' visible='0' "
"window=':QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector'}") "window=':QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector'}")
sendEvent("QMouseEvent", waitForObject(":QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector"), QEvent.MouseButtonPress, -5, 5, Qt.LeftButton, 0) mouseClick(waitForObject(":QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector"), -5, 5, 0, Qt.LeftButton)
prog = re.compile("(Desktop )?Qt.*Release") prog = re.compile("(Desktop )?Qt.*Release")
for row in range(listWidget.count): for row in range(listWidget.count):
...@@ -40,8 +40,8 @@ def main(): ...@@ -40,8 +40,8 @@ def main():
if listWidget.currentRow != row: if listWidget.currentRow != row:
rect = listWidget.visualItemRect(currentItem) rect = listWidget.visualItemRect(currentItem)
mouseClick(listWidget, rect.x+5, rect.y+5, 0, Qt.LeftButton) mouseClick(listWidget, rect.x+5, rect.y+5, 0, Qt.LeftButton)
sendEvent("QMouseEvent", waitForObject(":QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector"), QEvent.MouseButtonPress, -45, 64, Qt.LeftButton, 0) waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)")
waitForSignal("{type='CppTools::Internal::CppModelManager' unnamed='1'}", "sourceFilesRefreshed(QStringList)") mouseClick(waitForObject(":QtCreator.MenuBar_ProjectExplorer::Internal::MiniProjectTargetSelector"), -45, 64, 0, Qt.LeftButton)
buildConfig = buildConfigFromFancyToolButtton(fancyToolButton) buildConfig = buildConfigFromFancyToolButtton(fancyToolButton)
if buildConfig != currentItem.text(): if buildConfig != currentItem.text():
test.fatal("Build configuration %s is selected instead of %s" % (buildConfig, currentItem.text())) test.fatal("Build configuration %s is selected instead of %s" % (buildConfig, currentItem.text()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment