Commit df1f7796 authored by Christian Stenger's avatar Christian Stenger

Squish: Fix tst_SCOM05

Change-Id: I63b5266639a272ee94cc50978f87634f09ff4177
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 54d662c2
......@@ -289,6 +289,8 @@ def invokeFindUsage(editor, line, typeOperation, n=1):
def addBranchWildcardToRoot(rootNode):
pos = rootNode.find(".")
if pos == -1:
return rootNode + " (*)"
return rootNode[:pos] + " (*)" + rootNode[pos:]
def openDocument(treeElement):
......
......@@ -3,8 +3,17 @@ source("../../shared/suites_qtta.py")
def verifyChangeProject(projectName):
# select project
projItem = waitForObjectItem(":Qt Creator_Utils::NavigationTreeView", projectName)
openItemContextMenu(waitForObject(":Qt Creator_Utils::NavigationTreeView"), projectName, 5, 5, 0)
try:
projItem = waitForObjectItem(":Qt Creator_Utils::NavigationTreeView", projectName, 3000)
except:
try:
projItem = waitForObjectItem(":Qt Creator_Utils::NavigationTreeView",
addBranchWildcardToRoot(projectName), 1000)
except:
test.fatal("Failed to find root node of the project '%s'." % projectName)
return
openItemContextMenu(waitForObject(":Qt Creator_Utils::NavigationTreeView"),
str(projItem.text), 5, 5, 0)
activateItem(waitForObjectItem("{name='Project.Menu.Project' type='QMenu' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}",
'Set "%s" as Active Project' % projectName))
......
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