mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Add clarifying comments for loop iterations per code review
Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -502,7 +502,7 @@ public class AdornmentNavigationTests
|
||||
// Test: Navigate through all focusable elements
|
||||
List<View> focusedViews = new ();
|
||||
|
||||
// Advance focus 4 times to cycle through all elements
|
||||
// Advance focus 4 times to cycle through all 4 elements (marginButton, borderButton, paddingButton, contentButton)
|
||||
for (var i = 0; i < 4; i++)
|
||||
{
|
||||
view.AdvanceFocus (NavigationDirection.Forward, TabBehavior.TabStop);
|
||||
@@ -599,6 +599,7 @@ public class AdornmentNavigationTests
|
||||
// Track which views receive focus
|
||||
List<string> focusedIds = new ();
|
||||
|
||||
// Navigate multiple times to test nested navigation (extra iteration to allow for wrapping)
|
||||
for (var i = 0; i < 5; i++)
|
||||
{
|
||||
if (parentPaddingButton.HasFocus)
|
||||
|
||||
Reference in New Issue
Block a user