Commit b2eb04f3 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Add titles to be tested

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1085210
parent a3c3c64c
......@@ -19,6 +19,7 @@
// Own
#include "DBusTest.h"
#include "../Session.h"
using namespace Konsole;
......@@ -110,6 +111,7 @@ void DBusTest::testSessions()
QDBusReply<void> voidReply;
QDBusReply<bool> boolReply;
QDBusReply<QByteArray> arrayReply;
QDBusReply<QString> stringReply;
QDBusReply<QStringList> listReply;
......@@ -205,6 +207,34 @@ void DBusTest::testSessions()
listReply ="environment");
QCOMPARE(listReply.value(), prevEnv);
//****************** Test is/set title
// TODO: Consider checking what is in Profile
stringReply ="title", Session::LocalTabTitle);
//kDebug()<< stringReply.value();
QString prevLocalTitle = stringReply.value();
// set title to, what title should be
QMap<QString, QString> titleMap;
titleMap["Shell"] = "Shell";
// BUG: It appears that Session::LocalTabTitle is set to Shell and
// doesn't change. While RemoteTabTitle is actually the LocalTabTitle
// TODO: Figure out what's going on...
QMapIterator<QString, QString> i(titleMap);
while (i.hasNext()) {;
voidReply ="setTitle", Session::LocalTabTitle, i.key());
stringReply ="title", Session::LocalTabTitle);
QCOMPARE(stringReply.value(), i.value());
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