playlist GUI

This commit is contained in:
Dmitry Sergeev
2026-09-01 22:26:26 +03:00
parent cb5321cd8b
commit b0e7bc4cc3
7 changed files with 260 additions and 5 deletions
+2 -1
View File
@@ -47,6 +47,7 @@ func TestStartPlaylistTimingIgnoresInapplicableReadiness(t *testing.T) {
{name: "stale revision", current: NewPlaylistTiming(4, time.Second), revision: 3},
{name: "future revision", current: NewPlaylistTiming(4, time.Second), revision: 5},
{name: "already started", current: started, revision: 4},
{name: "expired", current: PlaylistTimingState{Revision: 4, Duration: time.Second, Expired: true}, revision: 4},
}
for _, test := range tests {
@@ -70,7 +71,7 @@ func TestExpirePlaylistTiming(t *testing.T) {
if !expired {
t.Fatal("ExpirePlaylistTiming() expired = false, want true")
}
want := PlaylistTimingState{Revision: 9, Duration: 5 * time.Second}
want := PlaylistTimingState{Revision: 9, Duration: 5 * time.Second, Expired: true}
if got != want {
t.Fatalf("ExpirePlaylistTiming() = %#v, want %#v", got, want)
}