logsui/logsapp/tsrc/ut_logsapp/src/ut_logsrecentcallsview.cpp
changeset 11 64a47b97e1e1
parent 10 b04270301d3b
child 14 f27aebe284bb
equal deleted inserted replaced
10:b04270301d3b 11:64a47b97e1e1
   249     QVERIFY( mRecentCallsView->mFilter->filterType() == LogsFilter::All );
   249     QVERIFY( mRecentCallsView->mFilter->filterType() == LogsFilter::All );
   250     
   250     
   251     HbAction*  action = new HbAction();
   251     HbAction*  action = new HbAction();
   252     action->setObjectName(logsShowFilterMissedMenuActionId);
   252     action->setObjectName(logsShowFilterMissedMenuActionId);
   253     mRecentCallsView->changeFilter(action);
   253     mRecentCallsView->changeFilter(action);
       
   254     // Scrollbar is disbaled while changing the list and is restored when appearByMoving slot is called
       
   255     QVERIFY( mRecentCallsView->mListView->verticalScrollBarPolicy() == HbScrollArea::ScrollBarAlwaysOff );
   254     
   256     
   255     // Because of effects, filter is not changed immediately, simulate effect completion
   257     // Because of effects, filter is not changed immediately, simulate effect completion
   256     QVERIFY( mRecentCallsView->mAppearingView == LogsServices::ViewMissed );
   258     QVERIFY( mRecentCallsView->mAppearingView == LogsServices::ViewMissed );
   257     mRecentCallsView->dissappearByMovingComplete();
   259     mRecentCallsView->dissappearByMovingComplete();
   258     QVERIFY( mRecentCallsView->mFilter->filterType() == LogsFilter::Missed );        
   260     QVERIFY( mRecentCallsView->mFilter->filterType() == LogsFilter::Missed );   
       
   261     mRecentCallsView->appearByMovingComplete();
       
   262     QVERIFY( mRecentCallsView->mListView->verticalScrollBarPolicy() != HbScrollArea::ScrollBarAlwaysOff );
   259     
   263     
   260     delete action;
   264     delete action;
   261     delete mRecentCallsView->mListView;
   265     delete mRecentCallsView->mListView;
   262     mRecentCallsView->mListView = 0;
   266     mRecentCallsView->mListView = 0;
   263     delete mRecentCallsView->mViewName;
   267     delete mRecentCallsView->mViewName;