forked from qt-creator/qt-creator
SquishTests: Fix debugger test
Assign a name for a label for easier retrieval and fix the used objects inside the shared script. Change-Id: I1769b87d776a2dc9fee9ca9eb26805f6a8475fc0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -162,6 +162,7 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *parent)
|
|||||||
{
|
{
|
||||||
m_centralWidgetStack = new QStackedWidget;
|
m_centralWidgetStack = new QStackedWidget;
|
||||||
m_statusLabel = new Utils::StatusLabel;
|
m_statusLabel = new Utils::StatusLabel;
|
||||||
|
m_statusLabel->setObjectName("DebuggerStatusLabel"); // used by Squish
|
||||||
StyleHelper::setPanelWidget(m_statusLabel);
|
StyleHelper::setPanelWidget(m_statusLabel);
|
||||||
m_statusLabel->setIndent(2 * QFontMetrics(q->font()).horizontalAdvance(QChar('x')));
|
m_statusLabel->setIndent(2 * QFontMetrics(q->font()).horizontalAdvance(QChar('x')));
|
||||||
m_editorPlaceHolder = new EditorManagerPlaceHolder;
|
m_editorPlaceHolder = new EditorManagerPlaceHolder;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
:DebugModeWidget_QComboBox {container=':Qt Creator_Core::Internal::MainWindow' occurrence='3' type='QComboBox' unnamed='1' visible='1'}
|
:DebugModeWidget_QComboBox {container=':Qt Creator_Core::Internal::MainWindow' occurrence='3' type='QComboBox' unnamed='1' visible='1'}
|
||||||
:Debugger Toolbar.Continue_QToolButton {container=':DebugModeWidget.Toolbar_QDockWidget' toolTip?='Continue*' type='QToolButton' unnamed='1' visible='1'}
|
:Debugger Toolbar.Continue_QToolButton {container=':DebugModeWidget.Toolbar_QDockWidget' toolTip?='Continue*' type='QToolButton' unnamed='1' visible='1'}
|
||||||
:Debugger Toolbar.Exit Debugger_QToolButton {container=':DebugModeWidget.Toolbar_QDockWidget' text='Stop Debugger' type='QToolButton' unnamed='1' visible='1'}
|
:Debugger Toolbar.Exit Debugger_QToolButton {container=':DebugModeWidget.Toolbar_QDockWidget' text='Stop Debugger' type='QToolButton' unnamed='1' visible='1'}
|
||||||
:Debugger Toolbar.StatusText_Utils::StatusLabel {container=':DebugModeWidget.Toolbar_QDockWidget' type='Utils::StatusLabel' unnamed='1'}
|
:Debugger Toolbar.StatusText_Utils::StatusLabel {container=':DebugModeWidget.Toolbar_QDockWidget' name='DebuggerStatusLabel' type='QLabel'}
|
||||||
:Debugger.Docks.BreakDockWidget.Debugger.Docks.Break_QFrame {container=':DebugModeWidget.Debugger.Docks.BreakDockWidget_QDockWidget' name='Debugger.Docks.BreakpointManager' type='QFrame' visible='1'}
|
:Debugger.Docks.BreakDockWidget.Debugger.Docks.Break_QFrame {container=':DebugModeWidget.Debugger.Docks.BreakDockWidget_QDockWidget' name='Debugger.Docks.BreakpointManager' type='QFrame' visible='1'}
|
||||||
:Debugger.Docks.LocalsAndWatchersDockWidget.Inspector_QFrame {container=':DebugModeWidget.Debugger.Docks.LocalsAndInspectorDockWidget_QDockWidget' name~='Debugger\\\\.Dock\\\\.Inspector\\\\.\\\\d+' type='QFrame' visible='1'}
|
:Debugger.Docks.LocalsAndWatchersDockWidget.Inspector_QFrame {container=':DebugModeWidget.Debugger.Docks.LocalsAndInspectorDockWidget_QDockWidget' name~='Debugger\\\\.Dock\\\\.Inspector\\\\.\\\\d+' type='QFrame' visible='1'}
|
||||||
:Debugger::Internal::ConsoleEdit {columnIndex='0' container=':DebugModeWidget_Debugger::Internal::ConsoleView' rowIndex='0' type='Debugger::Internal::ConsoleEdit' unnamed='1' visible='1'}
|
:Debugger::Internal::ConsoleEdit {columnIndex='0' container=':DebugModeWidget_Debugger::Internal::ConsoleView' rowIndex='0' type='Debugger::Internal::ConsoleEdit' unnamed='1' visible='1'}
|
||||||
|
|||||||
@@ -53,8 +53,7 @@ def setBreakpointsForCurrentProject(filesAndLines):
|
|||||||
if not filesAndLines or not isinstance(filesAndLines, (list,tuple)):
|
if not filesAndLines or not isinstance(filesAndLines, (list,tuple)):
|
||||||
test.fatal("This function only takes a non-empty list/tuple holding dicts.")
|
test.fatal("This function only takes a non-empty list/tuple holding dicts.")
|
||||||
return None
|
return None
|
||||||
waitForObject("{type='Utils::NavigationTreeView' unnamed='1' visible='1' "
|
waitForObject(":Qt Creator_Utils::NavigationTreeView")
|
||||||
"window=':Qt Creator_Core::Internal::MainWindow'}")
|
|
||||||
breakPointList = []
|
breakPointList = []
|
||||||
for current in filesAndLines:
|
for current in filesAndLines:
|
||||||
for curFile,curLine in current.items():
|
for curFile,curLine in current.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user