RynthCore as of 2026-11-19 (internal 5046b95): release 2026.11.19.1

This commit is contained in:
Tom Bohar 2026-11-19 21:35:21 -05:00
commit 3fafd29133
8 changed files with 129 additions and 60 deletions

View file

@ -110,7 +110,7 @@ internal static unsafe class Program
Guard("CreateFailureBrowserFails", () => CheckCreateFailureBrowserFails(s));
Guard("NoFocusFromAnotherProcess", () => { int r = CheckNoFocusFromAnotherProcess(s); if (r > 0) handle = r; });
Guard("VisibilitySameProcess", () => handle = CheckVisibilitySameProcess(s));
Unverified("VisibilityOtherProcess", "needs another process to take the foreground (alt-tab); the harness never forces it. Owner in-game check.");
Unverified("VisibilityOtherProcess", "the panel should stay shown, under the other program, while another process holds the foreground (alt-tab); the harness never forces it. Owner in-game check.");
Guard("LayoutRemembered", () => handle = CheckLayout(s, lad));
Guard("UnloadAfterCloseCollected", () => CheckUnloadAfterClose(ref s, handle));
@ -700,8 +700,8 @@ internal static unsafe class Program
W($"session 2 open: state [{string.Join(",", State(s, h))}] host visible {visible}");
var sd = Stopwatch.StartNew();
s.Call("Shutdown", 2000);
W($"Shutdown(2000) returned in {sd.ElapsedMilliseconds} ms (panel open; window shown only if the harness held the foreground)");
UnloadAndJudge("UnloadWhileVisibleCollected", ref s, visible ? null : "collected, but the panel window was not visible (the PID rule hid it: the harness did not hold the foreground), so the visible-teardown path was not shown");
W($"Shutdown(2000) returned in {sd.ElapsedMilliseconds} ms (panel open)");
UnloadAndJudge("UnloadWhileVisibleCollected", ref s, visible ? null : "collected, but the panel window was not visible (hidden or not yet shown), so the visible-teardown path was not shown");
}
private static void UnloadAndJudge(string name, ref Session s, string? unverifiedIfCollected = null)

View file

@ -163,16 +163,13 @@ internal static unsafe class Program
private static void Visibility()
{
Case("Visibility");
// open, alive, !iconic, visible, !fgNull, fgPid, ourPid
Eq(WebPanelWindowPolicy.Visible(true, true, false, true, false, 5, 5), (bool?)true, "same process shows");
Eq(WebPanelWindowPolicy.Visible(true, true, false, true, false, 6, 5), (bool?)false, "other process hides");
Eq(WebPanelWindowPolicy.Visible(true, true, false, true, true, 0, 5), (bool?)null, "null foreground keeps current");
Eq(WebPanelWindowPolicy.Visible(true, true, true, true, false, 5, 5), (bool?)false, "iconic hides");
Eq(WebPanelWindowPolicy.Visible(false, true, false, true, false, 5, 5), (bool?)false, "closed hides");
Eq(WebPanelWindowPolicy.Visible(true, false, false, true, false, 5, 5), (bool?)false, "dead game hides");
Eq(WebPanelWindowPolicy.Visible(true, true, false, false, false, 5, 5), (bool?)false, "invisible game hides");
Eq(WebPanelWindowPolicy.Visible(false, true, false, true, true, 0, 5), (bool?)false, "closed beats null foreground");
Eq(WebPanelWindowPolicy.Visible(true, true, true, true, true, 0, 5), (bool?)false, "iconic beats null foreground");
// open, alive, iconic, visible: the foreground window no longer counts (clicking the game or another program keeps it)
Eq(WebPanelWindowPolicy.Visible(true, true, false, true), true, "open over a shown game shows");
Eq(WebPanelWindowPolicy.Visible(true, true, true, true), false, "iconic hides");
Eq(WebPanelWindowPolicy.Visible(false, true, false, true), false, "closed hides");
Eq(WebPanelWindowPolicy.Visible(true, false, false, true), false, "dead game hides");
Eq(WebPanelWindowPolicy.Visible(true, true, false, false), false, "invisible game hides");
Eq(WebPanelWindowPolicy.Visible(false, false, true, false), false, "closed beats everything");
}
private static void Layout()