equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include <QtGui> |
|
18 #include <QtTest/QtTest> |
|
19 #include <QDebug> |
|
20 #include <hbapplication.h> |
|
21 #include <hbglobal_p.h> |
|
22 #include "hbphonemainwindow.h" |
|
23 |
|
24 |
|
25 class U_PhoneMainWindow: public QObject |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 U_PhoneMainWindow(); |
|
31 ~U_PhoneMainWindow(); |
|
32 |
|
33 private slots: |
|
34 void initTestCase(); |
|
35 void cleanupTestCase(); |
|
36 void testShow(); |
|
37 |
|
38 private: |
|
39 |
|
40 HbPhoneMainWindow* m_Window; // widget under test |
|
41 |
|
42 }; |
|
43 |
|
44 U_PhoneMainWindow::U_PhoneMainWindow() |
|
45 { |
|
46 } |
|
47 |
|
48 U_PhoneMainWindow::~U_PhoneMainWindow() |
|
49 { |
|
50 } |
|
51 |
|
52 void U_PhoneMainWindow::initTestCase() |
|
53 { |
|
54 |
|
55 m_Window = new HbPhoneMainWindow(); |
|
56 |
|
57 } |
|
58 |
|
59 void U_PhoneMainWindow::cleanupTestCase() |
|
60 { |
|
61 delete m_Window; |
|
62 } |
|
63 |
|
64 void U_PhoneMainWindow::testShow() |
|
65 { |
|
66 m_Window->show(); |
|
67 Q_ASSERT(m_Window->isVisible()); |
|
68 |
|
69 } |
|
70 |
|
71 HB_TEST_MAIN(U_PhoneMainWindow) |
|
72 #include "ut_phonemainwindow.moc" |
|