diff options
| author | salmonik <raisersoft@proton.me> | 2026-07-06 15:58:01 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-07-06 15:58:01 +0200 |
| commit | fdfe24213d70b5548fb09051a0e32b7224210231 (patch) | |
| tree | ced63779d57e44fa35a896b27bf07e9eee120d5f /tests | |
| parent | add MPRIS support and non-blocking notifs (diff) | |
| download | rsplayer-fdfe24213d70b5548fb09051a0e32b7224210231.tar.gz rsplayer-fdfe24213d70b5548fb09051a0e32b7224210231.zip | |
add track index to MPRIS
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/daemon.rs | 1 | ||||
| -rw-r--r-- | tests/queue.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/daemon.rs b/tests/daemon.rs index e5cb270..01241fd 100644 --- a/tests/daemon.rs +++ b/tests/daemon.rs | |||
| @@ -26,6 +26,7 @@ fn test_scrobble_state_clear() { | |||
| 26 | title: Some("Test".into()), | 26 | title: Some("Test".into()), |
| 27 | artist: Some("Artist".into()), | 27 | artist: Some("Artist".into()), |
| 28 | album: None, | 28 | album: None, |
| 29 | track_number: None, | ||
| 29 | duration_secs: Some(200.0), | 30 | duration_secs: Some(200.0), |
| 30 | is_stream: false, | 31 | is_stream: false, |
| 31 | }; | 32 | }; |
diff --git a/tests/queue.rs b/tests/queue.rs index 59311d2..2eaa6f3 100644 --- a/tests/queue.rs +++ b/tests/queue.rs | |||
| @@ -14,6 +14,7 @@ fn track(path: &str, title: Option<&str>, artist: Option<&str>, album: Option<&s | |||
| 14 | title: title.map(|s| s.to_string()), | 14 | title: title.map(|s| s.to_string()), |
| 15 | artist: artist.map(|s| s.to_string()), | 15 | artist: artist.map(|s| s.to_string()), |
| 16 | album: album.map(|s| s.to_string()), | 16 | album: album.map(|s| s.to_string()), |
| 17 | track_number: None, | ||
| 17 | duration_secs: None, | 18 | duration_secs: None, |
| 18 | is_stream: false, | 19 | is_stream: false, |
| 19 | } | 20 | } |
| @@ -25,6 +26,7 @@ fn track_no_meta(path: &str) -> Track { | |||
| 25 | title: None, | 26 | title: None, |
| 26 | artist: None, | 27 | artist: None, |
| 27 | album: None, | 28 | album: None, |
| 29 | track_number: None, | ||
| 28 | duration_secs: None, | 30 | duration_secs: None, |
| 29 | is_stream: false, | 31 | is_stream: false, |
| 30 | } | 32 | } |
