2005-09-07 00:51:35 +02:00
|
|
|
/*
|
|
|
|
Unit tests for Plasma::AppletInfo
|
|
|
|
|
|
|
|
Copyright (C) 2005 Aaron Seigo <aseigo@kde.org>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License version 2 as published by
|
|
|
|
the Free Software Foundation.
|
|
|
|
|
|
|
|
This program 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 General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2005-10-05 10:44:32 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-09-07 00:51:35 +02:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2005-09-07 22:23:08 +02:00
|
|
|
#ifndef testappletinfo_h_
|
|
|
|
#define testappletinfo_h_
|
2005-09-07 00:51:35 +02:00
|
|
|
|
2005-09-07 22:23:08 +02:00
|
|
|
#include <QtTest/QtTest>
|
2007-01-29 18:14:20 +01:00
|
|
|
#include <kcomponentdata.h>
|
2005-09-07 22:23:08 +02:00
|
|
|
|
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
class AppletInfo;
|
|
|
|
}
|
|
|
|
class KAboutData;
|
2005-09-07 00:51:35 +02:00
|
|
|
|
|
|
|
class TestAppletInfo: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
TestAppletInfo(QObject* parent = 0);
|
2005-09-07 22:49:49 +02:00
|
|
|
~TestAppletInfo();
|
2005-09-07 00:51:35 +02:00
|
|
|
|
2006-01-20 12:09:06 +01:00
|
|
|
private Q_SLOTS:
|
2005-09-07 22:23:08 +02:00
|
|
|
void name_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void name();
|
2005-09-07 22:23:08 +02:00
|
|
|
void comment_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void comment();
|
2005-09-07 22:23:08 +02:00
|
|
|
void icon_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void icon();
|
2005-09-07 22:23:08 +02:00
|
|
|
void library_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void library();
|
2005-09-07 22:23:08 +02:00
|
|
|
void languageBindings_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void languageBindings();
|
2005-09-07 22:23:08 +02:00
|
|
|
void desktopFilePath_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void desktopFilePath();
|
2005-09-07 22:23:08 +02:00
|
|
|
void desktopFile_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void desktopFile();
|
2005-09-07 22:23:08 +02:00
|
|
|
void unique_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void unique();
|
2005-09-07 22:23:08 +02:00
|
|
|
void hidden_data(QtTestTable& t);
|
2005-09-07 00:51:35 +02:00
|
|
|
void hidden();
|
2005-10-03 19:37:22 +02:00
|
|
|
void assignment();
|
|
|
|
void copyConstructor();
|
2005-10-05 22:44:14 +02:00
|
|
|
void dragAndDrop();
|
2005-09-07 00:51:35 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Plasma::AppletInfo* notUniqueNative;
|
|
|
|
Plasma::AppletInfo* uniqueJavascript;
|
2005-09-07 22:23:08 +02:00
|
|
|
KAboutData* m_aboutData;
|
2007-01-29 18:14:20 +01:00
|
|
|
KComponentData m_componentData;
|
2005-09-07 00:51:35 +02:00
|
|
|
};
|
2005-09-07 22:23:08 +02:00
|
|
|
|
|
|
|
#endif
|