forked from qt-creator/qt-creator
Squish: Moved contents of mainwin.py to other files
Change-Id: I998b1304dc9ad8832990da5e90ab426c38eb329e Reviewed-on: http://codereview.qt-project.org/6182 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
b44d3ad1ea
commit
368726d6f2
@@ -121,3 +121,16 @@ def cleanUpUserFiles(pathsToProFiles=None):
|
||||
doneWithoutErrors = False
|
||||
return doneWithoutErrors
|
||||
|
||||
def invokeMenuItem(menu, item):
|
||||
menuObject = waitForObjectItem("{type='QMenuBar' visible='true'}", menu)
|
||||
activateItem(menuObject)
|
||||
activateItem(waitForObjectItem(objectMap.realName(menuObject), item))
|
||||
|
||||
def logApplicationOutput():
|
||||
# make sure application output is shown
|
||||
toggleAppOutput = waitForObject("{type='Core::Internal::OutputPaneToggleButton' unnamed='1' visible='1' "
|
||||
"window=':Qt Creator_Core::Internal::MainWindow' occurrence='3'}", 20000)
|
||||
if not toggleAppOutput.checked:
|
||||
clickButton(toggleAppOutput)
|
||||
output = waitForObject("{type='Core::OutputWindow' visible='1' windowTitle='Application Output Window'}", 20000)
|
||||
test.log("Application Output:\n%s" % output.plainText)
|
||||
|
||||
Reference in New Issue
Block a user