QT regression fixes.
This commit is contained in:
1 parent
440400985b
commit
8cc293113e
9 files changed
+782
-5
No files matched your search
@@ -29,6 +29,75 @@ actions, including ones with the same label, do not inherit the evidence.
|
||||
|
||||
## Automated checks
|
||||
|
||||
Qt wizard pages can expose an unnamed frame inside a top-level dialog. Window
|
||||
ownership must resolve to the dialog, as it does for embedded frames in ordinary
|
||||
windows. Otherwise page controls are rejected as background events while buttons
|
||||
outside the page remain readable. Check Qt 5 and Qt 6 Tab and Shift+Tab traversal:
|
||||
|
||||
```sh
|
||||
python3 tests/native_qt_dialogs.py
|
||||
```
|
||||
|
||||
This uses a private Xvfb/AT-SPI session and verifies that both combos and the
|
||||
outside button retain the same foreground owner. For live acceptance in Mumble's
|
||||
Audio Tuning Wizard, check the input and output System/Device combos, positional
|
||||
audio checkbox, and Back/Next/Cancel buttons in both directions. Confirm speech
|
||||
and configured control sounds, combo selection changes, and return after
|
||||
switching workspaces. Also check an ordinary window containing nested frames and
|
||||
browser Find; the ancestry change must preserve their top-level owners.
|
||||
|
||||
The same fixture checks populated port and user-name fields with Home, End,
|
||||
Control+Left and Control+Right. Word capture bounds a nonnegative offset to the
|
||||
last existing character and returns an empty range for empty text, matching
|
||||
[Orca's word lookup](https://github.com/GNOME/orca/blob/main/src/orca/ax_text.py).
|
||||
Querying a Qt 5 line edit's word at the caret after its last character was
|
||||
reproduced freezing the entire provider, including subsequent Tab navigation.
|
||||
The original Mumble log's first 800 ms timeout was a caret event at offset 5 in
|
||||
the populated port field; later controls became invalid and the application
|
||||
stopped answering fresh AT-SPI clients. Recovering an already frozen application
|
||||
requires restarting it after loading the fixed reader. Private tests prevent
|
||||
the freeze; they do not establish live speech, sounds or physical Braille.
|
||||
|
||||
Qt's default word lookup also loops when it moves before offset zero on a
|
||||
leading separator or symbol. The regression matrix covers spaces, `/`, paths,
|
||||
leading whitespace, underscores, punctuation and negative numbers with Home,
|
||||
End and subsequent Tab navigation. At the start of a Qt field, a non-letter/
|
||||
non-number uses the provider's character boundary instead, preserving its native
|
||||
grapheme. Letters and numbers retain native word segmentation. Toolkit identity
|
||||
is queried on the application object; the control itself can return no name.
|
||||
|
||||
Exercise the installed Mumble's Settings pages with a silent native adapter:
|
||||
|
||||
```sh
|
||||
python3 tests/native_mumble_settings.py
|
||||
```
|
||||
|
||||
This uses its own display, bus, home, certificate and database, disables update
|
||||
checks and public-server loading, and uses test audio configuration. It selects
|
||||
every settings category and sends Tab and Shift+Tab while checking that the
|
||||
provider continues to answer synchronous geometry requests. It does not connect
|
||||
to a server or change the desktop Mumble instance. The adapter records native
|
||||
focus/caret captures without starting speech or Braille output.
|
||||
It requires Mumble, i3, OpenSSL, PyGObject, Xvfb, xdotool and the native build
|
||||
dependencies. Its i3 instance runs only on the private display. Window searches
|
||||
require both the fixture PID and title with xdotool's `--all` option.
|
||||
|
||||
The installed Mumble 1.5.939 also reproduces a button tab trap with only the
|
||||
silent adapter: Apply goes to Reset, Restore Defaults, Defaults (All), then
|
||||
Apply again, skipping Cancel and OK. Arrow keys follow the same cycle. This
|
||||
is distinct from provider freezing or lost speech. The harness now traces
|
||||
those buttons explicitly, verifies SetFocus on Cancel/OK/Apply through AT-SPI,
|
||||
requires Cthulhu to capture their focus events, and activates the focused OK
|
||||
button with Enter, checking that Settings closes.
|
||||
|
||||
An accessible route around that trap uses object navigation: from Apply,
|
||||
Cthulhu+Alt+Left twice reaches Cancel then OK in the accessibility tree.
|
||||
Cthulhu+Shift+A opens that object's actions; Press activates it, or SetFocus
|
||||
moves keyboard focus before ordinary Enter. The tab trap reproduced without
|
||||
Cthulhu's input handling, so these reader changes do not repair Mumble's
|
||||
native tab order. Test actual button reachability and activation separately
|
||||
from general responsive traversal.
|
||||
|
||||
Run the generic Qt 5 (PyQt5) and Qt 6 (PySide6) fixture with:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user