|
1 /* |
|
2 * Copyright (c) 2010 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: Tests for hsapplibrarystateplugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef T_COLLECTIONSSTATE_H |
|
19 #define T_COLLECTIONSSTATE_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <HbMainWindow> |
|
23 |
|
24 class HbAbstractViewItem; |
|
25 class QStateMachine; |
|
26 |
|
27 /** |
|
28 * @test Test class for homescreen::hsutils modules. |
|
29 */ |
|
30 class MenuStatesTest : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 private slots: |
|
35 |
|
36 /* |
|
37 * Tests |
|
38 */ |
|
39 void construction(); |
|
40 void updateLabel(); |
|
41 |
|
42 void contextMenuConstruct(); |
|
43 void contextMenuConstructNonEmptyCollection(); |
|
44 void addAppsAction(); |
|
45 void renameAction(); |
|
46 void deleteAppsAction(); |
|
47 void addElementToHomeScreen(); |
|
48 void addCollectionShortcutToHomeScreenAction(); |
|
49 void latestOnTopMenuAction(); |
|
50 void oldestOnTopMenuAction(); |
|
51 void createArrangeCollection(); |
|
52 #ifdef Q_OS_SYMBIAN |
|
53 void openTaskSwitcher(); |
|
54 #endif//Q_OS_SYMBIAN |
|
55 void listItemActivated(); |
|
56 void listItemLongPressed(); |
|
57 void contextMenuAction(); |
|
58 void disableSearchAction(); |
|
59 |
|
60 |
|
61 void init(); |
|
62 /** |
|
63 * cleanup |
|
64 */ |
|
65 void cleanup(); |
|
66 private: |
|
67 HbMainWindow *mWindow; |
|
68 }; |
|
69 #endif // T_COLLECTIONSSTATE_H |