Commit 3037116
fix(selftest): pump-until guard for GotFocus_FiresOnA (#182)
The fixed two-pump guard added in #152 (and the same shape applied in
#139/#149 for TabView/RadioButtons/PasswordBox) still flaked at ~0.3%
across a 1000x sweep — 2 hits in 651 runs, both on `GotFocus_FiresOnA`.
The number of dispatcher ticks before programmatic Focus() raises
GotFocus isn't bounded, so any fixed pump count is a guess.
Replace the fixed pumps with a pump-until-counter-updates loop, capped
at 10 iterations (~200ms) to fail fast if the event genuinely never
fires. Applied to both focus transitions in the fixture.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 939d7ab commit 3037116
1 file changed
Lines changed: 8 additions & 7 deletions
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments