Some lists were not auto reading results. Hopefully fixed.

This commit is contained in:
Storm Dragon committed 2026-10-12 04:55:31 -04:00
1 parent 0f59809e9a
commit d9aa40e16c
6 files changed
+151 -4

No files matched your search

+21 -3
View File
@@ -18,15 +18,15 @@ parser = argparse.ArgumentParser()
parser.add_argument("--build-dir", default="build")
parser.add_argument("--session", action="store_true")
parser.add_argument("--reader", choices=("cthulhu", "orca"))
parser.add_argument("--fixture", choices=("menu", "edit", "notepad", "list", "delphi", "winforms", "controls", "scintilla", "goldwave"), default="menu")
parser.add_argument("--fixture", choices=("menu", "edit", "notepad", "list", "listbox", "delphi", "winforms", "controls", "scintilla", "goldwave"), default="menu")
parser.add_argument("--notepadpp-exe", type=Path)
parser.add_argument("--goldwave-exe", type=Path)
parser.add_argument("--32-bit", dest="is32Bit", action="store_true")
parser.add_argument("--late-helper", action="store_true")
parser.add_argument("--restart-helper", action="store_true")
args = parser.parse_args()
if args.is32Bit and args.fixture not in ("menu", "edit", "winforms", "list", "delphi", "controls"):
parser.error("32-bit checks currently require --fixture menu, edit, winforms, list, delphi or controls")
if args.is32Bit and args.fixture not in ("menu", "edit", "winforms", "list", "listbox", "delphi", "controls"):
parser.error("32-bit checks currently require --fixture menu, edit, winforms, list, listbox, delphi or controls")
if (args.late_helper or args.restart_helper) and args.fixture not in ("edit", "winforms", "scintilla"):
parser.error("helper lifecycle checks require --fixture edit, winforms or scintilla")
if args.fixture == "scintilla" and (not args.notepadpp_exe or not args.notepadpp_exe.is_file()):
@@ -203,6 +203,24 @@ with tempfile.TemporaryDirectory(prefix="wine-access-menus-") as temporary:
assert not any(e[2] == "List1" for e in events), "Delphi generic client leaked"
print("PASS: Delphi list labels, rows, keyboard navigation, checkbox toggles, return, buttons and empty state")
sys.exit(0)
if args.fixture == "listbox":
listEvents = [e for e in events if e[3] == "list"]
for event in listEvents:
print(event[1:9])
assert any(e[1] == "focus" and e[2] == "Tutorial maps" and
e[4] == "First map" and e[7:9] == (1, 3)
for e in listEvents), "initial map or label missing"
selections = [(e[4], e[7], e[8]) for e in listEvents if e[1] == "selection"]
assert selections == [("Second map β", 2, 3), ("Third map", 3, 3),
("Second map β", 2, 3), ("", 0, 0)], \
f"map navigation/empty state missing or duplicated: {selections}"
assert sum(e[1] == "focus" and e[4] == "First map"
for e in listEvents) == 2, "return to map list missing or duplicated"
assert any(e[1] == "focus" and e[2] == "OK" for e in events), "button focus missing"
assert not any("Background-only" in str(e) for e in events), "background map leaked"
assert len({e[0] for e in listEvents}) == 1, "map events changed source identity"
print("PASS: list-box arrows, Unicode, positions, focus return, background exclusion and empty state")
sys.exit(0)
if args.fixture == "list":
listEvents = [e for e in events if e[3] == "list"]
for event in listEvents: