Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
710f25d5
Commit
710f25d5
authored
Dec 18, 2020
by
Laurent Montel
😁
Browse files
Add autotest
parent
8c913aa8
Pipeline
#44504
canceled with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
710f25d5
...
...
@@ -39,3 +39,4 @@ add_unittest( kdebugsettingsloadingcategoriestest.cpp "")
add_unittest
(
changedebugmodejobtest.cpp
""
)
add_unittest
(
loadgroupmenutest.cpp
""
)
add_unittest
(
loadtoolbuttontest.cpp
""
)
add_unittest
(
savetoolbuttontest.cpp
""
)
autotests/loadtoolbuttontest.cpp
View file @
710f25d5
...
...
@@ -32,5 +32,7 @@ void LoadToolButtonTest::shouldHaveDefaultValues()
{
LoadToolButton
w
;
QVERIFY
(
w
.
menu
());
QVERIFY
(
!
w
.
text
().
isEmpty
());
//TODO
}
autotests/savetoolbuttontest.cpp
0 → 100644
View file @
710f25d5
/*
Copyright (c) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "savetoolbuttontest.h"
#include "savetoolbutton.h"
#include <QTest>
QTEST_MAIN
(
SaveToolButtonTest
)
SaveToolButtonTest
::
SaveToolButtonTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
void
SaveToolButtonTest
::
shouldHaveDefaultValues
()
{
//TODO
}
autotests/savetoolbuttontest.h
0 → 100644
View file @
710f25d5
/*
Copyright (c) 2020 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef SAVETOOLBUTTONTEST_H
#define SAVETOOLBUTTONTEST_H
#include <QObject>
class
SaveToolButtonTest
:
public
QObject
{
Q_OBJECT
public:
explicit
SaveToolButtonTest
(
QObject
*
parent
=
nullptr
);
~
SaveToolButtonTest
()
override
=
default
;
private
Q_SLOTS
:
void
shouldHaveDefaultValues
();
};
#endif // SAVETOOLBUTTONTEST_H
Write
Preview
Supports
Markdown
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