fix: stabilize title screen media and focus
This commit is contained in:
1 parent
1d5988bc03
commit
d34c1f6bb5
3 files changed
+28
-4
No files matched your search
@@ -25,9 +25,16 @@ class TitleScreenSourceTests(unittest.TestCase):
|
||||
self.assertIn("FInputModeUIOnly", source)
|
||||
self.assertIn("bShowMouseCursor = true", source)
|
||||
|
||||
def test_widget_accepts_and_forwards_keyboard_focus(self):
|
||||
source = read("Source/pogo/UI/PogoTitleScreenWidget.cpp")
|
||||
self.assertIn("SetIsFocusable(true)", source)
|
||||
self.assertIn("SetDesiredFocusWidget(PlayButton)", source)
|
||||
|
||||
def test_widget_uses_approved_media_and_layout(self):
|
||||
source = read("Source/pogo/UI/PogoTitleScreenWidget.cpp")
|
||||
self.assertIn('TEXT("./Movies/pogo.mp4")', source)
|
||||
self.assertIn("NewObject<UFileMediaSource>", source)
|
||||
self.assertIn('SetFilePath(TEXT("./Movies/pogo.mp4"))', source)
|
||||
self.assertIn("OpenSource(VideoSource)", source)
|
||||
self.assertIn("SetLooping(true)", source)
|
||||
self.assertIn("EStretch::ScaleToFill", source)
|
||||
self.assertIn("FAnchors(0.5f, 1.0f)", source)
|
||||
|
||||
Reference in new issue
Block a user