test(selftest): show what each type role actually resolves to

Block A ends with no call site in the message list -- that arrives in block C --
so without this step there would be nothing to look at and two helpers with no
caller at all.

It draws rather than asserts, because asserting proves the wrong thing here.
SimplePushedFont pushes nothing at all when a handle is not ready, silently, and
the text then renders in whatever face was already active. A step that compares
two numbers and reports Pass would sail straight past that. So this one puts a
timestamp, a sender and a body line next to each other and lets them be looked
at, with expected-against-actual printed underneath.

The three weight buttons exist because the alternative was three builds and a
plugin restart between each, and nobody compares a typeface across a restart.
RebuildDelegateFonts is synchronous on this thread, so the sample row picks up
the new rasterisation on the next frame.
This commit is contained in:
2026-08-19 09:50:56 +02:00
parent 0916f8d1fb
commit 81456c981b
2 changed files with 153 additions and 0 deletions
+1
View File
@@ -497,6 +497,7 @@ public sealed class Plugin : IAsyncDalamudPlugin
new SelfTests.HoverStateFootprintStep(),
new SelfTests.HonorificHeaderRenderStep(this),
new SelfTests.AboutIntegrationsStatusStep(this),
new SelfTests.TypeScaleStep(this),
new SelfTests.PerformanceBaselineStep(this),
new SelfTests.GlobalStyleScopeAllocStep(this),
new SelfTests.MainWindowFocusOpacityStep(this),