From 1604186aa1905f93e844936aef9812fc3f6e50a8 Mon Sep 17 00:00:00 2001 From: Jon Kazama Date: Wed, 19 Aug 2026 12:01:31 +0200 Subject: [PATCH] test(style): pin the type scale table, and mark three mirrors The arithmetic had tests from the first commit; the table in front of it did not. Factors is indexed by the enum, so a role inserted in the middle shifts every factor below it -- and each one still resolves to a plausible size, which is exactly why nothing would have failed. Three files were missing their TEST-MIRROR marker despite having mirrors. The marker is how the drift check finds them. --- HellionChat/Ui/StyleEngine/TypeScale.cs | 2 ++ HellionChat/Ui/StyleEngine/Widgets/ChannelHeaderDetail.cs | 2 ++ HellionChat/Util/LayoutFingerprint.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/HellionChat/Ui/StyleEngine/TypeScale.cs b/HellionChat/Ui/StyleEngine/TypeScale.cs index fc504e6..5316b12 100644 --- a/HellionChat/Ui/StyleEngine/TypeScale.cs +++ b/HellionChat/Ui/StyleEngine/TypeScale.cs @@ -7,6 +7,8 @@ internal enum TypeRole Meta, } +// TEST-MIRROR: Ui/TypeScaleTests.cs +// // Named sizes derived from one base, so a role means the same thing wherever it // is drawn. // diff --git a/HellionChat/Ui/StyleEngine/Widgets/ChannelHeaderDetail.cs b/HellionChat/Ui/StyleEngine/Widgets/ChannelHeaderDetail.cs index 50b6e0a..8932830 100644 --- a/HellionChat/Ui/StyleEngine/Widgets/ChannelHeaderDetail.cs +++ b/HellionChat/Ui/StyleEngine/Widgets/ChannelHeaderDetail.cs @@ -2,6 +2,8 @@ using System.Globalization; namespace HellionChat.Ui.StyleEngine.Widgets; +// TEST-MIRROR: Ui/ChannelHeaderDetailTests.cs +// // Where you are and what time it is, as two parts rather than one string. // // They are split because they cannot share a face. The clock and a world name are diff --git a/HellionChat/Util/LayoutFingerprint.cs b/HellionChat/Util/LayoutFingerprint.cs index f507d07..160f22c 100644 --- a/HellionChat/Util/LayoutFingerprint.cs +++ b/HellionChat/Util/LayoutFingerprint.cs @@ -1,5 +1,7 @@ namespace HellionChat.Util; +// TEST-MIRROR: Util/LayoutFingerprintGateTests.cs +// // Layout inputs that make a tab's cached row heights stale. Kept as a plain // value type so the build suite can pin the gate without an ImGui frame. internal readonly record struct LayoutFingerprint(