forked from qt-creator/qt-creator
Squish: Update tst_session_handling
Change-Id: I93fe52e59579958c85ecbe086f62ec067af214f7 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -93,7 +93,7 @@ def switchSession(toSession):
|
|||||||
|
|
||||||
def createAndSwitchToSession(toSession):
|
def createAndSwitchToSession(toSession):
|
||||||
sessionInputDialog = ("{type='ProjectExplorer::Internal::SessionNameInputDialog' unnamed='1' "
|
sessionInputDialog = ("{type='ProjectExplorer::Internal::SessionNameInputDialog' unnamed='1' "
|
||||||
"visible='1' windowTitle='New session name'}")
|
"visible='1' windowTitle='New Session Name'}")
|
||||||
test.log("Switching to session '%s' after creating it." % toSession)
|
test.log("Switching to session '%s' after creating it." % toSession)
|
||||||
invokeMenuItem("File", "Session Manager...")
|
invokeMenuItem("File", "Session Manager...")
|
||||||
clickButton(waitForObject("{name='btCreateNew' text='New' type='QPushButton' visible='1' "
|
clickButton(waitForObject("{name='btCreateNew' text='New' type='QPushButton' visible='1' "
|
||||||
@@ -101,7 +101,7 @@ def createAndSwitchToSession(toSession):
|
|||||||
lineEdit = waitForObject("{type='QLineEdit' unnamed='1' visible='1' window=%s}"
|
lineEdit = waitForObject("{type='QLineEdit' unnamed='1' visible='1' window=%s}"
|
||||||
% sessionInputDialog)
|
% sessionInputDialog)
|
||||||
replaceEditorContent(lineEdit, toSession)
|
replaceEditorContent(lineEdit, toSession)
|
||||||
clickButton(waitForObject("{text='Switch to' type='QPushButton' unnamed='1' visible='1' "
|
clickButton(waitForObject("{text='Switch To' type='QPushButton' unnamed='1' visible='1' "
|
||||||
"window=%s}" % sessionInputDialog))
|
"window=%s}" % sessionInputDialog))
|
||||||
|
|
||||||
def checkWelcomePage(sessionName, isCurrent=False):
|
def checkWelcomePage(sessionName, isCurrent=False):
|
||||||
|
Reference in New Issue
Block a user