Removed obsolete unittest
authorKaj Wallin <kaj.wallin@ixonos.com>
Wed, 26 May 2010 13:19:11 +0000 (16:19 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Wed, 26 May 2010 13:19:11 +0000 (16:19 +0300)
Reviewed by:

tests/ui/zoombuttonpanel/testzoombuttonpanel.cpp [deleted file]
tests/ui/zoombuttonpanel/testzoombuttonpanel.pro [deleted file]

diff --git a/tests/ui/zoombuttonpanel/testzoombuttonpanel.cpp b/tests/ui/zoombuttonpanel/testzoombuttonpanel.cpp
deleted file mode 100644 (file)
index 58cbdfd..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
-   Situare - A location system for Facebook
-   Copyright (C) 2010  Ixonos Plc. Authors:
-
-       Pekka Nissinen - pekka.nissinen@ixonos.com
-
-   Situare 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.
-
-   Situare 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 Situare; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
-   USA.
-*/
-
-#include <QtTest>
-
-#include "../../../src/ui/zoombuttonpanel.h"
-
-class TestZoomButtonPanel : public QObject
-{
-    Q_OBJECT
-
-private slots:
-    /**
-      * @brief Test case for initialization
-      */
-    void init();
-
-    /**
-      * @brief Test case for disabling Zoom In button
-      */
-    void disableZoomIn();
-
-    /**
-      * @brief Test case for disabling Zoom Out button
-      */
-    void disableZoomOut();
-
-    /**
-      * @brief Test case for resetting buttons
-      */
-    void reset();
-};
-
-void TestZoomButtonPanel::init()
-{
-    // Create a new instance of ZoomButtonPanel
-    ZoomButtonPanel zoomButtonPanel(0, 10, 10);
-
-    // Check that panel is positioned to the right place
-    QCOMPARE(zoomButtonPanel.pos(), QPoint(10, 10));
-
-    // Check that both of the buttons images are loaded successfully
-    QVERIFY(zoomButtonPanel.m_zoomInButton != 0);
-    QVERIFY(zoomButtonPanel.m_zoomOutButton != 0);
-
-    // Check that both of the button icons are at normal mode
-    QVERIFY(zoomButtonPanel.m_zoomInButton->mode() == QIcon::Normal);
-    QVERIFY(zoomButtonPanel.m_zoomOutButton->mode() == QIcon::Normal);
-}
-
-void TestZoomButtonPanel::disableZoomIn()
-{
-    // Create a new instance of ZoomButtonPanel
-    ZoomButtonPanel zoomButtonPanel(0, 0, 0);
-
-    // Disable the button
-    zoomButtonPanel.disableZoomInButton();
-
-    // Check that Zoom In button is disabled
-    QVERIFY(zoomButtonPanel.m_zoomInButton->mode() == QIcon::Disabled);
-}
-
-void TestZoomButtonPanel::disableZoomOut()
-{
-    // Create a new instance of ZoomButtonPanel
-    ZoomButtonPanel zoomButtonPanel(0, 0, 0);
-
-    // Disable the button
-    zoomButtonPanel.disableZoomOutButton();
-
-    // Check that Zoom In button is disabled
-    QVERIFY(zoomButtonPanel.m_zoomOutButton->mode() == QIcon::Disabled);
-}
-
-void TestZoomButtonPanel::reset()
-{
-    // Create a new instance of ZoomButtonPanel
-    ZoomButtonPanel zoomButtonPanel(0, 0, 0);
-
-    // Set both buttons to disabled mode
-    zoomButtonPanel.m_zoomInButton->setMode(QIcon::Disabled);
-    zoomButtonPanel.m_zoomOutButton->setMode(QIcon::Disabled);
-
-    // Reset the buttons
-    zoomButtonPanel.resetButtons();
-
-    // Check that both buttons are properly resetted to normal mode
-    QVERIFY(zoomButtonPanel.m_zoomInButton->mode() == QIcon::Normal);
-    QVERIFY(zoomButtonPanel.m_zoomOutButton->mode() == QIcon::Normal);
-}
-
-QTEST_MAIN(TestZoomButtonPanel)
-#include "testzoombuttonpanel.moc"
diff --git a/tests/ui/zoombuttonpanel/testzoombuttonpanel.pro b/tests/ui/zoombuttonpanel/testzoombuttonpanel.pro
deleted file mode 100644 (file)
index 9b46a68..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-# #####################################################################
-# Automatically generated by qmake (2.01a) Mon May 18 15:38:16 2010
-# #####################################################################
-CONFIG += qtestlib
-TEMPLATE = app
-TARGET =
-DEPENDPATH += .
-INCLUDEPATH += . \
-    ../../../src/
-
-# Input
-SOURCES += testzoombuttonpanel.cpp \
-    ../../../src/ui/zoombuttonpanel.cpp \
-    ../../../src/ui/imagebutton.cpp
-HEADERS += ../../../src/ui/zoombuttonpanel.h \
-    ../../../src/ui/imagebutton.h
-
-DEFINES += QT_NO_DEBUG_OUTPUT
-RESOURCES += ../../../images.qrc