equal
deleted
inserted
replaced
30 class VideoCollectionWrapper; |
30 class VideoCollectionWrapper; |
31 class HbMainWindow; |
31 class HbMainWindow; |
32 class ListWidgetTester; |
32 class ListWidgetTester; |
33 class VideoServices; |
33 class VideoServices; |
34 class VideoListDataModel; |
34 class VideoListDataModel; |
|
35 class VideoCollectionUiLoader; |
35 |
36 |
36 class TestListWidget : public QObject |
37 class TestListWidget : public QObject |
37 { |
38 { |
38 Q_OBJECT |
39 Q_OBJECT |
39 |
40 |
43 |
44 |
44 // test functions for the test framework |
45 // test functions for the test framework |
45 private slots: |
46 private slots: |
46 |
47 |
47 /** |
48 /** |
48 * will be called automaticallybefore each testfunction is executed. |
49 * will be called automatically when test starts |
49 * |
50 * |
50 */ |
51 */ |
|
52 void initTestCase(); |
|
53 |
|
54 /** |
|
55 * will be called automatically before each testfunction is executed. |
|
56 * |
|
57 */ |
51 void init(); |
58 void init(); |
52 |
59 |
53 /** |
60 /** |
54 * will be called automaticallybefore after every testfunction. |
61 * will be called automatically after every testfunction. |
55 * |
62 * |
56 */ |
63 */ |
57 void cleanup(); |
64 void cleanup(); |
58 |
65 |
59 |
66 |
96 * verifies setContextMenu |
103 * verifies setContextMenu |
97 */ |
104 */ |
98 void testSetContextMenu(); |
105 void testSetContextMenu(); |
99 |
106 |
100 /** |
107 /** |
101 * verifies shareItemSlot |
108 * verifies doDelayedsSlot |
102 */ |
109 */ |
103 void testShareItemSlot(); |
110 void testDoDelayedsSlot(); |
104 |
111 |
105 /** |
112 /** |
106 * verifies deleteItemSlot |
113 * verifies deleteItemSlot |
107 */ |
114 */ |
108 void testDeleteItemSlot(); |
115 void testDeleteItemSlot(); |
111 * verifies renameSlot |
118 * verifies renameSlot |
112 */ |
119 */ |
113 void testRenameSlot(); |
120 void testRenameSlot(); |
114 |
121 |
115 /** |
122 /** |
|
123 * verifies playItemSlot |
|
124 */ |
|
125 void testPlayItemSlot(); |
|
126 |
|
127 /** |
116 * verifies playAllSlot |
128 * verifies playAllSlot |
117 */ |
129 */ |
118 void testPlayAllSlot(); |
130 void testPlayAllSlot(); |
119 |
131 |
120 /** |
132 /** |
121 * verifies addItemSlot |
133 * verifies addToCollectionSlot |
122 */ |
|
123 void testAddItemSlot(); |
|
124 |
|
125 /** |
|
126 * verifies addToCollectionSlot() |
|
127 */ |
134 */ |
128 void testAddToCollectionSlot(); |
135 void testAddToCollectionSlot(); |
|
136 |
|
137 /** |
|
138 * verifies removeFromCollectionSlot |
|
139 */ |
|
140 void testRemoveFromCollectionSlot(); |
|
141 |
|
142 /** |
|
143 * verifies removeCollectionSlot |
|
144 */ |
|
145 void testRemoveCollectionSlot(); |
129 |
146 |
130 /** |
147 /** |
131 * verifies openDetailsSlot() |
148 * verifies openDetailsSlot() |
132 */ |
149 */ |
133 void testOpenDetailsSlot(); |
150 void testOpenDetailsSlot(); |
136 * verifies back() |
153 * verifies back() |
137 */ |
154 */ |
138 void testBack(); |
155 void testBack(); |
139 |
156 |
140 /** |
157 /** |
|
158 * verifies scrollingStartedSlot |
|
159 */ |
|
160 void testScrollingStartedSlot(); |
|
161 |
|
162 /** |
141 * verifies scrollingEndedSlot(); |
163 * verifies scrollingEndedSlot(); |
142 */ |
164 */ |
143 void testScrollingEndedSlot(); |
165 void testScrollingEndedSlot(); |
144 |
166 |
145 /** |
167 /** |
146 * verifies scrollPositionChangedSlot(); |
168 * verifies scrollPositionChangedSlot(); |
147 */ |
169 */ |
148 void testScrollPositionChangedSlot(); |
170 void testScrollPositionChangedSlot(); |
|
171 |
|
172 /** |
|
173 * verifies scrollPositionTimerSlot() |
|
174 */ |
|
175 void testScrollPositionTimerSlot(); |
149 |
176 |
150 signals: |
177 signals: |
151 |
178 |
152 /** |
179 /** |
153 * test signal |
180 * test signal |
172 |
199 |
173 /** |
200 /** |
174 * dummy main wnd |
201 * dummy main wnd |
175 */ |
202 */ |
176 HbMainWindow *mDummyMainWnd; |
203 HbMainWindow *mDummyMainWnd; |
177 |
204 |
|
205 /** |
|
206 * stub -uiloader |
|
207 */ |
|
208 VideoCollectionUiLoader *mTestUiLoader; |
178 }; |
209 }; |
179 |
210 |
180 |
211 |
181 #endif // __TESTLISTWIDGET_H__ |
212 #endif // __TESTLISTWIDGET_H__ |
182 |
213 |