|
|
|
|
@ -27,11 +27,12 @@ |
|
|
|
|
#include <KService> |
|
|
|
|
#include <KDebug> |
|
|
|
|
#include <qtest_kde.h> |
|
|
|
|
#include "../Part.h" |
|
|
|
|
//#include "../Part.h"
|
|
|
|
|
|
|
|
|
|
using namespace Konsole; |
|
|
|
|
|
|
|
|
|
/* In KDE 4.x there are 2 versions: TerminalInterface and TerminalInterfaceV2
|
|
|
|
|
In KDE 5.x only one: TerminalInterface |
|
|
|
|
The code below uses both as well the KonsolePart API |
|
|
|
|
*/ |
|
|
|
|
void TerminalInterfaceTest::testTerminalInterface() |
|
|
|
|
@ -45,7 +46,7 @@ void TerminalInterfaceTest::testTerminalInterface() |
|
|
|
|
if (!_terminalPart) |
|
|
|
|
QSKIP("konsolepart not found.", SkipSingle); |
|
|
|
|
|
|
|
|
|
TerminalInterfaceV2* terminal = qobject_cast<TerminalInterfaceV2*>(_terminalPart); |
|
|
|
|
TerminalInterface* terminal = qobject_cast<TerminalInterface*>(_terminalPart); |
|
|
|
|
QVERIFY(terminal); |
|
|
|
|
terminal->showShellInDir(QDir::home().path()); |
|
|
|
|
|