90
|
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: Main test class for hsHomeScreenStatePlugin library.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include <hbmainwindow.h>
|
|
19 |
#include <hbinstance.h>
|
|
20 |
#include <hbview.h>
|
|
21 |
#include <hblistview.h>
|
|
22 |
#include <hbaction.h>
|
|
23 |
#include <hblistviewitem.h>
|
|
24 |
#include <qscopedpointer>
|
|
25 |
#include <hbmessagebox.h>
|
|
26 |
|
|
27 |
#include "hsapplibrarystate.h"
|
|
28 |
#include "hscollectionstate.h"
|
|
29 |
#include "caentry.h"
|
|
30 |
#include "caitemmodel.h"
|
|
31 |
#include "hsmenuview.h"
|
|
32 |
#include "hsmenuevent.h"
|
|
33 |
#include "hsallcollectionsstate.h"
|
|
34 |
#include "hsmenueventtransition.h"
|
|
35 |
#include "hsallappsstate.h"
|
|
36 |
#include "hsinstalledappsstate.h"
|
|
37 |
#include "hsoperatorhandler_p.h"
|
|
38 |
#include "hsoperatorhandler.h"
|
|
39 |
#include "hsmenuservice.h"
|
97
|
40 |
#include "hsscene.h"
|
90
|
41 |
|
|
42 |
#include "t_hsaddtohomescreenmockstate.h"
|
|
43 |
#include "t_hsmockmodel.h"
|
|
44 |
#include "t_applibrarystate.h"
|
|
45 |
|
|
46 |
#include "hsmenumodetransition.h"
|
|
47 |
|
|
48 |
#ifdef QT_EXTENSIONS
|
|
49 |
#include <XQSettingsManager>
|
|
50 |
|
|
51 |
const int IncludeOperatorStore = 0x00000001;
|
|
52 |
const int RemoveOviStore = 0x00000008;
|
|
53 |
//const char *operatorStoreIconPath
|
|
54 |
// = "z:/private/20022F35/customsvg/operatorstore.svg";
|
|
55 |
|
97
|
56 |
|
|
57 |
// ---------------------------------------------------------------------------
|
|
58 |
//
|
|
59 |
// ---------------------------------------------------------------------------
|
|
60 |
//
|
90
|
61 |
void MenuStatesTest::OperatorHandler_storesPresent()
|
|
62 |
{
|
|
63 |
HsOperatorHandler oviHandler;
|
|
64 |
XQSettingsManager man;
|
|
65 |
|
|
66 |
bool value = oviHandler.m_q->storeValue(&man, IncludeOperatorStore);
|
|
67 |
oviHandler.m_q->mOperatorStorePresent = value;
|
|
68 |
QCOMPARE(oviHandler.operatorStorePresent(), value);
|
|
69 |
|
|
70 |
bool value1 = !oviHandler.m_q->storeValue(&man, RemoveOviStore);
|
|
71 |
oviHandler.m_q->mOviStorePresent = value1;
|
|
72 |
QCOMPARE(oviHandler.oviStorePresent(), value1);
|
|
73 |
|
|
74 |
}
|
|
75 |
|
97
|
76 |
// ---------------------------------------------------------------------------
|
|
77 |
//
|
|
78 |
// ---------------------------------------------------------------------------
|
|
79 |
//
|
90
|
80 |
void MenuStatesTest::OperatorHandler_first()
|
|
81 |
{
|
|
82 |
HsOperatorHandler oviHandler;
|
|
83 |
XQSettingsManager man;
|
|
84 |
|
|
85 |
bool value = oviHandler.m_q->operatorStoreFirst(&man);
|
|
86 |
oviHandler.m_q->mOperatorStoreFirst = value;
|
|
87 |
QCOMPARE(oviHandler.operatorStoreFirst(), value);
|
|
88 |
}
|
|
89 |
|
97
|
90 |
// ---------------------------------------------------------------------------
|
|
91 |
//
|
|
92 |
// ---------------------------------------------------------------------------
|
|
93 |
//
|
90
|
94 |
void MenuStatesTest::OperatorHandler_type()
|
|
95 |
{
|
|
96 |
HsOperatorHandler oviHandler;
|
|
97 |
XQSettingsManager man;
|
|
98 |
|
|
99 |
HsOperatorHandlerPrivate::HsStoreType value
|
|
100 |
= oviHandler.m_q->operatorStoreType(&man);
|
|
101 |
QVERIFY(value == HsOperatorHandlerPrivate::ApplicationType
|
|
102 |
|| value == HsOperatorHandlerPrivate::UrlType
|
|
103 |
|| value == HsOperatorHandlerPrivate::NoneType);
|
|
104 |
}
|
|
105 |
|
97
|
106 |
// ---------------------------------------------------------------------------
|
|
107 |
//
|
|
108 |
// ---------------------------------------------------------------------------
|
|
109 |
//
|
90
|
110 |
void MenuStatesTest::OperatorHandler_createAction()
|
|
111 |
{
|
|
112 |
HsOperatorHandler oviHandler;
|
|
113 |
oviHandler.m_q->mIcon = HbIcon();
|
|
114 |
HbAction *action = oviHandler.prepareOperatorStoreAction(new HbAction);
|
|
115 |
QVERIFY(action->icon().isNull());
|
|
116 |
}
|
|
117 |
|
|
118 |
#endif//QT_EXTENSIONS
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
97
|
123 |
// ---------------------------------------------------------------------------
|
|
124 |
//
|
|
125 |
// ---------------------------------------------------------------------------
|
|
126 |
//
|
90
|
127 |
class HsMainWindowMock : public HsMainWindow
|
|
128 |
{
|
|
129 |
virtual void setCurrentView(HbView *view);
|
|
130 |
|
|
131 |
};
|
|
132 |
|
97
|
133 |
// ---------------------------------------------------------------------------
|
|
134 |
//
|
|
135 |
// ---------------------------------------------------------------------------
|
|
136 |
//
|
90
|
137 |
void HsMainWindowMock::setCurrentView(HbView *view)
|
|
138 |
{
|
|
139 |
Q_UNUSED(view);
|
|
140 |
// do nothing
|
|
141 |
}
|
|
142 |
|
97
|
143 |
// ---------------------------------------------------------------------------
|
|
144 |
//
|
|
145 |
// ---------------------------------------------------------------------------
|
|
146 |
//
|
90
|
147 |
void MenuStatesTest::cleanup()
|
|
148 |
{
|
|
149 |
qApp->processEvents();
|
|
150 |
}
|
|
151 |
|
|
152 |
// ---------------------------------------------------------------------------
|
97
|
153 |
//
|
90
|
154 |
// ---------------------------------------------------------------------------
|
|
155 |
//
|
|
156 |
void MenuStatesTest::ApplicationLibraryState_construction()
|
|
157 |
{
|
|
158 |
#ifdef Q_OS_SYMBIAN
|
|
159 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
160 |
#ifdef UT_MEMORY_CHECK
|
|
161 |
__UHEAP_MARK;
|
|
162 |
#endif//UT_MEMORY_CHECK
|
|
163 |
#endif//Q_OS_SYMBIAN
|
|
164 |
{
|
|
165 |
QString qApplications(hbTrId("txt_applib_title_applications"));
|
|
166 |
|
|
167 |
QScopedPointer<HsAppLibraryState > appLibraryState(new HsAppLibraryState);
|
|
168 |
|
|
169 |
QCOMPARE(appLibraryState->mMenuViewBuilder.currentView()->title(),
|
|
170 |
qApplications);
|
|
171 |
QVERIFY(appLibraryState->mAllAppsState);
|
|
172 |
QVERIFY(appLibraryState->mAllCollectionsState);
|
|
173 |
}
|
|
174 |
#ifdef Q_OS_SYMBIAN
|
|
175 |
#ifdef UT_MEMORY_CHECK
|
|
176 |
__UHEAP_MARKEND;
|
|
177 |
#endif//UT_MEMORY_CHECK
|
|
178 |
#endif//Q_OS_SYMBIAN
|
|
179 |
}
|
|
180 |
|
|
181 |
// ---------------------------------------------------------------------------
|
97
|
182 |
//
|
90
|
183 |
// ---------------------------------------------------------------------------
|
|
184 |
//
|
|
185 |
void MenuStatesTest::ApplicationLibraryState_historySlots()
|
|
186 |
{
|
|
187 |
#ifdef Q_OS_SYMBIAN
|
|
188 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
189 |
#ifdef UT_MEMORY_CHECK
|
|
190 |
__UHEAP_MARK;
|
|
191 |
#endif//UT_MEMORY_CHECK
|
|
192 |
#endif//Q_OS_SYMBIAN
|
|
193 |
{
|
|
194 |
HsAppLibraryState appLibrary;
|
|
195 |
|
|
196 |
appLibrary.allCollectionsStateEntered();
|
|
197 |
QCOMPARE(qobject_cast<QAbstractState *>(appLibrary.mAllCollectionsState),
|
98
|
198 |
appLibrary.mHistoryTransition->targetState());
|
90
|
199 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions().length(), 1);
|
|
200 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->sourceState(),
|
|
201 |
qobject_cast<QState *>(appLibrary.mInstalledAppsState));
|
|
202 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->targetState(),
|
|
203 |
qobject_cast<QAbstractState *>(appLibrary.mAllCollectionsState));
|
|
204 |
|
|
205 |
appLibrary.allAppsStateEntered();
|
|
206 |
QCOMPARE(qobject_cast<QAbstractState *>(appLibrary.mAllAppsState),
|
98
|
207 |
appLibrary.mHistoryTransition->targetState());
|
90
|
208 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions().length(), 1);
|
|
209 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->sourceState(),
|
|
210 |
qobject_cast<QState *>(appLibrary.mInstalledAppsState));
|
|
211 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->targetState(),
|
|
212 |
qobject_cast<QAbstractState *>(appLibrary.mAllAppsState));
|
|
213 |
|
|
214 |
appLibrary.collectionStateEntered();
|
|
215 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions().length(), 1);
|
|
216 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->sourceState(),
|
|
217 |
qobject_cast<QState *>(appLibrary.mInstalledAppsState));
|
|
218 |
QCOMPARE(appLibrary.mInstalledAppsState->transitions()[0]->targetState(),
|
|
219 |
qobject_cast<QAbstractState *>(appLibrary.mCollectionState));
|
|
220 |
|
|
221 |
}
|
|
222 |
#ifdef Q_OS_SYMBIAN
|
|
223 |
#ifdef UT_MEMORY_CHECK
|
|
224 |
__UHEAP_MARKEND;
|
|
225 |
#endif//UT_MEMORY_CHECK
|
|
226 |
#endif//Q_OS_SYMBIAN
|
|
227 |
}
|
|
228 |
|
|
229 |
// ---------------------------------------------------------------------------
|
97
|
230 |
//
|
90
|
231 |
// ---------------------------------------------------------------------------
|
|
232 |
//
|
|
233 |
void MenuStatesTest::ApplicationLibraryState_backSteppingAction()
|
|
234 |
{
|
|
235 |
#ifdef Q_OS_SYMBIAN
|
|
236 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
237 |
#ifdef UT_MEMORY_CHECK
|
|
238 |
__UHEAP_MARK;
|
|
239 |
#endif//UT_MEMORY_CHECK
|
|
240 |
#endif//Q_OS_SYMBIAN
|
|
241 |
{
|
|
242 |
QScopedPointer<HbMainWindow> wind(new HbMainWindow);
|
97
|
243 |
HsScene::setInstance( new HsScene(wind.data()) );
|
90
|
244 |
//create statemachine to perform transitions
|
|
245 |
QScopedPointer<QStateMachine> machine(new QStateMachine(0));
|
|
246 |
|
|
247 |
HsAppLibraryState *appLibrary = new HsAppLibraryState(machine.data());
|
|
248 |
|
|
249 |
machine->setInitialState(appLibrary);
|
|
250 |
|
|
251 |
machine->start();
|
|
252 |
|
|
253 |
qApp->sendPostedEvents();
|
|
254 |
//initiate transition from collection state
|
|
255 |
appLibrary->mCollectionState->openAppLibrary();
|
|
256 |
|
|
257 |
qApp->sendPostedEvents();
|
|
258 |
|
|
259 |
QVERIFY(appLibrary->mAllAppsState->mMenuView->view()->menu());
|
|
260 |
machine->stop();
|
|
261 |
qApp->removePostedEvents(0);
|
|
262 |
disconnect(appLibrary,SIGNAL(initialize()),this,SLOT(appLibraryEntered()));
|
|
263 |
|
|
264 |
qApp->processEvents();
|
|
265 |
}
|
|
266 |
#ifdef Q_OS_SYMBIAN
|
|
267 |
#ifdef UT_MEMORY_CHECK
|
|
268 |
__UHEAP_MARKEND;
|
|
269 |
#endif//UT_MEMORY_CHECK
|
|
270 |
#endif//Q_OS_SYMBIAN
|
|
271 |
}
|
|
272 |
|
|
273 |
// ---------------------------------------------------------------------------
|
97
|
274 |
//
|
90
|
275 |
// ---------------------------------------------------------------------------
|
|
276 |
//
|
|
277 |
void MenuStatesTest::ApplicationLibraryState_clearToolbarLatch()
|
|
278 |
{
|
|
279 |
#ifdef Q_OS_SYMBIAN
|
|
280 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
281 |
#ifdef UT_MEMORY_CHECK
|
|
282 |
__UHEAP_MARK;
|
|
283 |
#endif//UT_MEMORY_CHECK
|
|
284 |
#endif//Q_OS_SYMBIAN
|
|
285 |
{
|
|
286 |
HsAppLibraryState appLibrary;
|
|
287 |
appLibrary.mMenuViewBuilder.allAppsAction()->setChecked(true);
|
|
288 |
appLibrary.mMenuViewBuilder.toolBarActionGroup()->checkedAction()->setChecked(true);
|
|
289 |
appLibrary.clearToolbarLatch();
|
|
290 |
QVERIFY(appLibrary.mMenuViewBuilder.toolBarActionGroup()->checkedAction() == NULL);
|
|
291 |
}
|
|
292 |
#ifdef Q_OS_SYMBIAN
|
|
293 |
#ifdef UT_MEMORY_CHECK
|
|
294 |
__UHEAP_MARKEND;
|
|
295 |
#endif//UT_MEMORY_CHECK
|
|
296 |
#endif//Q_OS_SYMBIAN
|
|
297 |
}
|
|
298 |
|
|
299 |
// ---------------------------------------------------------------------------
|
97
|
300 |
//
|
90
|
301 |
// ---------------------------------------------------------------------------
|
|
302 |
//
|
|
303 |
#ifdef QT_EXTENSIONS
|
|
304 |
void MenuStatesTest::ApplicationLibraryState_oviStoreAction()
|
|
305 |
{
|
|
306 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
307 |
#ifdef UT_MEMORY_CHECK
|
|
308 |
__UHEAP_MARK;
|
|
309 |
#endif//UT_MEMORY_CHECK
|
|
310 |
{
|
|
311 |
HsAppLibraryState appLibrary;
|
|
312 |
QVERIFY(appLibrary.oviStoreAction()==0);
|
|
313 |
}
|
|
314 |
#ifdef UT_MEMORY_CHECK
|
|
315 |
__UHEAP_MARKEND;
|
|
316 |
#endif//UT_MEMORY_CHECK
|
|
317 |
}
|
|
318 |
|
|
319 |
// ---------------------------------------------------------------------------
|
97
|
320 |
//
|
90
|
321 |
// ---------------------------------------------------------------------------
|
|
322 |
//
|
|
323 |
void MenuStatesTest::OperatorHandler_icon()
|
|
324 |
{
|
|
325 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
326 |
#ifdef UT_MEMORY_CHECK
|
|
327 |
__UHEAP_MARK;
|
|
328 |
#endif//UT_MEMORY_CHECK
|
|
329 |
{
|
|
330 |
HsOperatorHandler oviHandler;
|
|
331 |
XQSettingsManager man;
|
|
332 |
HbIcon testIcon = oviHandler.m_q->createIcon(&man);
|
|
333 |
oviHandler.m_q->mIcon = testIcon;
|
|
334 |
QCOMPARE(oviHandler.icon(), testIcon);
|
|
335 |
}
|
|
336 |
#ifdef UT_MEMORY_CHECK
|
|
337 |
__UHEAP_MARKEND;
|
|
338 |
#endif//UT_MEMORY_CHECK
|
|
339 |
}
|
|
340 |
|
|
341 |
// ---------------------------------------------------------------------------
|
97
|
342 |
//
|
90
|
343 |
// ---------------------------------------------------------------------------
|
|
344 |
//
|
|
345 |
void MenuStatesTest::OperatorHandler_text()
|
|
346 |
{
|
|
347 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
348 |
#ifdef UT_MEMORY_CHECK
|
|
349 |
__UHEAP_MARK;
|
|
350 |
#endif//UT_MEMORY_CHECK
|
|
351 |
{
|
|
352 |
HsOperatorHandler oviHandler;
|
|
353 |
XQSettingsManager man;
|
|
354 |
|
|
355 |
QString testText = oviHandler.m_q->operatorStoreTitle(&man);
|
|
356 |
oviHandler.m_q->mOperatorStoreTitle = testText;
|
|
357 |
QCOMPARE(oviHandler.text(), testText);
|
|
358 |
}
|
|
359 |
#ifdef UT_MEMORY_CHECK
|
|
360 |
__UHEAP_MARKEND;
|
|
361 |
#endif//UT_MEMORY_CHECK
|
|
362 |
}
|
|
363 |
|
|
364 |
// ---------------------------------------------------------------------------
|
97
|
365 |
//
|
90
|
366 |
// ---------------------------------------------------------------------------
|
|
367 |
//
|
|
368 |
void MenuStatesTest::OperatorHandler_action()
|
|
369 |
{
|
|
370 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
371 |
#ifdef UT_MEMORY_CHECK
|
|
372 |
__UHEAP_MARK;
|
|
373 |
#endif//UT_MEMORY_CHECK
|
|
374 |
{
|
|
375 |
HsOperatorHandler oviHandler;
|
|
376 |
HbIcon testIcon;
|
|
377 |
oviHandler.m_q->mIcon = testIcon;
|
|
378 |
oviHandler.m_q->mOperatorEntry = new CaEntry;;
|
|
379 |
QCOMPARE(oviHandler.icon(), testIcon);
|
|
380 |
oviHandler.action();
|
|
381 |
QCOMPARE(oviHandler.icon(), testIcon);
|
|
382 |
}
|
|
383 |
#ifdef UT_MEMORY_CHECK
|
|
384 |
__UHEAP_MARKEND;
|
|
385 |
#endif//UT_MEMORY_CHECK
|
|
386 |
}
|
|
387 |
|
|
388 |
// ---------------------------------------------------------------------------
|
97
|
389 |
//
|
90
|
390 |
// ---------------------------------------------------------------------------
|
|
391 |
//
|
|
392 |
void MenuStatesTest::OperatorHandler_entry()
|
|
393 |
{
|
|
394 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
395 |
#ifdef UT_MEMORY_CHECK
|
|
396 |
__UHEAP_MARK;
|
|
397 |
#endif//UT_MEMORY_CHECK
|
|
398 |
{
|
|
399 |
HsOperatorHandler oviHandler;
|
|
400 |
XQSettingsManager man;
|
|
401 |
|
|
402 |
CaEntry *testAppEntry = oviHandler.m_q->createAppEntry(&man);
|
|
403 |
oviHandler.m_q->mOperatorEntry = testAppEntry;
|
|
404 |
//if entry is NULL then tahts because there were no key in CR
|
|
405 |
//if it is not NULL then it must be application
|
|
406 |
QVERIFY(!testAppEntry || testAppEntry->entryTypeName() ==
|
|
407 |
Hs::applicationTypeName);
|
|
408 |
|
|
409 |
CaEntry *testUrlEntry = oviHandler.m_q->createUrlEntry(&man);
|
|
410 |
oviHandler.m_q->mOperatorEntry = testUrlEntry;
|
|
411 |
//similar as for application above
|
|
412 |
QVERIFY(!testUrlEntry || testUrlEntry->entryTypeName() ==
|
|
413 |
Hs::urlTypeName);
|
|
414 |
|
|
415 |
}
|
|
416 |
#ifdef UT_MEMORY_CHECK
|
|
417 |
__UHEAP_MARKEND;
|
|
418 |
#endif//UT_MEMORY_CHECK
|
|
419 |
}
|
|
420 |
|
|
421 |
// ---------------------------------------------------------------------------
|
97
|
422 |
//
|
90
|
423 |
// ---------------------------------------------------------------------------
|
|
424 |
//
|
|
425 |
void MenuStatesTest::OperatorHandler_noCrWriteAccess()
|
|
426 |
{
|
|
427 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
428 |
#ifdef UT_MEMORY_CHECK
|
|
429 |
__UHEAP_MARK;
|
|
430 |
#endif//UT_MEMORY_CHECK
|
|
431 |
{
|
|
432 |
// XQSettingsManager *crManager = new XQSettingsManager;
|
|
433 |
// XQCentralRepositorySettingsKey urlKey(AppLibUid, OperatorUrl);
|
|
434 |
// QVariant urlVarian = crManager->readItemValue(
|
|
435 |
// urlKey, XQSettingsManager::TypeString);
|
|
436 |
// QString dbg = urlVarian.toString();
|
|
437 |
// bool result = crManager->writeItemValue(urlKey, QVariant("test"));
|
|
438 |
// QCOMPARE(result, false);
|
|
439 |
}
|
|
440 |
#ifdef UT_MEMORY_CHECK
|
|
441 |
__UHEAP_MARKEND;
|
|
442 |
#endif//UT_MEMORY_CHECK
|
|
443 |
}
|
|
444 |
#endif//QT_EXTENSIONS
|
|
445 |
|
|
446 |
// ---------------------------------------------------------------------------
|
97
|
447 |
//
|
90
|
448 |
// ---------------------------------------------------------------------------
|
|
449 |
//
|
|
450 |
void MenuStatesTest::HsBaseViewState_createApplicationLaunchFailMessage()
|
|
451 |
{
|
|
452 |
#ifdef Q_OS_SYMBIAN
|
|
453 |
User::ResetInactivityTime();//it should help for Viewserver11 panic
|
|
454 |
#ifdef UT_MEMORY_CHECK
|
|
455 |
__UHEAP_MARK;
|
|
456 |
#endif//UT_MEMORY_CHECK
|
|
457 |
#endif//Q_OS_SYMBIAN
|
|
458 |
{
|
|
459 |
HsMenuViewBuilder menuViewBuilder;
|
|
460 |
HsMenuModeWrapper menuMode;
|
|
461 |
HsMainWindow mainWindow;
|
|
462 |
|
|
463 |
HsAllAppsState viewState(menuViewBuilder, menuMode, mainWindow);
|
|
464 |
|
|
465 |
int errCode = -333;
|
|
466 |
int dummyItemId = 555;
|
|
467 |
viewState.createApplicationLaunchFailMessage(errCode,dummyItemId);
|
|
468 |
QVERIFY(!viewState.mApplicationLaunchFailMessage.isNull());
|
|
469 |
|
|
470 |
QVERIFY(viewState.mApplicationLaunchFailMessage->close());
|
|
471 |
QTest::qWait(2000);
|
|
472 |
}
|
|
473 |
#ifdef Q_OS_SYMBIAN
|
|
474 |
#ifdef UT_MEMORY_CHECK
|
|
475 |
__UHEAP_MARKEND;
|
|
476 |
#endif//UT_MEMORY_CHECK
|
|
477 |
#endif//Q_OS_SYMBIAN
|
|
478 |
}
|
|
479 |
|
|
480 |
|
|
481 |
QTEST_MAIN(MenuStatesTest)
|