Make harness synthetic input settle postponed fix-ups

Task: 2026/07/31/make-harness-input-drive-postponed-fixups
This commit is contained in:
John Preston
2026-08-03 12:42:25 +04:00
committed by 23rd
parent 7d42ef410f
commit f7c00e667c
5 changed files with 93 additions and 7 deletions

View File

@@ -328,7 +328,9 @@ The repository carries a permanent test harness under
tolerance assertions, `LogGeometry`, the standard markers.
- `test_widgets.h``FindAll<T>`/`FindFirst<T>`/`FindVisible<T>` (the `dynamic_cast`-based
finders that avoid the guaranteed `findChildren<CustomWidget*>` crash), `Click`, `TypeText`,
`PressKey` via real Qt events.
`PressKey` via real Qt events — each delivered event is followed by a drain of every pending
`Ui::PostponeCall` (`SettlePostponedCalls()`), so postponed input fix-ups are settled when
the helper returns; call `SettlePostponedCalls()` yourself after programmatic `setText`.
- `test_capture.h``CaptureWidget`/`CaptureRect` (visibility check, `QWidget::grab()` so
floating elements and locked desktops cannot occlude, automatic blank-image FAIL, geometry
log, `SCREENSHOT` marker), `Crop`/`Zoom`/`ContactSheet` for tight same-scale evidence.