fix(ui): no space inside the wordmark — adjacent Runs again
The comment I added between the two <Run> elements introduced whitespace, and whitespace between inline Runs collapses to a rendered space: the wordmark read "LlamaCas ty". The comment moved above the TextBlock, the Runs are contiguous, and UiShellTests asserts them adjacent so a future edit cannot re-introduce the gap.
This commit is contained in:
@@ -63,7 +63,9 @@ public class UiShellTests
|
||||
public void The_wordmark_ty_stays_youtube_red_and_ctrl_opens_the_context_menu()
|
||||
{
|
||||
var topBar = SourceAssert.Text("Controls", "TopBar.xaml");
|
||||
Assert.Contains("<Run Text=\"ty\" Foreground=\"{StaticResource Brush.Youtube}\"/>", topBar);
|
||||
// Adjacent, with nothing between: whitespace inside a TextBlock between inline Runs
|
||||
// collapses to a space and prints "LlamaCas ty" (this exact bug shipped once).
|
||||
Assert.Contains("<Run Text=\"LlamaCas\" Foreground=\"{StaticResource Brush.OnSurface}\"/><Run Text=\"ty\" Foreground=\"{StaticResource Brush.Youtube}\"/>", topBar);
|
||||
|
||||
// Plain right-click is the zoom box; the context menu moved to Ctrl+right-click so a
|
||||
// creator can change capture sources mid-stream.
|
||||
|
||||
Reference in New Issue
Block a user