mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/src/unittest_mpcollectioncontainers.cpp
changeset 48 af3740e3753f
parent 29 8192e5b5c935
child 51 560ce2306a17
--- a/mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/src/unittest_mpcollectioncontainers.cpp	Tue Jul 06 14:13:36 2010 +0300
+++ b/mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/src/unittest_mpcollectioncontainers.cpp	Wed Aug 18 09:46:20 2010 +0300
@@ -245,7 +245,7 @@
     QVERIFY(allSongs->mIndexFeedback->itemView() == allSongs->mList);
 
     // Normal mode. Should see count.
-    QCOMPARE(allSongs->mInfoBar->heading(), hbTrId("txt_mus_subhead_ln_songs", 5));
+    QCOMPARE(allSongs->mInfoBar->heading(), hbTrId("txt_mus_subhead_songs_l1").arg( 5 ) );
 }
 
 /*!
@@ -802,7 +802,7 @@
     mCollectionData->mCurrentAlbumAvailable = false;
     artists->mAlbumIndexOffset = 0;
     artists->mCurrentAlbumIndex = 0;
-    artists->albumCentered();
+    artists->albumCentered( QModelIndex() );
     QCOMPARE(artists->mCurrentAlbumIndex, -1);
     QCOMPARE(spy.count(), 1);
     QCOMPARE(qvariant_cast<int>(spy.at(0).at(0)), -1);
@@ -810,14 +810,14 @@
     mCollectionData->mCurrentAlbumAvailable = true;
     artists->mAlbumIndexOffset = 0;
     artists->mCurrentAlbumIndex = 0;
-    artists->albumCentered();
+    artists->albumCentered( QModelIndex() );
     QCOMPARE(artists->mCurrentAlbumIndex, -1);
     QCOMPARE(spy.count(), 1);
 
     // Re-centered on same item
     artists->mAlbumIndexOffset = 1;
     artists->mCurrentAlbumIndex = 0;
-    artists->albumCentered();
+    artists->albumCentered( QModelIndex() );
     QCOMPARE(spy.count(), 1);
 }
 
@@ -833,20 +833,20 @@
 
     mCollectionData->mCurrentAlbumAvailable = false;
     albums->mCurrentAlbumIndex = 0;
-    albums->albumCentered();
+    albums->albumCentered( QModelIndex() );
     QCOMPARE(albums->mCurrentAlbumIndex, -1);
     QCOMPARE(spy.count(), 1);
     QCOMPARE(qvariant_cast<int>(spy.at(0).at(0)), -1);
 
     mCollectionData->mCurrentAlbumAvailable = true;
     albums->mCurrentAlbumIndex = 0;
-    albums->albumCentered();
+    albums->albumCentered( QModelIndex() );
     QCOMPARE(albums->mCurrentAlbumIndex, -1);
     QCOMPARE(spy.count(), 1);
 
     // Re-centered on same item
     albums->mCurrentAlbumIndex = -1;
-    albums->albumCentered();
+    albums->albumCentered( QModelIndex() );
     QCOMPARE(spy.count(), 1);
 }