videocollection/videocollectionview/tsrc/testcollectionview/src/testcollectionview.cpp
equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: tester for methods in VideoSortFilterProxyModel |
14 * Description: tester for methods in VideoProxyModelGeneric |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include "xqplugin.h" |
18 #include "xqplugin.h" |
19 #include "xqserviceutilstub.h" |
19 #include "xqserviceutilstub.h" |
108 mTestView->createView(); |
108 mTestView->createView(); |
109 |
109 |
110 HbMainWindow *window = hbInstance->allMainWindows().value(0); |
110 HbMainWindow *window = hbInstance->allMainWindows().value(0); |
111 if (window) |
111 if (window) |
112 { |
112 { |
113 window->addView(mTestView->getView()); |
113 HbView *view = qobject_cast<HbView*>(mTestView->getView()); |
|
114 window->addView(view); |
114 } |
115 } |
115 } |
116 } |
116 |
117 |
117 // --------------------------------------------------------------------------- |
118 // --------------------------------------------------------------------------- |
118 // cleanup |
119 // cleanup |
345 |
346 |
346 QTimerEvent timerEvent(mTestView->mTimerId); |
347 QTimerEvent timerEvent(mTestView->mTimerId); |
347 QApplication::sendEvent(mTestView, &timerEvent); |
348 QApplication::sendEvent(mTestView, &timerEvent); |
348 QVERIFY(commandSpy.count() == 1); |
349 QVERIFY(commandSpy.count() == 1); |
349 QVERIFY(delayedSpy.count() == 1); |
350 QVERIFY(delayedSpy.count() == 1); |
350 |
|
351 } |
351 } |
352 |
352 |
353 // --------------------------------------------------------------------------- |
353 // --------------------------------------------------------------------------- |
354 // testGetView |
354 // testGetView |
355 // --------------------------------------------------------------------------- |
355 // --------------------------------------------------------------------------- |