forked from qt-creator/qt-creator
Squish: Make sure correct output panes are used
We expect the first five toggle buttons for output panes to be visible by default. Additionally added buttons will have the property 'occurrences' with a value depending on their position - not their label. Using the menubar for these additional output panes is safer. Change-Id: Ie58f8dd56ec35bfa9f6bba871aa807e4b1507c75 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -633,13 +633,17 @@ def verifyItemOrder(items, text):
|
||||
lastIndex = index
|
||||
|
||||
def openVcsLog():
|
||||
if not object.exists(":Qt Creator_VersionControl_Core::Internal::OutputPaneToggleButton"):
|
||||
clickButton(waitForObject(":Qt Creator_Core::Internal::OutputPaneManageButton"))
|
||||
if platform.system() == 'Darwin':
|
||||
waitFor('macHackActivateContextMenuItem("Version Control")', 6000)
|
||||
else:
|
||||
activateItem(waitForObjectItem("{type='QMenu' unnamed='1' visible='1'}", "Version Control"))
|
||||
ensureChecked(waitForObject(":Qt Creator_VersionControl_Core::Internal::OutputPaneToggleButton"))
|
||||
try:
|
||||
foundObj = waitForObject("{type='QPlainTextEdit' unnamed='1' visible='1' "
|
||||
"window=':Qt Creator_Core::Internal::MainWindow'}", 2000)
|
||||
if className(foundObj) != 'QPlainTextEdit':
|
||||
raise Exception("Found derived class, but not a pure QPlainTextEdit.")
|
||||
except:
|
||||
invokeMenuItem("Window", "Output Panes", "Version Control")
|
||||
|
||||
def openGeneralMessages():
|
||||
if not object.exists(":Qt Creator_Core::OutputWindow"):
|
||||
invokeMenuItem("Window", "Output Panes", "General Messages")
|
||||
|
||||
# function that retrieves a specific child object by its class
|
||||
# this is sometimes the best way to avoid using waitForObject() on objects that
|
||||
|
||||
Reference in New Issue
Block a user