Files
magpie/internal/gui
yetone dbac411b2e gui: TestRestartedWindowIsDrawn puts the other app in front as the user would
The behind and cover cases start a WinForms window as "the app the user
is in" and wait 20 s for it to hold the foreground. Windows lets it take
the front only while the test's old magpie may give it away, and that
depends on what held the foreground before it: run alone on the Windows
box at d987cc7d5, quiet-behind failed with "old: the other app never
came to the front" after the asked case's window had the front, and in
a whole-package run three other behind/cover cases did. The restart
under test never ran in them.

Now, from a second on, the old process presses F15 (a key nothing
answers) and brings the form to the front, as the user's own press and
click would; input this process sent is what lets it give the
foreground away.

Run on the Windows box, interactive session: the whole test (13 cases)
at d987cc7d5 with this change, 13 of 13 green (1 red without it); at
this tree with the no-attention change below it, 13 of 13 green, twice (4 red
without it: quiet-behind, quiet-behind-max, quiet-cover,
quiet-cover-max, all at the same setup step).
2026-11-14 18:02:33 +08:00
..
…
…