Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

test(setup): freeze the showcase before checking localized media

Blackspiritsfea4fa024fa3
diff --git a/tests/Filee.Setup.Tests/SetupWindowTests.cs b/tests/Filee.Setup.Tests/SetupWindowTests.cs
index 3a2ab72a..6bb6024a 100644
--- a/tests/Filee.Setup.Tests/SetupWindowTests.cs
+++ b/tests/Filee.Setup.Tests/SetupWindowTests.cs
@@ -107,6 +107,11 @@ public class SetupWindowTests
Assert.Equal(62, model.Percent);
var slides = window.GetVisualDescendants().OfType<SlideShow>().Single();
Assert.True(slides.IsEffectivelyVisible);
+ // A busy runner can pass the six-second interval while pumping layout. Freeze the
+ // showcase and select the known slide before checking its language-specific media.
+ slides.AutoAdvance = null;
+ slides.GoTo(0);
+ Pump();
Assert.Equal(model.Deck!.Slides.Count, slides.Slides.Count);
Assert.Equal(model.Deck.Slides[0].MediaFor(language).Source, slides.Media.Source);
Assert.True(slides.Media.HasPicture);