Modified menu-selectable UI to tab-selectable UI
[situare] / tests / testUI / testui.cpp
1 /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5        Henri Lampela - henri.lampela@ixonos.com
6        Kaj Wallin - kaj.wallin@ixonos.com
7
8     Situare is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License
10     version 2 as published by the Free Software Foundation.
11
12     Situare is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with Situare; if not, write to the Free Software
19     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
20     USA.
21  */
22
23 #include <QtGui>
24 #include <QtTest/QtTest>
25 #include "../../src/ui/mainwindow.h"
26
27 class TestUi: public QObject
28 {
29     Q_OBJECT
30
31 private slots:
32     void testUi();
33     void testViews();
34 };
35
36 void TestUi::testUi()
37 {
38     QLineEdit lineEdit;
39
40     QTest::keyClicks(&lineEdit, "UI test");
41
42     QCOMPARE(lineEdit.text(), QString("UI test"));
43 }
44
45 void TestUi::testViews()
46 {
47
48 }
49
50
51 QTEST_MAIN(TestUi)
52 #include "testui.moc"