From: Kaj Wallin Date: Wed, 31 Mar 2010 07:56:17 +0000 (+0300) Subject: Fixed test case filenames to lower case X-Git-Tag: v0.2~68^2~3 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=83ea6317a25ebdf1500e8904be45a5508a71f833;p=situare Fixed test case filenames to lower case --- diff --git a/tests/testUI/testTabs/testTabs b/tests/testUI/testTabs/testTabs deleted file mode 100755 index e0f4b1e..0000000 Binary files a/tests/testUI/testTabs/testTabs and /dev/null differ diff --git a/tests/testUI/testTabs/testTabs.pro b/tests/testUI/testTabs/testTabs.pro deleted file mode 100644 index 2871166..0000000 --- a/tests/testUI/testTabs/testTabs.pro +++ /dev/null @@ -1,17 +0,0 @@ -# ##################################################################### -# Automatically generated by qmake (2.01a) Wed Mar 31 09:43:35 2010 -# ##################################################################### -CONFIG += qtestlib -TEMPLATE = app -TARGET = -DEPENDPATH += . -INCLUDEPATH += . - -# Input -SOURCES += testtabs.cpp \ - ../../../src/ui/mapviewtab.cpp \ - ../../../src/ui/mainwindow.cpp \ - ../../../src/ui/listviewtab.cpp -HEADERS += ../../../src/ui/mapviewtab.h \ - ../../../src/ui/mainwindow.h \ - ../../../src/ui/listviewtab.h diff --git a/tests/testUI/testTabs/testtabs.cpp b/tests/testUI/testTabs/testtabs.cpp deleted file mode 100644 index 875af9c..0000000 --- a/tests/testUI/testTabs/testtabs.cpp +++ /dev/null @@ -1,51 +0,0 @@ - /* - Situare - A location system for Facebook - Copyright (C) 2010 Ixonos Plc. Authors: - - Kaj Wallin - kaj.wallin@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 -#include -#include - -#include "../../../src/ui/mapviewtab.h" -#include "../../../src/ui/listviewtab.h" -#include "../../../src/ui/mainwindow.h" - -class testTabs : public QObject -{ - Q_OBJECT -private slots: - void testTabChanges(); -}; - -void testTabs::testTabChanges() -{ - MainWindow mainwindow; - mainwindow.toListView(); - QCOMPARE(mainwindow.situareViews->currentIndex(), 0); - mainwindow.toMapView(); - QCOMPARE(mainwindow.situareViews->currentIndex(), 1); - mainwindow.toMapView(); - QCOMPARE(mainwindow.situareViews->currentIndex(), 1); - mainwindow.toListView(); - QCOMPARE(mainwindow.situareViews->currentIndex(), 0); -} - -QTEST_MAIN(testTabs) -#include "testtabs.moc" diff --git a/tests/testUI/testtabs/testtabs b/tests/testUI/testtabs/testtabs new file mode 100755 index 0000000..2a002e0 Binary files /dev/null and b/tests/testUI/testtabs/testtabs differ diff --git a/tests/testUI/testtabs/testtabs.cpp b/tests/testUI/testtabs/testtabs.cpp new file mode 100644 index 0000000..875af9c --- /dev/null +++ b/tests/testUI/testtabs/testtabs.cpp @@ -0,0 +1,51 @@ + /* + Situare - A location system for Facebook + Copyright (C) 2010 Ixonos Plc. Authors: + + Kaj Wallin - kaj.wallin@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 +#include +#include + +#include "../../../src/ui/mapviewtab.h" +#include "../../../src/ui/listviewtab.h" +#include "../../../src/ui/mainwindow.h" + +class testTabs : public QObject +{ + Q_OBJECT +private slots: + void testTabChanges(); +}; + +void testTabs::testTabChanges() +{ + MainWindow mainwindow; + mainwindow.toListView(); + QCOMPARE(mainwindow.situareViews->currentIndex(), 0); + mainwindow.toMapView(); + QCOMPARE(mainwindow.situareViews->currentIndex(), 1); + mainwindow.toMapView(); + QCOMPARE(mainwindow.situareViews->currentIndex(), 1); + mainwindow.toListView(); + QCOMPARE(mainwindow.situareViews->currentIndex(), 0); +} + +QTEST_MAIN(testTabs) +#include "testtabs.moc" diff --git a/tests/testUI/testtabs/testtabs.pro b/tests/testUI/testtabs/testtabs.pro new file mode 100644 index 0000000..c4f7930 --- /dev/null +++ b/tests/testUI/testtabs/testtabs.pro @@ -0,0 +1,19 @@ +###################################################################### +# Automatically generated by qmake (2.01a) Wed Mar 31 10:55:19 2010 +###################################################################### + +CONFIG += qtestlib +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . + +# Input +HEADERS += ../../../src/ui/mapviewtab.h \ + ../../../src/ui/listviewtab.h \ + ../../../src/ui/mainwindow.h \ + testtabs.moc +SOURCES += testtabs.cpp \ + ../../../src/ui/mapviewtab.cpp \ + ../../../src/ui/listviewtab.cpp \ + ../../../src/ui/mainwindow.cpp