Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
6026c09e
Commit
6026c09e
authored
Mar 07, 2020
by
Alexander Stippich
Browse files
wait for data changed in test
parent
189712b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/mediaplaylistproxymodeltest.cpp
View file @
6026c09e
...
...
@@ -1537,6 +1537,7 @@ void MediaPlayListProxyModelTest::testRestoreSettings()
QSignalSpy randomPlayChangedSpy(&myPlayList, &MediaPlayListProxyModel::randomPlayChanged);
QSignalSpy repeatPlayChangedSpy(&myPlayList, &MediaPlayListProxyModel::repeatPlayChanged);
QSignalSpy playListFinishedSpy(&myPlayList, &MediaPlayListProxyModel::playListFinished);
QSignalSpy dataChangedSpy(&myPlayList, &MediaPlayListProxyModel::dataChanged);
myDatabaseContent.init(QStringLiteral("testDbDirectContent"));
...
...
@@ -1573,6 +1574,8 @@ void MediaPlayListProxyModelTest::testRestoreSettings()
QStringLiteral("track1"), {}},
ElisaUtils::Track);
QVERIFY(dataChangedSpy.wait());
QCOMPARE(currentTrackChangedSpy.count(), 1);
QCOMPARE(randomPlayChangedSpy.count(), 0);
QCOMPARE(repeatPlayChangedSpy.count(), 0);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment