forked from qt-creator/qt-creator
Check for '.' in handleAutoTest
jump over checks with the keyword Check and CheckType for expanded variables Change-Id: I909aec478db0fa77119bf555c738c56ed83070d7 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1727,6 +1727,9 @@ void DebuggerEnginePrivate::handleAutoTestLine(int line)
|
||||
QString name = s.section(QLatin1Char(' '), 1, 1);
|
||||
if (name.isEmpty()) {
|
||||
reportTestError(_("'Check' needs arguments."), line);
|
||||
} else if (name.contains(QChar('.'))) {
|
||||
m_engine->showMessage(_("variable %1 found in line %2 contains '.', but 'Expand' is not implemented yet.").arg(name).arg(line));
|
||||
handleAutoTestLine(line + 1);
|
||||
} else {
|
||||
QByteArray iname = "local." + name.toLatin1();
|
||||
QString found = m_engine->watchHandler()->displayForAutoTest(iname);
|
||||
@@ -1749,6 +1752,9 @@ void DebuggerEnginePrivate::handleAutoTestLine(int line)
|
||||
QString name = s.section(QLatin1Char(' '), 1, 1);
|
||||
if (name.isEmpty()) {
|
||||
reportTestError(_("'CheckType' needs arguments."), line);
|
||||
} else if (name.contains(QChar('.'))) {
|
||||
m_engine->showMessage(_("variable %1 found in line %2 contains '.', but 'Expand' is not implemented yet.").arg(name).arg(line));
|
||||
handleAutoTestLine(line + 1);
|
||||
} else {
|
||||
QByteArray iname = "local." + name.toLatin1();
|
||||
QString found = m_engine->watchHandler()->displayForAutoTest(iname);
|
||||
|
||||
Reference in New Issue
Block a user