Commit caf86cbd authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

fix ViewManagerTests automatic tests

parent 84001921
......@@ -33,6 +33,7 @@ private Q_SLOTS:
{
qRegisterMetaType<ViewManager::ViewsType>("ViewManager::ViewsType");
qRegisterMetaType<ViewManager::SortOrder>("ViewManager::SortOrder");
qRegisterMetaType<ViewManager::RadioSpecificStyle>("ViewManager::RadioSpecificStyle");
qRegisterMetaType<ViewManager::AlbumViewStyle>("ViewManager::AlbumViewStyle");
qRegisterMetaType<ElisaUtils::PlayListEntryType>("ElisaUtils::PlayListEntryType");
qRegisterMetaType<ElisaUtils::FilterType>("ElisaUtils::FilterType");
......@@ -67,7 +68,7 @@ private Q_SLOTS:
QCOMPARE(switchOffAllViewsSpy.count(), 0);
QCOMPARE(popOneViewSpy.count(), 0);
QCOMPARE(openListViewSpy.at(0).count(), 12);
QCOMPARE(openListViewSpy.at(0).count(), 13);
QCOMPARE(openListViewSpy.at(0).at(3), QStringLiteral("album1"));
QCOMPARE(openListViewSpy.at(0).at(4), QStringLiteral("artist1"));
}
......@@ -258,7 +259,7 @@ private Q_SLOTS:
QCOMPARE(switchOffAllViewsSpy.count(), 0);
QCOMPARE(popOneViewSpy.count(), 1);
QCOMPARE(openListViewSpy.at(0).count(), 12);
QCOMPARE(openListViewSpy.at(0).count(), 13);
QCOMPARE(openListViewSpy.at(0).at(0).value<ViewManager::ViewsType>(), ViewManager::OneAlbumFromArtist);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment