Decouple lower third from audience display mode so that it can be shown on top of other elements.

This commit is contained in:
Patrick Fairbank
2020-03-28 14:37:26 -07:00
parent 5a5f9ca366
commit 244ddce9e4
5 changed files with 32 additions and 38 deletions

View File

@@ -46,13 +46,13 @@ func TestSetupLowerThirds(t *testing.T) {
time.Sleep(time.Millisecond * 10)
lowerThird, _ = web.arena.Database.GetLowerThirdById(2)
assert.Equal(t, "Top Text 5", lowerThird.TopText)
assert.Equal(t, "lowerThird", web.arena.AudienceDisplayMode)
assert.Equal(t, true, web.arena.ShowLowerThird)
ws.Write("hideLowerThird", model.LowerThird{2, "Top Text 6", "Bottom Text 1", 0, 0})
time.Sleep(time.Millisecond * 10)
lowerThird, _ = web.arena.Database.GetLowerThirdById(2)
assert.Equal(t, "Top Text 6", lowerThird.TopText)
assert.Equal(t, "blank", web.arena.AudienceDisplayMode)
assert.Equal(t, false, web.arena.ShowLowerThird)
ws.Write("reorderLowerThird", map[string]interface{}{"Id": 2, "moveUp": false})
time.Sleep(time.Millisecond * 100)