Commit Graph

26 Commits

Author SHA1 Message Date
Kurt Hindenburg
cecfad49ff Convert tests to use SPDX license/copyright
https://community.kde.org/Policies/Licensing_Policy#SPDX_Statements
https://community.kde.org/Guidelines_and_HOWTOs/Licensing
2020-11-11 21:14:21 -05:00
Tomaz Canabrava
0478529c6f Move Profile related classes to it's own folder
This also allowed me to remove a few includes of Profile.h
around the codebase, that used Profile::Ptr. now the compilation
is a bit faster and also does not recompile things as often.
2020-07-27 19:14:53 +02:00
Gustavo Carneiro
9b2e9731e0 move Session files to a new folder. 2020-07-15 09:30:42 +00:00
Kurt Hindenburg
fbe6295bb8 Use empty() for emptiness instead of size() 2020-03-28 16:23:53 -04:00
Mariusz Glebocki
3be8a14824 DBusTest: Do not verify exit status
The test is about DBus, unrelated functionality should not be tested
here.
2019-10-27 02:35:27 +01:00
Mariusz Glebocki
eb9fc4c8bb DBusTest: Add test for Window interface methods
Tested functions:
[+] int sessionCount();
[+] QStringList sessionList();
[+] int currentSession();
[+] void setCurrentSession(int sessionId);
[+] int newSession();
[+] int newSession(const QString &profile);
[+] int newSession(const QString &profile, const QString &directory);
[ ] QString defaultProfile();
[ ] QStringList profileList();
[ ] void nextSession();
[ ] void prevSession();
[ ] void moveSessionLeft();
[ ] void moveSessionRight();
[ ] void setTabWidthToText(bool);
2019-10-27 02:35:27 +01:00
Mariusz Glebocki
7f460ea559 DBusTest: Do not show popup when closing multiple tabs
QWidget::close() shows question popup when CloseAllTabs is set to false
(default). The comment in the function suggested it was handled, but
it wasn't - the popup blocks DBus method call, so QSignalSpy::wait()
was not reached until the popup was closed manually.
2019-10-27 02:35:27 +01:00
Mariusz Glebocki
42a972b3d3 DBusTest: Use correct enum in title/setTitle 2019-10-27 02:35:27 +01:00
Kurt Hindenburg
8ce959ab6c Use QThread::sleep instead of sleep/usleep 2019-08-27 23:12:13 -04:00
David Edmundson
3eb9a34f62 Re-add DBus test
Summary:
Ported from KProcess::startDetached to a QProcess we can kill should the
window not exit when closed.

On the KDE CI where the window isn't quitting on close the test might
fail, but it will give us output where we can investigate.

Test Plan: Passes locally

Reviewers: #konsole, #frameworks, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D16919
2018-11-16 09:58:20 -05:00
Kurt Hindenburg
c39f4e3eb4 clang readability + uncrustify 2017-07-18 21:59:32 -04:00
Kurt Hindenburg
2117500670 modernize use nullptr 2017-07-01 21:25:51 -04:00
Kurt Hindenburg
b9c3cd6608 More changes to QLatin1String, QLatin1Char and QStringLiteral 2017-05-08 08:44:43 -04:00
Kurt Hindenburg
a540e6fdd0 Fix readability-implicit-bool-cast issues using nullptr 2017-04-21 10:51:31 -04:00
Kurt Hindenburg
5cabe247c4 remove unused variable 2017-01-28 10:41:07 -05:00
Kurt Hindenburg
846357c5b6 Fix some incorrectly used QLatin1String 2016-06-21 23:04:07 -04:00
Martin T. H. Sandsmark
ed51b007d7 fix the dbus autotest 2016-04-17 15:09:22 +02:00
Kurt Hindenburg
cab41067ad Use QStringLiteral, QLatin1String and QString 2015-10-16 11:58:18 -04:00
Kurt Hindenburg
05d2328d67 Remove some KDE4 usage in comments 2015-09-18 10:01:13 -04:00
Kurt Hindenburg
ff66b231bf Remove unneeded includes 2015-09-16 23:34:40 -04:00
Kurt Hindenburg
2a63d8e010 Switch from removed /Konsole to /Windows/1 dbus 2015-09-12 13:18:56 -04:00
Kurt Hindenburg
7b07dd78cd s/QLatin1String/QStringLiteral/ 2015-09-12 12:35:49 -04:00
Kurt Hindenburg
53bdb7fb44 Port tests away from KDELibs4Support
This consisted of KDialog->QDialog, kFatal->qFatal and linking to
KF5::Parts instead of KF5::KDELibs4Support.

Patch by Ragnar Thomsen rthomsen6 gmail com

Thanks!

REVIEW: 124683
2015-08-16 14:44:20 -04:00
Aleix Pol
0975d32db9 Stop KDELibs4Support from being the all-mighty dependency
Now only Konsole application and some tests link against it
2015-04-17 18:02:14 +02:00
Kurt Hindenburg
93fef17cdd Simplify variables and remove unneeded code
(cherry picked from commit ab94ffce64)
2014-04-16 21:40:21 -04:00
Kurt Hindenburg
4a96b2d56b Move automated tests to autotests 2014-01-11 22:23:18 -05:00