[skip ci] video player button focus nudge
This commit is contained in:
1 parent
21c0900fac
commit
29dd94352e
9 files changed
+93
-4
No files matched your search
@@ -2,6 +2,7 @@
|
||||
' INPUT fields, and asserts the rendered child fields: fill clip width, playhead translation, M:SS labels,
|
||||
' the raised handle while a transport is active, the glyph swap, and the live layout (Rewind live TV / offset
|
||||
' / ● LIVE swap). clippingRect reads back as {x,y,width,height} on the render thread.
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
|
||||
namespace Tests
|
||||
|
||||
@@ -198,7 +199,7 @@ namespace Tests
|
||||
m.assertEqual(m.top.findNode("remainingLabel").text, "")
|
||||
' the badge styling: red bullet + bold size-30 LIVE. blendColor reads back as a signed 32-bit int.
|
||||
m.AssertBlend(m.top.findNode("bullet").blendColor, &hD53E5AFF)
|
||||
m.assertEqual(m.top.findNode("liveLabel").text, Tr("LIVE"))
|
||||
m.assertEqual(m.top.findNode("liveLabel").text, Tr(Locale.RowCell.Live))
|
||||
' the badge is right-aligned to the track end whatever the language ("EN DIRECT" >> "LIVE").
|
||||
lbl = m.top.findNode("liveLabel")
|
||||
m.assertTrue(Abs((lbl.translation[0] + lbl.boundingRect().width) - 1144) < 2, "badge right edge pinned to the track end")
|
||||
|
||||
Reference in new issue
Block a user