Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
b2eb04f3
Commit
b2eb04f3
authored
Feb 04, 2010
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add titles to be tested
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1085210
parent
a3c3c64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
src/tests/DBusTest.cpp
src/tests/DBusTest.cpp
+30
-0
No files found.
src/tests/DBusTest.cpp
View file @
b2eb04f3
...
...
@@ -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
;
QVERIFY
(
_iface
);
...
...
@@ -205,6 +207,34 @@ void DBusTest::testSessions()
listReply
=
iface
.
call
(
"environment"
);
QVERIFY
(
listReply
.
isValid
());
QCOMPARE
(
listReply
.
value
(),
prevEnv
);
//****************** Test is/set title
// TODO: Consider checking what is in Profile
stringReply
=
iface
.
call
(
"title"
,
Session
::
LocalTabTitle
);
QVERIFY
(
stringReply
.
isValid
());
//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
())
{
i
.
next
();
voidReply
=
iface
.
call
(
"setTitle"
,
Session
::
LocalTabTitle
,
i
.
key
());
QVERIFY
(
voidReply
.
isValid
());
stringReply
=
iface
.
call
(
"title"
,
Session
::
LocalTabTitle
);
QVERIFY
(
stringReply
.
isValid
());
QCOMPARE
(
stringReply
.
value
(),
i
.
value
());
}
}
QTEST_MAIN
(
DBusTest
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment