Skip to content
GitLab
Menu
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
59a85d8e
Commit
59a85d8e
authored
May 19, 2021
by
Tranter Madi
🌧
Browse files
[autotest] Add test for PlayListEntry's play button
parent
3fd169f7
Pipeline
#62479
passed with stage
in 8 minutes and 12 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
autotests/qmltests/tst_PlayListEntry.qml
View file @
59a85d8e
...
...
@@ -23,7 +23,6 @@ Item {
isSingleDiscAlbum
:
false
title
:
"
hello
"
isValid
:
true
isPlaying
:
MediaPlayList
.
IsPaused
isSelected
:
true
containsMouse
:
false
...
...
@@ -98,6 +97,8 @@ Item {
mouseMove
(
playPauseButtonItem
,
playPauseButtonItem
.
width
/
2
,
playPauseButtonItem
.
height
/
2
);
wait
(
300
);
// play
playListEntry
.
isPlaying
=
MediaPlayList
.
NotPlaying
mouseClick
(
playPauseButtonItem
);
compare
(
startPlaybackSpy
.
count
,
1
);
...
...
@@ -105,6 +106,23 @@ Item {
compare
(
removeFromPlaylistSpy
.
count
,
0
);
compare
(
switchToTrackSpy
.
count
,
1
);
// pause
playListEntry
.
isPlaying
=
MediaPlayList
.
IsPlaying
mouseClick
(
playPauseButtonItem
);
compare
(
startPlaybackSpy
.
count
,
1
);
compare
(
pausePlaybackSpy
.
count
,
1
);
compare
(
removeFromPlaylistSpy
.
count
,
0
);
compare
(
switchToTrackSpy
.
count
,
1
);
// resume
playListEntry
.
isPlaying
=
MediaPlayList
.
IsPaused
mouseClick
(
playPauseButtonItem
);
compare
(
startPlaybackSpy
.
count
,
2
);
compare
(
pausePlaybackSpy
.
count
,
1
);
compare
(
removeFromPlaylistSpy
.
count
,
0
);
compare
(
switchToTrackSpy
.
count
,
1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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