Add browser accessibility for Chromium windows
Chromium-based Windows applications under Wine (Electron, CEF) exposed only what the legacy MSAA path could announce, one event at a time. The helper now starts a publisher for each Chromium window: a PE worker reads the page through MSAA and IAccessible2 inside the prefix, and a native ATK publisher presents it on the accessibility bus as toolkit Chromium, matching native Linux Chromium, so the reader's own browser support handles browse mode, structural navigation, forms, tables and live regions. Once a window is published, legacy announcements for it stop, so nothing is spoken twice; if the publisher fails, the window returns to the legacy path and the helper retries with backoff. Publishers follow the helper's lifetime. The publisher marks itself with WINE_ACCESS_BROWSER_PUBLISHER=1 and gives each frame a wine-access-x11-window attribute so readers can verify window ownership. Password text, values and boundaries never leave the worker. Design, mapping rules and verification are in docs/browser.md; the IAccessible2 IDL is vendored in third_party/ia2. Checked: xvfb-run ctest (all 10, including the new browser-publisher-snapshot comparison with native Chromium 158 and Electron 42), menu_integration.py with the menu and edit fixtures, the Orca extension unit tests, and tests/browser/live_checks.sh against Electron 45: worker protocol, helper lifecycle (publish, no legacy announcements while typing, restart, no orphans), and live tree, text boundaries and AT-SPI event sequence matching native Chromium. A live test with Cthulhu on Electron 45 read the fixture page correctly. Remaining live checks: Orca with the extension, Firefox, WebView2, 32-bit browsers, iframes, and window switching under other window managers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
13b25b581a
commit
9c1fc644ba
52 files changed
+12448
-10
No files matched your search
Executable
+200
@@ -0,0 +1,200 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Dump an application's AT-SPI tree as plain text, for comparing the Wine
|
||||
Access publisher against native Linux Chromium on the same fixture.
|
||||
|
||||
Usage: atspi_dump.py --app-name NAME [--wait SECONDS] [--max-nodes N]
|
||||
Waits for an application whose name contains NAME (case ignored) and a
|
||||
document-web descendant with children, then prints the tree. Never prints
|
||||
the text of password-text objects.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
import time
|
||||
import warnings
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Atspi", "2.0")
|
||||
from gi.repository import Atspi # noqa: E402
|
||||
|
||||
# get_action_name is deprecated, but its replacement fails through PyGObject.
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*get_action_name.*")
|
||||
|
||||
nodeCount = 0
|
||||
showBoundaries = False
|
||||
GRANULARITIES = (("word", Atspi.TextGranularity.WORD), ("sentence", Atspi.TextGranularity.SENTENCE),
|
||||
("line", Atspi.TextGranularity.LINE), ("paragraph", Atspi.TextGranularity.PARAGRAPH))
|
||||
|
||||
|
||||
def boundary_segments(accessible, characterCount, granularity):
|
||||
"""Distinct (start, end) segments reported at every offset."""
|
||||
segments = []
|
||||
for offset in range(characterCount + 1):
|
||||
segment = safe(lambda: Atspi.Text.get_string_at_offset(accessible, offset, granularity))
|
||||
if segment is None:
|
||||
entry = "error"
|
||||
else:
|
||||
entry = f"{segment.start_offset}-{segment.end_offset}"
|
||||
if not segments or segments[-1] != entry:
|
||||
segments.append(entry)
|
||||
return segments
|
||||
|
||||
|
||||
def safe(call, default=None):
|
||||
try:
|
||||
return call()
|
||||
except Exception: # AT-SPI raises GLib.Error for defunct objects
|
||||
return default
|
||||
|
||||
|
||||
def short(text, limit=100):
|
||||
if text is None:
|
||||
return "(null)"
|
||||
cleaned = text.replace("", "[obj]").replace("\n", "\\n")
|
||||
if len(cleaned) > limit:
|
||||
cleaned = cleaned[:limit] + "..."
|
||||
return f'"{cleaned}" len={len(text)}'
|
||||
|
||||
|
||||
def state_names(accessible):
|
||||
stateSet = safe(lambda: accessible.get_state_set())
|
||||
if stateSet is None:
|
||||
return "?"
|
||||
names = [Atspi.StateType(state).value_nick for state in stateSet.get_states()]
|
||||
return ",".join(sorted(names)) or "-"
|
||||
|
||||
|
||||
def interface_names(accessible):
|
||||
return ",".join(sorted(safe(lambda: accessible.get_interfaces(), []) or [])) or "-"
|
||||
|
||||
|
||||
def find_document(accessible, depth=0):
|
||||
if depth > 40:
|
||||
return None
|
||||
if safe(lambda: accessible.get_role()) == Atspi.Role.DOCUMENT_WEB:
|
||||
if (safe(lambda: accessible.get_child_count(), 0) or 0) > 0:
|
||||
return accessible
|
||||
for index in range(safe(lambda: accessible.get_child_count(), 0) or 0):
|
||||
child = safe(lambda: accessible.get_child_at_index(index))
|
||||
if child is not None:
|
||||
found = find_document(child, depth + 1)
|
||||
if found is not None:
|
||||
return found
|
||||
return None
|
||||
|
||||
|
||||
def describe(accessible, depth, maxNodes):
|
||||
global nodeCount
|
||||
if nodeCount >= maxNodes:
|
||||
return
|
||||
nodeCount += 1
|
||||
indent = " " * depth
|
||||
role = safe(lambda: accessible.get_role_name(), "?")
|
||||
name = safe(lambda: accessible.get_name(), "")
|
||||
states = state_names(accessible)
|
||||
childCount = safe(lambda: accessible.get_child_count(), 0) or 0
|
||||
print(f"{indent}- {role} name={short(name, 60)} children={childCount}")
|
||||
print(f"{indent} states: {states}")
|
||||
print(f"{indent} interfaces: {interface_names(accessible)}")
|
||||
attributes = safe(lambda: accessible.get_attributes(), {}) or {}
|
||||
if attributes:
|
||||
joined = ";".join(f"{key}:{value}" for key, value in sorted(attributes.items()))
|
||||
print(f"{indent} attrs: {short(joined, 240)}")
|
||||
relations = safe(lambda: accessible.get_relation_set(), []) or []
|
||||
if relations:
|
||||
parts = [f"{relation.get_relation_type().value_nick}({relation.get_n_targets()})" for relation in relations]
|
||||
print(f"{indent} relations: {' '.join(parts)}")
|
||||
text = safe(lambda: accessible.get_text_iface())
|
||||
if text is not None:
|
||||
characterCount = safe(lambda: text.get_character_count(), 0) or 0
|
||||
if role == "password text":
|
||||
print(f"{indent} text: n={characterCount} (password, content not read)")
|
||||
else:
|
||||
content = safe(lambda: Atspi.Text.get_text(accessible, 0, characterCount), "")
|
||||
caret = safe(lambda: text.get_caret_offset(), -1)
|
||||
print(f"{indent} text: n={characterCount} {short(content)} caret={caret}")
|
||||
if showBoundaries and characterCount:
|
||||
for label, granularity in GRANULARITIES:
|
||||
print(f"{indent} {label}s: {' '.join(boundary_segments(accessible, characterCount, granularity))}")
|
||||
hypertext = safe(lambda: accessible.get_hypertext_iface())
|
||||
if hypertext is not None:
|
||||
linkCount = safe(lambda: hypertext.get_n_links(), 0) or 0
|
||||
if linkCount:
|
||||
ranges = []
|
||||
for index in range(min(linkCount, 6)):
|
||||
link = safe(lambda: hypertext.get_link(index))
|
||||
if link is not None:
|
||||
ranges.append(f"[{safe(lambda: link.get_start_index())}-{safe(lambda: link.get_end_index())}]")
|
||||
print(f"{indent} hyperlinks: {linkCount} {' '.join(ranges)}")
|
||||
action = safe(lambda: accessible.get_action_iface())
|
||||
if action is not None:
|
||||
actionCount = safe(lambda: action.get_n_actions(), 0) or 0
|
||||
if actionCount:
|
||||
names = [safe(lambda: Atspi.Action.get_action_name(accessible, index), "?") for index in range(actionCount)]
|
||||
print(f"{indent} actions: {','.join(names)}")
|
||||
table = safe(lambda: accessible.get_table_iface())
|
||||
if table is not None:
|
||||
print(f"{indent} table: {safe(lambda: table.get_n_rows())}x{safe(lambda: table.get_n_columns())}")
|
||||
cell = safe(lambda: accessible.get_table_cell())
|
||||
if cell is not None:
|
||||
position = safe(lambda: Atspi.TableCell.get_position(accessible), None)
|
||||
if isinstance(position, tuple):
|
||||
position = "r{} c{}".format(*position[-2:])
|
||||
span = safe(lambda: Atspi.TableCell.get_row_column_span(accessible), None)
|
||||
if isinstance(span, tuple):
|
||||
span = "{}x{}".format(*span[-2:])
|
||||
columnHeaders = safe(lambda: Atspi.TableCell.get_column_header_cells(accessible), []) or []
|
||||
rowHeaders = safe(lambda: Atspi.TableCell.get_row_header_cells(accessible), []) or []
|
||||
print(f"{indent} cell: position={position} span={span} columnHeaders={len(columnHeaders)} "
|
||||
f"rowHeaders={len(rowHeaders)}")
|
||||
for index in range(childCount):
|
||||
child = safe(lambda: accessible.get_child_at_index(index))
|
||||
if child is not None:
|
||||
describe(child, depth + 1, maxNodes)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--app-name", required=True)
|
||||
parser.add_argument("--wait", type=float, default=30)
|
||||
parser.add_argument("--max-nodes", type=int, default=3000)
|
||||
parser.add_argument("--whole-app", action="store_true", help="dump the application, not just the document")
|
||||
parser.add_argument("--boundaries", action="store_true", help="also dump word/sentence/line/paragraph segments")
|
||||
options = parser.parse_args()
|
||||
global showBoundaries
|
||||
showBoundaries = options.boundaries
|
||||
|
||||
deadline = time.monotonic() + options.wait
|
||||
application = None
|
||||
document = None
|
||||
while time.monotonic() < deadline:
|
||||
desktop = Atspi.get_desktop(0)
|
||||
for index in range(desktop.get_child_count()):
|
||||
candidate = safe(lambda: desktop.get_child_at_index(index))
|
||||
candidateName = safe(lambda: candidate.get_name(), "") if candidate else ""
|
||||
if candidate is not None and options.app_name.lower() in (candidateName or "").lower():
|
||||
application = candidate
|
||||
document = find_document(candidate)
|
||||
if document is not None:
|
||||
break
|
||||
if document is not None:
|
||||
break
|
||||
time.sleep(0.5)
|
||||
if application is None:
|
||||
print(f"No application matching {options.app_name}")
|
||||
return 3
|
||||
print(f"application: name={short(safe(lambda: application.get_name()))} "
|
||||
f"toolkit={safe(lambda: application.get_toolkit_name())} "
|
||||
f"version={safe(lambda: application.get_toolkit_version())} "
|
||||
f"pid={safe(lambda: application.get_process_id())}")
|
||||
if document is None:
|
||||
print("No document-web with children found")
|
||||
return 4
|
||||
describe(application if options.whole_app else document, 0, options.max_nodes)
|
||||
print(f"nodes={nodeCount}")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Executable
+118
@@ -0,0 +1,118 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compare a native Chromium AT-SPI dump with a Wine Access publisher dump.
|
||||
|
||||
Usage: compare_dumps.py NATIVE.txt PUBLISHER.txt [--baseline chromium|electron42]
|
||||
Exits 0 when the dumps match after the documented allowed differences, 1
|
||||
otherwise, printing a unified diff of what remains.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import difflib
|
||||
import re
|
||||
import sys
|
||||
|
||||
# Differences that are real and expected, applied to the native side so it
|
||||
# reads as the Wine side would. Each rule documents its reason.
|
||||
ATTRIBUTE_LINE = re.compile(r'^(\s*attrs: )"(.*)" len=\d+$')
|
||||
ROLE_LINE = re.compile(r'^(\s*- )(\S.*?)( name=.*)$')
|
||||
|
||||
# Lines that identify the run rather than the tree.
|
||||
ignoredPrefixes = ("application:",)
|
||||
|
||||
|
||||
def attribute_line(indent, attributes):
|
||||
joined = ";".join(attributes)
|
||||
return f'{indent}"{joined}" len={len(joined)}'
|
||||
|
||||
|
||||
def normalize(lines, baseline):
|
||||
result = list(lines)
|
||||
for index, line in enumerate(result):
|
||||
match = ATTRIBUTE_LINE.match(line)
|
||||
if not match:
|
||||
continue
|
||||
attributes = match.group(2).split(";")
|
||||
# Chromium's views frame class is platform-specific.
|
||||
attributes = ["class:WinFrameView" if item == "class:NativeFrameView" else item for item in attributes]
|
||||
# Electron 42's Chromium exposes an unnamed <form> as a section with no
|
||||
# xml-roles; Chromium 156 (Electron 45 under Wine) and 158 expose a
|
||||
# form. Only the node whose own attributes say tag:form is changed.
|
||||
if baseline == "electron42" and "tag:form" in attributes and "xml-roles:form" not in attributes:
|
||||
roleIndex = next((candidate for candidate in range(index - 1, max(index - 4, -1), -1)
|
||||
if ROLE_LINE.match(result[candidate])), None)
|
||||
roleMatch = ROLE_LINE.match(result[roleIndex]) if roleIndex is not None else None
|
||||
if roleMatch and roleMatch.group(2) == "section":
|
||||
result[roleIndex] = f"{roleMatch.group(1)}form{roleMatch.group(3)}"
|
||||
attributes = sorted(attributes + ["xml-roles:form"])
|
||||
result[index] = attribute_line(match.group(1), attributes)
|
||||
return [line for line in result if not line.startswith(ignoredPrefixes)]
|
||||
|
||||
|
||||
BOUNDARY_LINE = re.compile(r"^(\s*(?:words|sentences|lines|paragraphs): )(.*)$")
|
||||
|
||||
|
||||
TEXT_LINE = re.compile(r'^\s*text: n=\d+ "(.*)" len=(\d+) caret=-?\d+$')
|
||||
|
||||
|
||||
def allow_rounded_emoji_words(nativeLines, publisherLines):
|
||||
"""Native Chromium reports a word ending inside a surrogate pair (next to
|
||||
an emoji) as "start--1"; the publisher rounds the end up to the next whole
|
||||
character. Accept exactly that: the publisher's segment must start where
|
||||
native's does and end immediately after a supplementary-plane character
|
||||
of the object's own text."""
|
||||
if len(nativeLines) != len(publisherLines):
|
||||
return
|
||||
text = None
|
||||
for index, (nativeLine, publisherLine) in enumerate(zip(nativeLines, publisherLines)):
|
||||
textMatch = TEXT_LINE.match(publisherLine)
|
||||
if textMatch:
|
||||
# Undo the dump's display substitutions, then only trust untruncated
|
||||
# text (the dump truncates after 100 characters).
|
||||
content = textMatch.group(1).replace("[obj]", "\ufffc").replace("\\n", "\n")
|
||||
text = content if len(content) == int(textMatch.group(2)) else None
|
||||
continue
|
||||
nativeMatch = BOUNDARY_LINE.match(nativeLine)
|
||||
publisherMatch = BOUNDARY_LINE.match(publisherLine)
|
||||
if not nativeMatch or not publisherMatch or nativeMatch.group(1) != publisherMatch.group(1) or text is None:
|
||||
continue
|
||||
nativeTokens = nativeMatch.group(2).split()
|
||||
publisherTokens = publisherMatch.group(2).split()
|
||||
if len(nativeTokens) != len(publisherTokens):
|
||||
continue
|
||||
for position, (nativeToken, publisherToken) in enumerate(zip(nativeTokens, publisherTokens)):
|
||||
start = re.fullmatch(r"(\d+)--1", nativeToken)
|
||||
rounded = re.fullmatch(r"(\d+)-(\d+)", publisherToken)
|
||||
if not start or not rounded or start.group(1) != rounded.group(1):
|
||||
continue
|
||||
end = int(rounded.group(2))
|
||||
if int(rounded.group(1)) < end <= len(text) and ord(text[end - 1]) > 0xFFFF:
|
||||
nativeTokens[position] = publisherToken
|
||||
nativeLines[index] = nativeMatch.group(1) + " ".join(nativeTokens)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("native")
|
||||
parser.add_argument("publisher")
|
||||
parser.add_argument("--baseline", choices=["chromium", "electron42"], default="chromium")
|
||||
options = parser.parse_args()
|
||||
with open(options.native, encoding="utf-8") as nativeFile:
|
||||
nativeLines = normalize(nativeFile.read().splitlines(), options.baseline)
|
||||
with open(options.publisher, encoding="utf-8") as publisherFile:
|
||||
publisherLines = normalize(publisherFile.read().splitlines(), "none")
|
||||
if not nativeLines or not publisherLines or not nativeLines[-1].startswith("nodes="):
|
||||
print("A dump is empty or incomplete")
|
||||
return 1
|
||||
allow_rounded_emoji_words(nativeLines, publisherLines)
|
||||
difference = list(difflib.unified_diff(nativeLines, publisherLines, "native", "publisher", lineterm=""))
|
||||
if difference:
|
||||
print("\n".join(difference))
|
||||
print(f"MISMATCH: {sum(1 for line in difference if line.startswith('-') and not line.startswith('---'))} "
|
||||
f"native lines differ")
|
||||
return 1
|
||||
print(f"MATCH ({options.baseline} baseline, {nativeLines[-1]}, allowed differences applied)")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compare a native Chromium event log with a Wine Access publisher event log.
|
||||
|
||||
Usage: compare_events.py NATIVE.events.txt PUBLISHER.events.txt
|
||||
Exits 0 when the logs match after the documented normalizations, 1 otherwise.
|
||||
"""
|
||||
|
||||
import difflib
|
||||
import re
|
||||
import sys
|
||||
|
||||
# Each rule: (reason, predicate or rewrite) applied to both logs.
|
||||
DROPPED = [
|
||||
("atk-bridge reports objects defunct when it drops its temporary references; native Chromium shows "
|
||||
"the same on objects that stay in place, so these say nothing about presentation",
|
||||
re.compile(r"^object:state-changed:defunct ")),
|
||||
("native Chromium has browser UI (address bar, navigation buttons) that an Electron window does not",
|
||||
re.compile(r" src=(entry:Address and search bar|button:(Back|Forward|Reload|Home))\b")),
|
||||
]
|
||||
REWRITES = [
|
||||
("the removed child is described after removal, so its role depends on timing; the event itself matters",
|
||||
re.compile(r"^(object:children-changed:remove .*) data=.*$"), r"\1 data=<removed>"),
|
||||
]
|
||||
|
||||
|
||||
def normalize(path):
|
||||
lines = []
|
||||
with open(path, encoding="utf-8") as logFile:
|
||||
for line in logFile.read().splitlines():
|
||||
if any(pattern.search(line) for _reason, pattern in DROPPED):
|
||||
continue
|
||||
for _reason, pattern, replacement in REWRITES:
|
||||
line = pattern.sub(replacement, line)
|
||||
lines.append(line)
|
||||
return lines
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 3:
|
||||
print(__doc__)
|
||||
return 2
|
||||
nativeLines = normalize(sys.argv[1])
|
||||
publisherLines = normalize(sys.argv[2])
|
||||
if sum(1 for line in nativeLines if line.startswith("STEP")) == 0:
|
||||
print("The native log has no steps")
|
||||
return 1
|
||||
difference = list(difflib.unified_diff(nativeLines, publisherLines, "native", "publisher", lineterm=""))
|
||||
if difference:
|
||||
print("\n".join(difference))
|
||||
print("MISMATCH")
|
||||
return 1
|
||||
events = sum(1 for line in nativeLines if not line.startswith("STEP"))
|
||||
print(f"MATCH ({events} events after allowed differences)")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -0,0 +1 @@
|
||||
{"format":"wine-access-browser-snapshot-1","hwnd":65682,"windowsPid":40,"title":"Wine Access Electron Test","focusedId":-89,"root":{"msaaRole":16,"msaaStates":0,"name":"Wine Access Electron Test","value":"","location":[132,158,1016,734],"id":-3,"ia2Role":16,"ia2States":1024,"attributes":"name-from:attribute;explicit-name:true;class:RootView;","textLength":1,"text":"","boundaries":{"word":[[-1,-1],[-1,-1]],"sentence":[[0,1],[-1,-1]],"line":[[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1]]},"children":[{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,158,1016,734],"id":-6,"ia2Role":16,"ia2States":1024,"attributes":"class:NonClientView;","textLength":1,"text":"","boundaries":{"word":[[-1,-1],[-1,-1]],"sentence":[[0,1],[-1,-1]],"line":[[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1]]},"children":[{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,158,1016,734],"id":-8,"ia2Role":16,"ia2States":1024,"attributes":"class:WinFrameView;","textLength":1,"text":"","boundaries":{"word":[[-1,-1],[-1,-1]],"sentence":[[0,1],[-1,-1]],"line":[[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1]]},"children":[{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,158,1016,734],"id":-5,"ia2Role":16,"ia2States":1024,"attributes":"class:ClientView;","textLength":1,"text":"","boundaries":{"word":[[-1,-1],[-1,-1]],"sentence":[[0,1],[-1,-1]],"line":[[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1]]},"children":[{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,158,1016,734],"id":-1,"ia2Role":16,"ia2States":1024,"attributes":"class:View;","textLength":2,"text":"","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,2],[0,2],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1]]},"children":[{"msaaRole":2,"msaaStates":1048580,"name":null,"value":"","location":[132,158,1016,25],"id":-16,"ia2Role":2,"ia2States":1024,"attributes":"explicit-name:true;class:MenuBar;","textLength":4,"text":"","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,4],[0,4],[0,4],[0,4],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]]},"children":[{"msaaRole":57,"msaaStates":1074790400,"name":"File","value":"","defaultAction":"open","location":[132,158,31,25],"id":-17,"ia2Role":57,"ia2States":1024,"attributes":"name-from:attribute;explicit-name:true;haspopup:menu;class:SubmenuButton;","textLength":4,"text":"File","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,4],[0,4],[0,4],[0,4],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]]},"children":[]},{"msaaRole":57,"msaaStates":1074790400,"name":"Edit","value":"","defaultAction":"open","location":[163,158,33,25],"id":-22,"ia2Role":57,"ia2States":1024,"attributes":"name-from:attribute;explicit-name:true;haspopup:menu;class:SubmenuButton;id:view_1;","textLength":4,"text":"Edit","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,4],[0,4],[0,4],[0,4],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]]},"children":[]},{"msaaRole":57,"msaaStates":1074790400,"name":"View","value":"","defaultAction":"open","location":[196,158,38,25],"id":-27,"ia2Role":57,"ia2States":1024,"attributes":"name-from:attribute;explicit-name:true;haspopup:menu;class:SubmenuButton;id:view_2;","textLength":4,"text":"View","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,4],[0,4],[0,4],[0,4],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]]},"children":[]},{"msaaRole":57,"msaaStates":1074790400,"name":"Window","value":"","defaultAction":"open","location":[234,158,55,25],"id":-32,"ia2Role":57,"ia2States":1024,"attributes":"name-from:attribute;explicit-name:true;haspopup:menu;class:SubmenuButton;id:view_3;","textLength":6,"text":"Window","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,6],[0,6],[0,6],[0,6],[0,6],[0,6],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1]]},"children":[]}]},{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,183,1016,709],"id":-2,"ia2Role":16,"ia2States":1024,"attributes":"class:View;","textLength":2,"text":"","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,2],[0,2],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1]]},"children":[{"msaaRole":16,"msaaStates":0,"name":null,"value":"","location":[132,183,1016,709],"id":-15,"ia2Role":16,"ia2States":1024,"attributes":"class:View;","textLength":2,"text":"","boundaries":{"word":[[-1,-1],[-1,-1],[-1,-1]],"sentence":[[0,2],[0,2],[-1,-1]],"line":[[-1,-1],[-1,-1],[-1,-1]],"paragraph":[[-1,-1],[-1,-1],[-1,-1]]Line truncated
|
||||
@@ -0,0 +1,629 @@
|
||||
application: name="Chromium" len=8 toolkit=Chromium version=1.0 pid=135420
|
||||
- document web name="Wine Access Electron Test" len=25 children=1
|
||||
states: enabled,focusable,focused,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "explicit-name:true;name-from:related-element;tag:#document;text-align:left" len=74
|
||||
relations: embedded-by(1)
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu,scrollBackward,scrollDown,scrollForward,scrollLeft,scrollRight,scrollUp
|
||||
- landmark name="" len=0 children=12
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:main;text-align:left;xml-roles:main" len=53
|
||||
text: n=12 "[obj][obj][obj][obj][obj][obj][obj][obj][obj][obj][obj][obj]" len=12 caret=-1
|
||||
words: 0-1 1-2 2-3 3-4 4-5 5-6 6-7 7-8 8-9 9-10 10-11 11-12 -1--1
|
||||
sentences: 0-12 -1--1
|
||||
lines: 0-1 1-2 2-3 3-4 4-5 5-6 6-7 7-8 8-9 9-10 10-11 11-12 -1--1
|
||||
paragraphs: 0-1 1-2 2-3 3-4 4-5 5-6 6-7 7-8 8-9 9-10 10-11 11-12 -1--1
|
||||
hyperlinks: 12 [0-1] [1-2] [2-3] [3-4] [4-5] [5-6]
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Wine Access test page" len=21 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;level:1;name-from:contents;tag:h1;text-align:left" len=63
|
||||
text: n=21 "Wine Access test page" len=21 caret=-1
|
||||
words: 0-5 5-12 12-17 17-21 -1--1
|
||||
sentences: 0-21 -1--1
|
||||
lines: 0-21 -1--1
|
||||
paragraphs: 0-21 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Wine Access test page" len=21 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=21 "Wine Access test page" len=21 caret=-1
|
||||
words: 0-5 5-12 12-17 17-21 -1--1
|
||||
sentences: 0-21 -1--1
|
||||
lines: 0-21 -1--1
|
||||
paragraphs: 0-21 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=3
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=30 "This paragraph has an [obj] in it." len=30 caret=-1
|
||||
words: 0-5 5-15 15-19 19-22 22-23 22-24 24-27 27-29 29-30 -1--1
|
||||
sentences: 0-30 -1--1
|
||||
lines: 0-30 -1--1
|
||||
paragraphs: 0-30 -1--1
|
||||
hyperlinks: 1 [22-23]
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="This paragraph has an " len=22 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=22 "This paragraph has an " len=22 caret=-1
|
||||
words: 0-5 5-15 15-19 19-22 -1--1
|
||||
sentences: 0-22 -1--1
|
||||
lines: 0-22 -1--1
|
||||
paragraphs: 0-22 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- link name="inline link to the details section" len=34 children=1
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;name-from:contents;tag:a;text-align:left" len=55
|
||||
text: n=34 "inline link to the details section" len=34 caret=-1
|
||||
words: 0-7 7-12 12-15 15-19 19-27 27-34 -1--1
|
||||
sentences: 0-34 -1--1
|
||||
lines: 0-34 -1--1
|
||||
paragraphs: 0-34 -1--1
|
||||
actions: jump,showContextMenu
|
||||
- static name="inline link to the details section" len=34 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=34 "inline link to the details section" len=34 caret=-1
|
||||
words: 0-7 7-12 12-15 15-19 19-27 27-34 -1--1
|
||||
sentences: 0-34 -1--1
|
||||
lines: 0-34 -1--1
|
||||
paragraphs: 0-34 -1--1
|
||||
actions: clickAncestor,showContextMenu
|
||||
- static name=" in it." len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 " in it." len=7 caret=-1
|
||||
words: 0-1 1-4 4-6 6-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=3
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=29 "Emoji 🙂 and café before a [obj]." len=29 caret=-1
|
||||
words: 0-6 6--1 6-8 8-12 12-18 18-25 25-27 27-28 28-29 -1--1
|
||||
sentences: 0-29 -1--1
|
||||
lines: 0-29 -1--1
|
||||
paragraphs: 0-29 -1--1
|
||||
hyperlinks: 1 [27-28]
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Emoji 🙂 and café before a " len=27 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=27 "Emoji 🙂 and café before a " len=27 caret=-1
|
||||
words: 0-6 6--1 6-8 8-12 12-18 18-25 25-27 -1--1
|
||||
sentences: 0-27 -1--1
|
||||
lines: 0-27 -1--1
|
||||
paragraphs: 0-27 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- link name="second link" len=11 children=1
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;name-from:contents;tag:a;text-align:left" len=55
|
||||
text: n=11 "second link" len=11 caret=-1
|
||||
words: 0-7 7-11 -1--1
|
||||
sentences: 0-11 -1--1
|
||||
lines: 0-11 -1--1
|
||||
paragraphs: 0-11 -1--1
|
||||
actions: jump,showContextMenu
|
||||
- static name="second link" len=11 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=11 "second link" len=11 caret=-1
|
||||
words: 0-7 7-11 -1--1
|
||||
sentences: 0-11 -1--1
|
||||
lines: 0-11 -1--1
|
||||
paragraphs: 0-11 -1--1
|
||||
actions: clickAncestor,showContextMenu
|
||||
- static name="." len=1 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=1 "." len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Details" len=7 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:details;level:2;name-from:contents;tag:h2;text-align:left" len=74
|
||||
text: n=7 "Details" len=7 caret=-1
|
||||
words: 0-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Details" len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 "Details" len=7 caret=-1
|
||||
words: 0-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- form name="" len=0 children=4
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:form;text-align:left;xml-roles:form" len=53
|
||||
text: n=4 "[obj][obj][obj][obj]" len=4 caret=-1
|
||||
words: 0-1 1-2 2-3 3-4 -1--1
|
||||
sentences: 0-4 -1--1
|
||||
lines: 0-1 1-2 2-3 3-4 -1--1
|
||||
paragraphs: 0-1 1-2 2-3 3-4 -1--1
|
||||
hyperlinks: 4 [0-1] [1-2] [2-3] [3-4]
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
words: 0-1 1-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-1 1-2 -1--1
|
||||
paragraphs: 0-1 1-2 -1--1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- label name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;tag:label;text-align:left" len=40
|
||||
relations: label-for(1)
|
||||
text: n=9 "User name" len=9 caret=-1
|
||||
words: 0-5 5-9 -1--1
|
||||
sentences: 0-9 -1--1
|
||||
lines: 0-9 -1--1
|
||||
paragraphs: 0-9 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="User name" len=9 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=9 "User name" len=9 caret=-1
|
||||
words: 0-5 5-9 -1--1
|
||||
sentences: 0-9 -1--1
|
||||
lines: 0-9 -1--1
|
||||
paragraphs: 0-9 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- entry name="User name" len=9 children=0
|
||||
states: editable,enabled,focusable,selectable-text,sensitive,showing,single-line,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Text
|
||||
attrs: "display:inline-block;explicit-name:true;id:userName;name-from:related-element;tag:input;text-align:left;text-input-type:text;text-model:a1" len=138
|
||||
relations: labelled-by(1)
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: activate,showContextMenu
|
||||
- paragraph name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
words: 0-1 1-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-1 1-2 -1--1
|
||||
paragraphs: 0-1 1-2 -1--1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- label name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;tag:label;text-align:left" len=40
|
||||
relations: label-for(1)
|
||||
text: n=8 "Password" len=8 caret=-1
|
||||
words: 0-8 -1--1
|
||||
sentences: 0-8 -1--1
|
||||
lines: 0-8 -1--1
|
||||
paragraphs: 0-8 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Password" len=8 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=8 "Password" len=8 caret=-1
|
||||
words: 0-8 -1--1
|
||||
sentences: 0-8 -1--1
|
||||
lines: 0-8 -1--1
|
||||
paragraphs: 0-8 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- password text name="Password" len=8 children=0
|
||||
states: editable,enabled,focusable,selectable-text,sensitive,showing,single-line,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Text
|
||||
attrs: "display:inline-block;explicit-name:true;id:userPassword;name-from:related-element;tag:input;text-align:left;text-input-type:password;text-model:a1" len=146
|
||||
relations: labelled-by(1)
|
||||
text: n=0 (password, content not read)
|
||||
actions: activate,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- check box name="Remember me" len=11 children=0
|
||||
states: checkable,enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "checkable:true;display:inline-block;explicit-name:true;id:rememberMe;name-from:related-element;tag:input;text-align:left" len=120
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: check,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- button name="Sign in" len=7 children=0
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;name-from:contents;tag:button;text-align:center" len=68
|
||||
text: n=7 "Sign in" len=7 caret=-1
|
||||
words: 0-5 5-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: press,showContextMenu
|
||||
- heading name="Updates" len=7 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;level:2;name-from:contents;tag:h2;text-align:left" len=63
|
||||
text: n=7 "Updates" len=7 caret=-1
|
||||
words: 0-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Updates" len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 "Updates" len=7 caret=-1
|
||||
words: 0-7 -1--1
|
||||
sentences: 0-7 -1--1
|
||||
lines: 0-7 -1--1
|
||||
paragraphs: 0-7 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- button name="Add item" len=8 children=0
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;id:addItem;name-from:contents;tag:button;text-align:center" len=79
|
||||
text: n=8 "Add item" len=8 caret=-1
|
||||
words: 0-4 4-8 -1--1
|
||||
sentences: 0-8 -1--1
|
||||
lines: 0-8 -1--1
|
||||
paragraphs: 0-8 -1--1
|
||||
actions: press,showContextMenu
|
||||
- list name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:itemList;setsize:1;tag:ul;text-align:left" len=58
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
words: 0-1 -1--1
|
||||
sentences: 0-1 -1--1
|
||||
lines: 0-1 -1--1
|
||||
paragraphs: 0-1 -1--1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- list item name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:list-item;level:1;posinset:1;setsize:1;tag:li;text-align:left" len=69
|
||||
text: n=12 "• First item" len=12 caret=-1
|
||||
words: 0-2 2-8 8-12 -1--1
|
||||
sentences: 0-12 -1--1
|
||||
lines: 0-12 -1--1
|
||||
paragraphs: 0-12 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="• " len=2 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;name-from:contents;tag:::marker;text-align:left" len=68
|
||||
text: n=2 "• " len=2 caret=-1
|
||||
words: 0-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-2 -1--1
|
||||
paragraphs: 0-2 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="First item" len=10 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "First item" len=10 caret=-1
|
||||
words: 0-6 6-10 -1--1
|
||||
sentences: 0-10 -1--1
|
||||
lines: 0-10 -1--1
|
||||
paragraphs: 0-10 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "atomic:false;container-atomic:false;container-busy:false;container-live:polite;container-relevant:additions text;display:block;id:status;live:polite;relevant:additions text;tag:p;text-align:left" len=194
|
||||
text: n=15 "No items added." len=15 caret=-1
|
||||
words: 0-3 3-9 9-14 14-15 -1--1
|
||||
sentences: 0-15 -1--1
|
||||
lines: 0-15 -1--1
|
||||
paragraphs: 0-15 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="No items added." len=15 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "atomic:false;container-atomic:false;container-busy:false;container-live:polite;container-relevant:additions text;name-from:contents;relevant:additions text" len=155
|
||||
text: n=15 "No items added." len=15 caret=-1
|
||||
words: 0-3 3-9 9-14 14-15 -1--1
|
||||
sentences: 0-15 -1--1
|
||||
lines: 0-15 -1--1
|
||||
paragraphs: 0-15 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- section name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:div;text-align:left" len=37
|
||||
text: n=31 "Spacer before the scores table." len=31 caret=-1
|
||||
words: 0-7 7-14 14-18 18-25 25-30 30-31 -1--1
|
||||
sentences: 0-31 -1--1
|
||||
lines: 0-31 -1--1
|
||||
paragraphs: 0-31 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Spacer before the scores table." len=31 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=31 "Spacer before the scores table." len=31 caret=-1
|
||||
words: 0-7 7-14 14-18 18-25 25-30 30-31 -1--1
|
||||
sentences: 0-31 -1--1
|
||||
lines: 0-31 -1--1
|
||||
paragraphs: 0-31 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Scores" len=6 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:scores;level:2;name-from:contents;tag:h2;text-align:left" len=73
|
||||
text: n=6 "Scores" len=6 caret=-1
|
||||
words: 0-6 -1--1
|
||||
sentences: 0-6 -1--1
|
||||
lines: 0-6 -1--1
|
||||
paragraphs: 0-6 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Scores" len=6 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=6 "Scores" len=6 caret=-1
|
||||
words: 0-6 -1--1
|
||||
sentences: 0-6 -1--1
|
||||
lines: 0-6 -1--1
|
||||
paragraphs: 0-6 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table name="High scores" len=11 children=4
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Table,Text
|
||||
attrs: "display:table;explicit-name:true;name-from:caption;tag:table;text-align:left" len=76
|
||||
relations: labelled-by(1)
|
||||
text: n=4 "[obj][obj][obj][obj]" len=4 caret=-1
|
||||
words: 0-1 1-2 2-3 3-4 -1--1
|
||||
sentences: 0-4 -1--1
|
||||
lines: 0-1 1-2 2-3 3-4 -1--1
|
||||
paragraphs: 0-1 1-2 2-3 3-4 -1--1
|
||||
hyperlinks: 4 [0-1] [1-2] [2-3] [3-4]
|
||||
actions: doDefault,showContextMenu
|
||||
table: 3x2
|
||||
- caption name="" len=0 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-caption;tag:caption;text-align:center" len=51
|
||||
relations: label-for(1)
|
||||
text: n=11 "High scores" len=11 caret=-1
|
||||
words: 0-5 5-11 -1--1
|
||||
sentences: 0-11 -1--1
|
||||
lines: 0-11 -1--1
|
||||
paragraphs: 0-11 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="High scores" len=11 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=11 "High scores" len=11 caret=-1
|
||||
words: 0-5 5-11 -1--1
|
||||
sentences: 0-11 -1--1
|
||||
lines: 0-11 -1--1
|
||||
paragraphs: 0-11 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
words: 0-1 1-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-1 1-2 -1--1
|
||||
paragraphs: 0-1 1-2 -1--1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- column header name="Player" len=6 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:0;tag:th;text-align:center" len=81
|
||||
text: n=6 "Player" len=6 caret=-1
|
||||
words: 0-6 -1--1
|
||||
sentences: 0-6 -1--1
|
||||
lines: 0-6 -1--1
|
||||
paragraphs: 0-6 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r0 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player" len=6 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=6 "Player" len=6 caret=-1
|
||||
words: 0-6 -1--1
|
||||
sentences: 0-6 -1--1
|
||||
lines: 0-6 -1--1
|
||||
paragraphs: 0-6 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- column header name="Score" len=5 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:1;tag:th;text-align:center" len=81
|
||||
text: n=5 "Score" len=5 caret=-1
|
||||
words: 0-5 -1--1
|
||||
sentences: 0-5 -1--1
|
||||
lines: 0-5 -1--1
|
||||
paragraphs: 0-5 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r0 c1 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Score" len=5 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=5 "Score" len=5 caret=-1
|
||||
words: 0-5 -1--1
|
||||
sentences: 0-5 -1--1
|
||||
lines: 0-5 -1--1
|
||||
paragraphs: 0-5 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
words: 0-1 1-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-1 1-2 -1--1
|
||||
paragraphs: 0-1 1-2 -1--1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- row header name="Player One" len=10 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:2;tag:th;text-align:center" len=81
|
||||
text: n=10 "Player One" len=10 caret=-1
|
||||
words: 0-7 7-10 -1--1
|
||||
sentences: 0-10 -1--1
|
||||
lines: 0-10 -1--1
|
||||
paragraphs: 0-10 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r1 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player One" len=10 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "Player One" len=10 caret=-1
|
||||
words: 0-7 7-10 -1--1
|
||||
sentences: 0-10 -1--1
|
||||
lines: 0-10 -1--1
|
||||
paragraphs: 0-10 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table cell name="1200" len=4 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:3;tag:td;text-align:left" len=79
|
||||
text: n=4 "1200" len=4 caret=-1
|
||||
words: 0-4 -1--1
|
||||
sentences: 0-4 -1--1
|
||||
lines: 0-4 -1--1
|
||||
paragraphs: 0-4 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r1 c1 span=1x1 columnHeaders=1 rowHeaders=1
|
||||
- static name="1200" len=4 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=4 "1200" len=4 caret=-1
|
||||
words: 0-4 -1--1
|
||||
sentences: 0-4 -1--1
|
||||
lines: 0-4 -1--1
|
||||
paragraphs: 0-4 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
words: 0-1 1-2 -1--1
|
||||
sentences: 0-2 -1--1
|
||||
lines: 0-1 1-2 -1--1
|
||||
paragraphs: 0-1 1-2 -1--1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- row header name="Player Two" len=10 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:4;tag:th;text-align:center" len=81
|
||||
text: n=10 "Player Two" len=10 caret=-1
|
||||
words: 0-7 7-10 -1--1
|
||||
sentences: 0-10 -1--1
|
||||
lines: 0-10 -1--1
|
||||
paragraphs: 0-10 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r2 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player Two" len=10 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "Player Two" len=10 caret=-1
|
||||
words: 0-7 7-10 -1--1
|
||||
sentences: 0-10 -1--1
|
||||
lines: 0-10 -1--1
|
||||
paragraphs: 0-10 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
- table cell name="950" len=3 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:5;tag:td;text-align:left" len=79
|
||||
text: n=3 "950" len=3 caret=-1
|
||||
words: 0-3 -1--1
|
||||
sentences: 0-3 -1--1
|
||||
lines: 0-3 -1--1
|
||||
paragraphs: 0-3 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r2 c1 span=1x1 columnHeaders=1 rowHeaders=1
|
||||
- static name="950" len=3 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=3 "950" len=3 caret=-1
|
||||
words: 0-3 -1--1
|
||||
sentences: 0-3 -1--1
|
||||
lines: 0-3 -1--1
|
||||
paragraphs: 0-3 -1--1
|
||||
actions: doDefault,showContextMenu
|
||||
nodes=61
|
||||
@@ -0,0 +1,504 @@
|
||||
application: name="electron" len=8 toolkit=Chromium version=1.0 pid=130722
|
||||
- application name="electron" len=8 children=1
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Application,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "explicit-name:true;name-from:attribute" len=38
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- frame name="Wine Access Electron Test" len=25 children=1
|
||||
states: active,enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:RootView;explicit-name:true;name-from:attribute" len=53
|
||||
relations: embeds(1)
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:NonClientView" len=19
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:NativeFrameView" len=21
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:ClientView" len=16
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:View" len=10
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- menu bar name="" len=0 children=4
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Selection,Text
|
||||
attrs: "class:MenuBar;explicit-name:true" len=32
|
||||
text: n=4 "[obj][obj][obj][obj]" len=4 caret=-1
|
||||
hyperlinks: 4 [0-1] [1-2] [2-3] [3-4]
|
||||
actions: doDefault,showContextMenu
|
||||
- button name="File" len=4 children=0
|
||||
states: enabled,focusable,has-popup,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:SubmenuButton;explicit-name:true;haspopup:menu;name-from:attribute" len=72
|
||||
text: n=4 "File" len=4 caret=-1
|
||||
actions: open,showContextMenu
|
||||
- button name="Edit" len=4 children=0
|
||||
states: enabled,focusable,has-popup,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:SubmenuButton;explicit-name:true;haspopup:menu;name-from:attribute" len=72
|
||||
text: n=4 "Edit" len=4 caret=-1
|
||||
actions: open,showContextMenu
|
||||
- button name="View" len=4 children=0
|
||||
states: enabled,focusable,has-popup,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:SubmenuButton;explicit-name:true;haspopup:menu;name-from:attribute" len=72
|
||||
text: n=4 "View" len=4 caret=-1
|
||||
actions: open,showContextMenu
|
||||
- button name="Window" len=6 children=0
|
||||
states: enabled,focusable,has-popup,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:SubmenuButton;explicit-name:true;haspopup:menu;name-from:attribute" len=72
|
||||
text: n=6 "Window" len=6 caret=-1
|
||||
actions: open,showContextMenu
|
||||
- panel name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:View" len=10
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:View" len=10
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=1
|
||||
states: enabled,sensitive
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:WebView;explicit-name:true;hidden:true" len=44
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=0
|
||||
states: enabled,sensitive
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:NativeViewHost;hidden:true" len=32
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- document web name="Wine Access Electron Test" len=25 children=1
|
||||
states: enabled,focusable,focused,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "explicit-name:true;name-from:related-element;tag:#document;text-align:left" len=74
|
||||
relations: embedded-by(1)
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu,scrollBackward,scrollDown,scrollForward,scrollLeft,scrollRight,scrollUp
|
||||
- landmark name="" len=0 children=12
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:main;text-align:left;xml-roles:main" len=53
|
||||
text: n=12 "[obj][obj][obj][obj][obj][obj][obj][obj][obj][obj][obj][obj]" len=12 caret=-1
|
||||
hyperlinks: 12 [0-1] [1-2] [2-3] [3-4] [4-5] [5-6]
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Wine Access test page" len=21 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;level:1;name-from:contents;tag:h1;text-align:left" len=63
|
||||
text: n=21 "Wine Access test page" len=21 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Wine Access test page" len=21 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=21 "Wine Access test page" len=21 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=3
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=30 "This paragraph has an [obj] in it." len=30 caret=-1
|
||||
hyperlinks: 1 [22-23]
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="This paragraph has an " len=22 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=22 "This paragraph has an " len=22 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- link name="inline link to the details section" len=34 children=1
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;name-from:contents;tag:a;text-align:left" len=55
|
||||
text: n=34 "inline link to the details section" len=34 caret=-1
|
||||
actions: jump,showContextMenu
|
||||
- static name="inline link to the details section" len=34 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=34 "inline link to the details section" len=34 caret=-1
|
||||
actions: clickAncestor,showContextMenu
|
||||
- static name=" in it." len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 " in it." len=7 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=3
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=29 "Emoji 🙂 and café before a [obj]." len=29 caret=-1
|
||||
hyperlinks: 1 [27-28]
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Emoji 🙂 and café before a " len=27 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=27 "Emoji 🙂 and café before a " len=27 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- link name="second link" len=11 children=1
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;name-from:contents;tag:a;text-align:left" len=55
|
||||
text: n=11 "second link" len=11 caret=-1
|
||||
actions: jump,showContextMenu
|
||||
- static name="second link" len=11 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=11 "second link" len=11 caret=-1
|
||||
actions: clickAncestor,showContextMenu
|
||||
- static name="." len=1 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=1 "." len=1 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Details" len=7 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:details;level:2;name-from:contents;tag:h2;text-align:left" len=74
|
||||
text: n=7 "Details" len=7 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Details" len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 "Details" len=7 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- section name="" len=0 children=4
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:form;text-align:left" len=38
|
||||
text: n=4 "[obj][obj][obj][obj]" len=4 caret=-1
|
||||
hyperlinks: 4 [0-1] [1-2] [2-3] [3-4]
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- label name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;tag:label;text-align:left" len=40
|
||||
relations: label-for(1)
|
||||
text: n=9 "User name" len=9 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="User name" len=9 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=9 "User name" len=9 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- entry name="User name" len=9 children=0
|
||||
states: editable,enabled,focusable,selectable-text,sensitive,showing,single-line,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Text
|
||||
attrs: "display:inline-block;explicit-name:true;id:userName;name-from:related-element;tag:input;text-align:left;text-input-type:text;text-model:a1" len=138
|
||||
relations: labelled-by(1)
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: activate,showContextMenu
|
||||
- paragraph name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- label name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline;tag:label;text-align:left" len=40
|
||||
relations: label-for(1)
|
||||
text: n=8 "Password" len=8 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Password" len=8 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=8 "Password" len=8 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- password text name="Password" len=8 children=0
|
||||
states: editable,enabled,focusable,selectable-text,sensitive,showing,single-line,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Text
|
||||
attrs: "display:inline-block;explicit-name:true;id:userPassword;name-from:related-element;tag:input;text-align:left;text-input-type:password;text-model:a1" len=146
|
||||
relations: labelled-by(1)
|
||||
text: n=0 (password, content not read)
|
||||
actions: activate,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- check box name="Remember me" len=11 children=0
|
||||
states: checkable,enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "checkable:true;display:inline-block;explicit-name:true;id:rememberMe;name-from:related-element;tag:input;text-align:left" len=120
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: check,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- button name="Sign in" len=7 children=0
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;name-from:contents;tag:button;text-align:center" len=68
|
||||
text: n=7 "Sign in" len=7 caret=-1
|
||||
actions: press,showContextMenu
|
||||
- heading name="Updates" len=7 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;level:2;name-from:contents;tag:h2;text-align:left" len=63
|
||||
text: n=7 "Updates" len=7 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Updates" len=7 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=7 "Updates" len=7 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:p;text-align:left" len=35
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- button name="Add item" len=8 children=0
|
||||
states: enabled,focusable,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;id:addItem;name-from:contents;tag:button;text-align:center" len=79
|
||||
text: n=8 "Add item" len=8 caret=-1
|
||||
actions: press,showContextMenu
|
||||
- list name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:itemList;setsize:1;tag:ul;text-align:left" len=58
|
||||
text: n=1 "[obj]" len=1 caret=-1
|
||||
hyperlinks: 1 [0-1]
|
||||
actions: doDefault,showContextMenu
|
||||
- list item name="" len=0 children=2
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:list-item;level:1;posinset:1;setsize:1;tag:li;text-align:left" len=69
|
||||
text: n=12 "• First item" len=12 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="• " len=2 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:inline-block;name-from:contents;tag:::marker;text-align:left" len=68
|
||||
text: n=2 "• " len=2 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="First item" len=10 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "First item" len=10 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- paragraph name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "atomic:false;container-atomic:false;container-busy:false;container-live:polite;container-relevant:additions text;display:block;id:status;live:polite;relevant:additions text;tag:p;text-align:left" len=194
|
||||
text: n=15 "No items added." len=15 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="No items added." len=15 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "atomic:false;container-atomic:false;container-busy:false;container-live:polite;container-relevant:additions text;name-from:contents;relevant:additions text" len=155
|
||||
text: n=15 "No items added." len=15 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- section name="" len=0 children=1
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;tag:div;text-align:left" len=37
|
||||
text: n=31 "Spacer before the scores table." len=31 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Spacer before the scores table." len=31 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=31 "Spacer before the scores table." len=31 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- heading name="Scores" len=6 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:block;id:scores;level:2;name-from:contents;tag:h2;text-align:left" len=73
|
||||
text: n=6 "Scores" len=6 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="Scores" len=6 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=6 "Scores" len=6 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table name="High scores" len=11 children=4
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Table,Text
|
||||
attrs: "display:table;explicit-name:true;name-from:caption;tag:table;text-align:left" len=76
|
||||
relations: labelled-by(1)
|
||||
text: n=4 "[obj][obj][obj][obj]" len=4 caret=-1
|
||||
hyperlinks: 4 [0-1] [1-2] [2-3] [3-4]
|
||||
actions: doDefault,showContextMenu
|
||||
table: 3x2
|
||||
- caption name="" len=0 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-caption;tag:caption;text-align:center" len=51
|
||||
relations: label-for(1)
|
||||
text: n=11 "High scores" len=11 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- static name="High scores" len=11 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=11 "High scores" len=11 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- column header name="Player" len=6 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:0;tag:th;text-align:center" len=81
|
||||
text: n=6 "Player" len=6 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r0 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player" len=6 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=6 "Player" len=6 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- column header name="Score" len=5 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:1;tag:th;text-align:center" len=81
|
||||
text: n=5 "Score" len=5 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r0 c1 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Score" len=5 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=5 "Score" len=5 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- row header name="Player One" len=10 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:2;tag:th;text-align:center" len=81
|
||||
text: n=10 "Player One" len=10 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r1 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player One" len=10 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "Player One" len=10 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table cell name="1200" len=4 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:3;tag:td;text-align:left" len=79
|
||||
text: n=4 "1200" len=4 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r1 c1 span=1x1 columnHeaders=1 rowHeaders=1
|
||||
- static name="1200" len=4 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=4 "1200" len=4 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table row name="" len=0 children=2
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "display:table-row;tag:tr;text-align:left" len=40
|
||||
text: n=2 "[obj][obj]" len=2 caret=-1
|
||||
hyperlinks: 2 [0-1] [1-2]
|
||||
actions: doDefault,showContextMenu
|
||||
- row header name="Player Two" len=10 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:4;tag:th;text-align:center" len=81
|
||||
text: n=10 "Player Two" len=10 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r2 c0 span=1x1 columnHeaders=0 rowHeaders=0
|
||||
- static name="Player Two" len=10 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=10 "Player Two" len=10 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- table cell name="950" len=3 children=1
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,TableCell,Text
|
||||
attrs: "display:table-cell;name-from:contents;table-cell-index:5;tag:td;text-align:left" len=79
|
||||
text: n=3 "950" len=3 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
cell: position=r2 c1 span=1x1 columnHeaders=1 rowHeaders=1
|
||||
- static name="950" len=3 children=0
|
||||
states: enabled,sensitive,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hypertext,Text
|
||||
attrs: "name-from:contents" len=18
|
||||
text: n=3 "950" len=3 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
- panel name="" len=0 children=0
|
||||
states: enabled,sensitive,showing,visible
|
||||
interfaces: Accessible,Action,Collection,Component,Document,Hyperlink,Hypertext,Text
|
||||
attrs: "class:View" len=10
|
||||
text: n=0 "" len=0 caret=-1
|
||||
actions: doDefault,showContextMenu
|
||||
nodes=77
|
||||
@@ -0,0 +1,45 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Wine Access Electron Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>Wine Access test page</h1>
|
||||
<p>This paragraph has an <a href="#details">inline link to the details section</a> in it.</p>
|
||||
<p>Emoji 🙂 and café before a <a href="#scores">second link</a>.</p>
|
||||
<h2 id="details">Details</h2>
|
||||
<form>
|
||||
<p><label for="userName">User name</label> <input id="userName" type="text"></p>
|
||||
<p><label for="userPassword">Password</label> <input id="userPassword" type="password"></p>
|
||||
<p><label><input type="checkbox" id="rememberMe"> Remember me</label></p>
|
||||
<p><button type="button">Sign in</button></p>
|
||||
</form>
|
||||
<h2>Updates</h2>
|
||||
<p><button type="button" id="addItem">Add item</button></p>
|
||||
<ul id="itemList"><li>First item</li></ul>
|
||||
<p id="status" aria-live="polite">No items added.</p>
|
||||
<div style="height: 2000px">Spacer before the scores table.</div>
|
||||
<h2 id="scores">Scores</h2>
|
||||
<table>
|
||||
<caption>High scores</caption>
|
||||
<thead><tr><th scope="col">Player</th><th scope="col">Score</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><th scope="row">Player One</th><td>1200</td></tr>
|
||||
<tr><th scope="row">Player Two</th><td>950</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
<script>
|
||||
let itemCount = 1;
|
||||
document.getElementById('addItem').addEventListener('click', () => {
|
||||
itemCount++;
|
||||
const item = document.createElement('li');
|
||||
item.textContent = `Item ${itemCount}`;
|
||||
document.getElementById('itemList').appendChild(item);
|
||||
document.getElementById('status').textContent = `Added item ${itemCount}.`;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
// Minimal Electron app for Wine Access browser testing.
|
||||
// Pass --smoke-test to record the rendered heading and exit.
|
||||
const { app, BrowserWindow } = require('electron');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const smokeTest = process.argv.includes('--smoke-test');
|
||||
const resultFile = path.join(__dirname, 'render-check.txt');
|
||||
|
||||
function write_result(text) {
|
||||
fs.writeFileSync(resultFile, `${text}\n`);
|
||||
}
|
||||
|
||||
app.whenReady().then(async () => {
|
||||
const mainWindow = new BrowserWindow({ width: 1024, height: 768 });
|
||||
try {
|
||||
await mainWindow.loadFile(path.join(__dirname, 'fixture.html'));
|
||||
const headingText = await mainWindow.webContents.executeJavaScript(
|
||||
"document.querySelector('h1').textContent");
|
||||
write_result(`render-ok ${process.versions.electron} chrome ${process.versions.chrome} heading=${headingText}`);
|
||||
} catch (error) {
|
||||
write_result(`render-failed ${process.versions.electron}: ${error}`);
|
||||
}
|
||||
if (smokeTest) {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
app.on('window-all-closed', () => app.quit());
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "wine-access-electron-test",
|
||||
"version": "1.0.0",
|
||||
"main": "main.js"
|
||||
}
|
||||
Executable
+193
@@ -0,0 +1,193 @@
|
||||
#!/usr/bin/env python3
|
||||
"""End-to-end check of the helper's browser bridge.
|
||||
|
||||
Runs inside live_session.sh's private session and display, with the Electron
|
||||
fixture already started in WINEPREFIX. Registers a fake Cthulhu reader on the
|
||||
session bus, starts wine-access.exe, and checks that the helper publishes the
|
||||
Chromium window, that legacy announcements stop for it, that a killed
|
||||
publisher is restarted, and that nothing is left behind when the helper exits.
|
||||
|
||||
Usage: helper_integration.py BUILD_DIR
|
||||
"""
|
||||
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Atspi", "2.0")
|
||||
from gi.repository import Atspi, Gio, GLib # noqa: E402
|
||||
|
||||
BUS_NAME = "org.stormux.Cthulhu1.Service"
|
||||
OBJECT_PATH = "/" + BUS_NAME.replace(".", "/")
|
||||
TITLE = "Wine Access Electron Test"
|
||||
|
||||
failures = 0
|
||||
presented = []
|
||||
helperLines = []
|
||||
|
||||
|
||||
def check(name, condition, detail=""):
|
||||
global failures
|
||||
if condition:
|
||||
print(f"PASS: {name}", flush=True)
|
||||
else:
|
||||
failures += 1
|
||||
print(f"FAIL: {name} {detail}", flush=True)
|
||||
|
||||
|
||||
def pump(seconds):
|
||||
context = GLib.MainContext.default()
|
||||
deadline = time.monotonic() + seconds
|
||||
while time.monotonic() < deadline:
|
||||
while context.pending():
|
||||
context.iteration(False)
|
||||
time.sleep(0.01)
|
||||
|
||||
|
||||
def wait_until(predicate, seconds):
|
||||
deadline = time.monotonic() + seconds
|
||||
while time.monotonic() < deadline:
|
||||
if predicate():
|
||||
return True
|
||||
pump(0.1)
|
||||
return predicate()
|
||||
|
||||
|
||||
def register_reader():
|
||||
xml = '<node><interface name="' + BUS_NAME + '"><method name="PresentAccessibleEvent">'
|
||||
for index, kind in enumerate(["s"] * 7 + ["i", "i", "s"]):
|
||||
xml += f'<arg name="arg{index}" type="{kind}" direction="in"/>'
|
||||
xml += '<arg type="b" direction="out"/></method>'
|
||||
for method, inputs in (("SpeakText", "sb"), ("CancelSpeech", "")):
|
||||
xml += '<method name="' + method + '">'
|
||||
xml += "".join('<arg type="' + kind + '" direction="in"/>' for kind in inputs)
|
||||
xml += '<arg type="b" direction="out"/></method>'
|
||||
xml += "</interface></node>"
|
||||
|
||||
def record(connection, sender, path, interface, method, parameters, invocation):
|
||||
if method == "PresentAccessibleEvent":
|
||||
presented.append(parameters.unpack())
|
||||
invocation.return_value(GLib.Variant("(b)", (True,)))
|
||||
|
||||
connection = Gio.bus_get_sync(Gio.BusType.SESSION, None)
|
||||
connection.register_object(OBJECT_PATH, Gio.DBusNodeInfo.new_for_xml(xml).interfaces[0], record, None, None)
|
||||
connection.call_sync("org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus", "RequestName",
|
||||
GLib.Variant("(su)", (BUS_NAME, 0)), None, Gio.DBusCallFlags.NONE, 1000, None)
|
||||
return connection
|
||||
|
||||
|
||||
def find(accessible, role, name=None, depth=0):
|
||||
if accessible is None or depth > 60:
|
||||
return None
|
||||
try:
|
||||
if accessible.get_role_name() == role and (name is None or (accessible.get_name() or "").startswith(name)):
|
||||
return accessible
|
||||
count = accessible.get_child_count()
|
||||
except Exception:
|
||||
return None
|
||||
for index in range(count):
|
||||
try:
|
||||
found = find(accessible.get_child_at_index(index), role, name, depth + 1)
|
||||
except Exception:
|
||||
found = None
|
||||
if found is not None:
|
||||
return found
|
||||
return None
|
||||
|
||||
|
||||
def published_application():
|
||||
desktop = Atspi.get_desktop(0)
|
||||
for index in range(desktop.get_child_count()):
|
||||
application = desktop.get_child_at_index(index)
|
||||
if application is not None and application.get_name() == "electron":
|
||||
return application
|
||||
return None
|
||||
|
||||
|
||||
def process_pids(matches):
|
||||
pids = []
|
||||
for entry in Path("/proc").iterdir():
|
||||
if not entry.name.isdigit():
|
||||
continue
|
||||
try:
|
||||
commandLine = (entry / "cmdline").read_bytes().split(b"\0")
|
||||
except OSError:
|
||||
continue
|
||||
if commandLine and matches(commandLine):
|
||||
pids.append(int(entry.name))
|
||||
return pids
|
||||
|
||||
|
||||
def publisher_pids():
|
||||
return process_pids(lambda arguments: arguments[0].endswith(b"wine-access-browser-publisher"))
|
||||
|
||||
|
||||
def worker_pids():
|
||||
return process_pids(lambda arguments: any(argument.lower().endswith(b"wine-access-browser-worker.exe")
|
||||
for argument in arguments))
|
||||
|
||||
|
||||
def main():
|
||||
build = Path(sys.argv[1]).resolve()
|
||||
readerConnection = register_reader() # releasing it would drop the reader's bus name
|
||||
helper = subprocess.Popen([str(build / "wine-access.exe"), "--no-controller"], stderr=subprocess.PIPE,
|
||||
env=os.environ.copy())
|
||||
threading.Thread(target=lambda: [helperLines.append(line.decode(errors="replace").rstrip())
|
||||
for line in helper.stderr], daemon=True).start()
|
||||
try:
|
||||
check("helper reports the browser bridge active",
|
||||
wait_until(lambda: any('"browser_bridge":true' in line for line in helperLines), 30),
|
||||
str(helperLines[-5:]))
|
||||
subprocess.run(["xdotool", "search", "--name", TITLE, "windowactivate", "--sync"], capture_output=True)
|
||||
published = wait_until(lambda: any("published; legacy announcements retired" in line
|
||||
for line in helperLines), 60)
|
||||
check("helper starts a publisher that publishes", published, str(helperLines[-5:]))
|
||||
application = None
|
||||
if published:
|
||||
wait_until(lambda: published_application() is not None, 20)
|
||||
application = published_application()
|
||||
check("electron application appears on the accessibility bus", application is not None)
|
||||
entry = find(application, "entry", "User name") if application else None
|
||||
check("the page's text field is published", entry is not None)
|
||||
if entry is not None:
|
||||
Atspi.Component.grab_focus(entry)
|
||||
pump(1.5)
|
||||
presented.clear()
|
||||
subprocess.run(["xdotool", "search", "--name", TITLE, "windowfocus", "--sync"], capture_output=True)
|
||||
subprocess.run(["xdotool", "type", "--delay", "100", "abc"], capture_output=True)
|
||||
pump(2.5)
|
||||
text = Atspi.Text.get_text(entry, 0, -1)
|
||||
check("typing reached the published field", text == "abc", repr(text))
|
||||
check("no legacy announcements while typing in the published window", not presented,
|
||||
str(presented[:3]))
|
||||
|
||||
before = publisher_pids()
|
||||
check("exactly one publisher is running", len(before) == 1, str(before))
|
||||
if before:
|
||||
os.kill(before[0], signal.SIGKILL)
|
||||
restarted = wait_until(lambda: any(pid not in before for pid in publisher_pids()), 30) and \
|
||||
wait_until(lambda: sum("published; legacy announcements retired" in line for line in helperLines) >= 2,
|
||||
60)
|
||||
check("a killed publisher is restarted and publishes again", restarted, str(helperLines[-5:]))
|
||||
finally:
|
||||
helper.send_signal(signal.SIGTERM)
|
||||
try:
|
||||
helper.wait(timeout=15)
|
||||
except subprocess.TimeoutExpired:
|
||||
helper.kill()
|
||||
helper.wait()
|
||||
check("no publisher survives the helper", wait_until(lambda: not publisher_pids(), 10), str(publisher_pids()))
|
||||
check("no worker survives the helper", wait_until(lambda: not worker_pids(), 10), str(worker_pids()))
|
||||
readerConnection.close_sync(None)
|
||||
print("\n".join(line for line in helperLines if "browser" in line), flush=True)
|
||||
return 1 if failures else 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Executable
+61
@@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
# Run every live browser bridge check and compare the bridge with native
|
||||
# Chromium. Needs Xvfb, native Chromium, and a Wine prefix with Electron.
|
||||
# Usage: live_checks.sh BUILD_DIR PREFIX [OUTPUT_DIR]
|
||||
# Exits non-zero if any check fails.
|
||||
set -u
|
||||
|
||||
if [[ $# -lt 2 ]]; then
|
||||
echo "Usage: $0 BUILD_DIR PREFIX [OUTPUT_DIR]"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
buildDir="$1"
|
||||
winePrefix="$2"
|
||||
outputDir="${3:-$(mktemp -d)}"
|
||||
testDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
failures=0
|
||||
|
||||
record() {
|
||||
if [[ "$2" -eq 0 ]]; then
|
||||
echo "PASS: $1"
|
||||
else
|
||||
echo "FAIL: $1"
|
||||
failures=$((failures + 1))
|
||||
fi
|
||||
}
|
||||
|
||||
"$testDir/live_session.sh" worker "$buildDir" "$outputDir" "$winePrefix" > /dev/null
|
||||
record "worker protocol ($(grep -c '^PASS' "$outputDir/worker.txt" 2> /dev/null) checks passed)" $?
|
||||
grep '^FAIL' "$outputDir/worker.txt" 2> /dev/null
|
||||
|
||||
"$testDir/live_session.sh" helper "$buildDir" "$outputDir" "$winePrefix" > /dev/null
|
||||
record "helper bridge lifecycle ($(grep -c '^PASS' "$outputDir/helper.txt" 2> /dev/null) checks passed)" $?
|
||||
grep '^FAIL' "$outputDir/helper.txt" 2> /dev/null
|
||||
|
||||
"$testDir/live_session.sh" native "$buildDir" "$outputDir" > /dev/null
|
||||
record "native Chromium reference session" $?
|
||||
"$testDir/live_session.sh" wine "$buildDir" "$outputDir" "$winePrefix" > /dev/null
|
||||
record "bridge session under Wine" $?
|
||||
|
||||
python3 -I "$testDir/compare_dumps.py" "$outputDir/native.tree.txt" "$outputDir/wine.tree.txt" \
|
||||
> "$outputDir/tree.diff"
|
||||
record "live tree and text boundaries match native Chromium" $?
|
||||
python3 -I "$testDir/compare_events.py" "$outputDir/native.events.txt" "$outputDir/wine.events.txt" \
|
||||
> "$outputDir/events.diff"
|
||||
record "event sequence matches native Chromium" $?
|
||||
! grep -q -E 'WARNING|CRITICAL' "$outputDir/wine.publisher.log"
|
||||
record "no publisher warnings" $?
|
||||
grep -h 'passwordLeaks' "$outputDir/native.txt" "$outputDir/wine.txt"
|
||||
grep -q 'passwordLeaks=0' "$outputDir/wine.txt"
|
||||
record "no password characters in events" $?
|
||||
grep -h '^reading:' "$outputDir/native.txt" "$outputDir/wine.txt"
|
||||
|
||||
echo
|
||||
echo "Results in $outputDir"
|
||||
if [[ "$failures" -eq 0 ]]; then
|
||||
echo "All live checks passed"
|
||||
else
|
||||
echo "$failures live check(s) failed"
|
||||
fi
|
||||
[[ "$failures" -eq 0 ]]
|
||||
Executable
+218
@@ -0,0 +1,218 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Drive the fixture through AT-SPI and log the events a reader would receive.
|
||||
|
||||
The same scenario runs against native Chromium and against the Wine Access
|
||||
publisher, so the two logs can be compared step by step.
|
||||
|
||||
Usage: live_driver.py --app-name NAME --log FILE [--title TITLE]
|
||||
Exits non-zero if the scenario cannot run or a password character leaks.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import warnings
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Atspi", "2.0")
|
||||
from gi.repository import Atspi, GLib # noqa: E402
|
||||
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
|
||||
SECRET = "Qz7Xk9Wv" # no English letter runs, so fragments cannot match event names
|
||||
EVENT_TYPES = [
|
||||
"object:state-changed", "object:text-changed", "object:text-caret-moved", "object:text-selection-changed",
|
||||
"object:children-changed", "object:property-change:accessible-name",
|
||||
"object:property-change:accessible-description", "object:property-change:accessible-value",
|
||||
"window:activate", "window:deactivate", "document:load-complete", "object:active-descendant-changed",
|
||||
"focus:",
|
||||
]
|
||||
# State changes that only reflect geometry or rendering, not presentation.
|
||||
IGNORED_STATES = {"showing", "visible"}
|
||||
|
||||
events = []
|
||||
recording = False
|
||||
|
||||
|
||||
def safe(call, default=None):
|
||||
try:
|
||||
return call()
|
||||
except Exception:
|
||||
return default
|
||||
|
||||
|
||||
def describe(accessible):
|
||||
if accessible is None:
|
||||
return "none"
|
||||
role = safe(lambda: accessible.get_role_name(), "?")
|
||||
name = safe(lambda: accessible.get_name(), "") or ""
|
||||
return f"{role}:{name[:40]}"
|
||||
|
||||
|
||||
def on_event(event):
|
||||
if not recording:
|
||||
return
|
||||
eventType = event.type
|
||||
if eventType.startswith("object:state-changed:") and eventType.split(":")[-1] in IGNORED_STATES:
|
||||
return
|
||||
data = event.any_data
|
||||
if isinstance(data, str):
|
||||
dataText = repr(data[:40])
|
||||
elif isinstance(data, Atspi.Accessible):
|
||||
dataText = describe(data)
|
||||
else:
|
||||
dataText = ""
|
||||
events.append(f"{eventType} d1={event.detail1} d2={event.detail2} src={describe(event.source)} data={dataText}")
|
||||
|
||||
|
||||
def pump(seconds):
|
||||
context = GLib.MainContext.default()
|
||||
deadline = time.monotonic() + seconds
|
||||
while time.monotonic() < deadline:
|
||||
while context.pending():
|
||||
context.iteration(False)
|
||||
time.sleep(0.01)
|
||||
|
||||
|
||||
def find(accessible, predicate, depth=0):
|
||||
if depth > 60 or accessible is None:
|
||||
return None
|
||||
if predicate(accessible):
|
||||
return accessible
|
||||
for index in range(safe(lambda: accessible.get_child_count(), 0) or 0):
|
||||
found = find(safe(lambda: accessible.get_child_at_index(index)), predicate, depth + 1)
|
||||
if found is not None:
|
||||
return found
|
||||
return None
|
||||
|
||||
|
||||
def by_role_name(role, name=None):
|
||||
def predicate(accessible):
|
||||
if safe(lambda: accessible.get_role_name()) != role:
|
||||
return False
|
||||
return name is None or (safe(lambda: accessible.get_name(), "") or "").startswith(name)
|
||||
return predicate
|
||||
|
||||
|
||||
def measure_reading(document):
|
||||
"""Time what a reader does per line: line text, its range extents and the
|
||||
first character's position, for every text object in document order."""
|
||||
objects = []
|
||||
|
||||
def collect(accessible, depth=0):
|
||||
if depth > 60 or accessible is None:
|
||||
return
|
||||
if safe(lambda: accessible.get_text_iface()) is not None:
|
||||
objects.append(accessible)
|
||||
for index in range(safe(lambda: accessible.get_child_count(), 0) or 0):
|
||||
collect(safe(lambda: accessible.get_child_at_index(index)), depth + 1)
|
||||
|
||||
collect(document)
|
||||
timings = []
|
||||
for accessible in objects:
|
||||
count = safe(lambda: Atspi.Text.get_character_count(accessible), 0) or 0
|
||||
if count <= 0:
|
||||
continue
|
||||
started = time.monotonic()
|
||||
line = safe(lambda: Atspi.Text.get_string_at_offset(accessible, 0, Atspi.TextGranularity.LINE))
|
||||
end = line.end_offset if line is not None and line.end_offset > 0 else count
|
||||
safe(lambda: Atspi.Text.get_range_extents(accessible, 0, end, Atspi.CoordType.SCREEN))
|
||||
safe(lambda: Atspi.Text.get_character_extents(accessible, 0, Atspi.CoordType.SCREEN))
|
||||
timings.append((time.monotonic() - started) * 1000)
|
||||
if not timings:
|
||||
return "reading: no text objects"
|
||||
timings.sort()
|
||||
return (f"reading: objects={len(timings)} total={sum(timings):.0f}ms median={timings[len(timings) // 2]:.1f}ms "
|
||||
f"max={timings[-1]:.1f}ms")
|
||||
|
||||
|
||||
def xdotool(title, *arguments):
|
||||
subprocess.run(["xdotool", "search", "--name", title, "windowactivate", "--sync"], capture_output=True)
|
||||
subprocess.run(["xdotool", "search", "--name", title, "windowfocus", "--sync"], capture_output=True)
|
||||
subprocess.run(["xdotool", *arguments], capture_output=True)
|
||||
|
||||
|
||||
def main():
|
||||
global recording
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--app-name", required=True)
|
||||
parser.add_argument("--log", required=True)
|
||||
parser.add_argument("--title", default="Wine Access Electron Test")
|
||||
parser.add_argument("--step-seconds", type=float, default=1.5)
|
||||
options = parser.parse_args()
|
||||
|
||||
listener = Atspi.EventListener.new(on_event)
|
||||
for eventType in EVENT_TYPES:
|
||||
listener.register(eventType)
|
||||
|
||||
deadline = time.monotonic() + 60
|
||||
application = document = None
|
||||
while time.monotonic() < deadline and document is None:
|
||||
desktop = Atspi.get_desktop(0)
|
||||
for index in range(desktop.get_child_count()):
|
||||
candidate = safe(lambda: desktop.get_child_at_index(index))
|
||||
if candidate is not None and options.app_name.lower() in (safe(lambda: candidate.get_name(), "") or "").lower():
|
||||
application = candidate
|
||||
document = find(candidate, lambda a: safe(lambda: a.get_role()) == Atspi.Role.DOCUMENT_WEB
|
||||
and (safe(lambda: a.get_child_count(), 0) or 0) > 0)
|
||||
if document is not None:
|
||||
break
|
||||
pump(0.5)
|
||||
if document is None:
|
||||
print("document not found")
|
||||
return 3
|
||||
|
||||
userName = find(document, by_role_name("entry", "User name"))
|
||||
password = find(document, by_role_name("password text", "Password"))
|
||||
checkbox = find(document, by_role_name("check box", "Remember me"))
|
||||
addButton = find(document, by_role_name("button", "Add item"))
|
||||
link = find(document, by_role_name("link", "inline link"))
|
||||
table = find(document, by_role_name("table"))
|
||||
missing = [name for name, value in (("entry", userName), ("password", password), ("checkbox", checkbox),
|
||||
("add button", addButton), ("link", link), ("table", table)) if value is None]
|
||||
if missing:
|
||||
print(f"fixture objects not found: {missing}")
|
||||
return 3
|
||||
|
||||
steps = [
|
||||
("focus entry", lambda: Atspi.Component.grab_focus(userName)),
|
||||
("type abc", lambda: xdotool(options.title, "type", "--delay", "100", "abc")),
|
||||
("caret to 1", lambda: Atspi.Text.set_caret_offset(userName, 1)),
|
||||
("select 0-2", lambda: Atspi.Text.add_selection(userName, 0, 2)),
|
||||
("check checkbox", lambda: Atspi.Action.do_action(checkbox, 0)),
|
||||
("add item", lambda: Atspi.Action.do_action(addButton, 0)),
|
||||
("follow link", lambda: Atspi.Action.do_action(link, 0)),
|
||||
("scroll table", lambda: Atspi.Component.scroll_to(table, Atspi.ScrollType.TOP_EDGE)),
|
||||
("focus password", lambda: Atspi.Component.grab_focus(password)),
|
||||
("type password", lambda: xdotool(options.title, "type", "--delay", "100", SECRET)),
|
||||
]
|
||||
print(measure_reading(document), flush=True)
|
||||
print(measure_reading(document) + " (second pass)", flush=True)
|
||||
log = []
|
||||
pump(1.0)
|
||||
recording = True
|
||||
pump(0.5)
|
||||
events.clear()
|
||||
for label, action in steps:
|
||||
result = safe(action, "error")
|
||||
pump(options.step_seconds)
|
||||
log.append(f"STEP {label} result={result}")
|
||||
log.extend(events)
|
||||
events.clear()
|
||||
recording = False
|
||||
with open(options.log, "w", encoding="utf-8") as logFile:
|
||||
logFile.write("\n".join(log) + "\n")
|
||||
# Any three consecutive secret characters inside an event's text payload,
|
||||
# or the whole secret anywhere, is a leak.
|
||||
fragments = [SECRET[index:index + 3] for index in range(len(SECRET) - 2)]
|
||||
leaked = [line for line in log if SECRET in line or
|
||||
(" data='" in line and any(fragment in line.split(" data=", 1)[1] for fragment in fragments))]
|
||||
print(f"steps={len(steps)} events={sum(1 for line in log if not line.startswith('STEP'))} "
|
||||
f"passwordLeaks={len(leaked)}")
|
||||
return 1 if leaked else 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Executable
+106
@@ -0,0 +1,106 @@
|
||||
#!/bin/bash
|
||||
# Live browser bridge checks against the Electron fixture app, on a private
|
||||
# display and accessibility bus, never touching the user's session.
|
||||
# Usage: live_session.sh MODE BUILD_DIR OUTPUT_DIR [PREFIX]
|
||||
# MODE worker ia2 worker protocol checks (worker_driver.py)
|
||||
# helper the helper starts, supervises and retires publishers
|
||||
# (helper_integration.py)
|
||||
# wine publisher + worker under Wine: tree dump and event scenario
|
||||
# native native Linux Chromium reference: tree dump and event scenario
|
||||
# PREFIX Wine prefix with Electron installed (worker and wine modes)
|
||||
# Environment:
|
||||
# WINE_ACCESS_BROWSER_TEST_ELECTRON Windows path of electron.exe in PREFIX
|
||||
# (default C:\electron\v45\electron.exe)
|
||||
# WINE_ACCESS_BROWSER_TEST_CHROMIUM native Chromium command (default chromium)
|
||||
# WINE_ACCESS_BROWSER_TRACE=1 log every worker message (wine mode)
|
||||
# Writes OUTPUT_DIR/<mode>.tree.txt, <mode>.events.txt, <mode>.txt and logs.
|
||||
set -u
|
||||
|
||||
if [[ $# -lt 3 ]]; then
|
||||
echo "Usage: $0 worker|wine|native BUILD_DIR OUTPUT_DIR [PREFIX]"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
sessionMode="$1"
|
||||
buildDir="$(realpath "$2")"
|
||||
outputDir="$(realpath -m "$3")"
|
||||
winePrefix="${4:-}"
|
||||
testDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
electron="${WINE_ACCESS_BROWSER_TEST_ELECTRON:-C:\\electron\\v45\\electron.exe}"
|
||||
chromiumCommand="${WINE_ACCESS_BROWSER_TEST_CHROMIUM:-chromium}"
|
||||
case "$sessionMode" in
|
||||
worker | wine | helper)
|
||||
if [[ -z "$winePrefix" || ! -d "$winePrefix/drive_c" ]]; then
|
||||
echo "$sessionMode mode needs a Wine prefix with Electron installed"
|
||||
exit 2
|
||||
fi
|
||||
;;
|
||||
native) ;;
|
||||
*)
|
||||
echo "Unknown mode: $sessionMode"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
mkdir -p "$outputDir"
|
||||
workDir="$(mktemp -d)"
|
||||
# Chromium's helper processes can still be writing the profile at exit.
|
||||
trap 'rm -rf "$workDir" 2> /dev/null || { sleep 2; rm -rf "$workDir"; }' EXIT
|
||||
|
||||
# The fixture app lives in the prefix so Electron can load it by Windows path.
|
||||
appWindowsPath='C:\wine-access-browser-test'
|
||||
if [[ -n "$winePrefix" ]]; then
|
||||
mkdir -p "$winePrefix/drive_c/wine-access-browser-test"
|
||||
cp "$testDir/fixture-app/"* "$winePrefix/drive_c/wine-access-browser-test/"
|
||||
export WINEPREFIX="$winePrefix"
|
||||
fi
|
||||
export WINEDEBUG=-all
|
||||
# Keep test Wine processes away from a live reader's Wine manager (Cthulhu and
|
||||
# the Orca extension each skip processes carrying their own marker).
|
||||
export CTHULHU_WINE_ACCESS_MANAGED=1 ORCA_WINE_ACCESS_MANAGED=1
|
||||
export sessionMode buildDir outputDir testDir electron chromiumCommand appWindowsPath workDir
|
||||
|
||||
# shellcheck disable=SC2016 # expanded by the inner shell
|
||||
timeout 300 "$testDir/private_session.sh" xvfb-run -a bash -c '
|
||||
title="Wine Access Electron Test"
|
||||
worker="$buildDir/wine-access-browser-worker.exe"
|
||||
if [[ "$sessionMode" == native ]]; then
|
||||
"$chromiumCommand" --user-data-dir="$workDir/profile" --no-first-run --no-default-browser-check \
|
||||
--force-renderer-accessibility "file://$testDir/fixture-app/fixture.html" > "$workDir/browser.log" 2>&1 &
|
||||
browserPid=$!
|
||||
appName=chromium
|
||||
else
|
||||
wine "$electron" "$appWindowsPath" > "$workDir/browser.log" 2>&1 &
|
||||
browserPid=$!
|
||||
appName=electron
|
||||
fi
|
||||
if [[ "$sessionMode" == helper ]]; then
|
||||
python3 -I "$testDir/helper_integration.py" "$buildDir" > "$outputDir/helper.txt" 2>&1
|
||||
status=$?
|
||||
elif [[ "$sessionMode" == worker ]]; then
|
||||
cd "$workDir" || exit 1
|
||||
python3 -I "$testDir/worker_driver.py" wine "$worker" --title "$title" > "$outputDir/worker.txt" 2>&1
|
||||
status=$?
|
||||
cp "$workDir/worker.stderr.log" "$outputDir/worker.stderr.log" 2> /dev/null
|
||||
else
|
||||
if [[ "$sessionMode" == wine ]]; then
|
||||
WINE_ACCESS_BROWSER_TRACE="${WINE_ACCESS_BROWSER_TRACE:-}" \
|
||||
"$buildDir/wine-access-browser-publisher" --worker wine "$worker" --title "$title" \
|
||||
> "$outputDir/wine.publisher.log" 2>&1 &
|
||||
publisherPid=$!
|
||||
fi
|
||||
python3 -I "$testDir/atspi_dump.py" --app-name "$appName" --boundaries --wait 60 \
|
||||
> "$outputDir/$sessionMode.tree.txt" 2>&1
|
||||
python3 -I "$testDir/live_driver.py" --app-name "$appName" --title "$title" \
|
||||
--log "$outputDir/$sessionMode.events.txt" > "$outputDir/$sessionMode.txt" 2>&1
|
||||
status=$?
|
||||
[[ -n "${publisherPid:-}" ]] && kill "$publisherPid" 2> /dev/null
|
||||
fi
|
||||
kill "$browserPid" 2> /dev/null
|
||||
wait "$browserPid" 2> /dev/null
|
||||
[[ "$sessionMode" != native ]] && wineserver -k 2> /dev/null
|
||||
exit "$status"
|
||||
' > /dev/null 2>&1
|
||||
sessionStatus=$?
|
||||
[[ "$sessionMode" != native ]] && wineserver -k 2> /dev/null
|
||||
echo "Live session $sessionMode exit status $sessionStatus; results in $outputDir"
|
||||
exit "$sessionStatus"
|
||||
Executable
+53
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
# Run a command in a private D-Bus session whose accessibility bus lives in a
|
||||
# private runtime directory, so tests can never touch the user's live
|
||||
# accessibility bus. Refuses to run the command if isolation cannot be proven.
|
||||
# Usage: private_session.sh COMMAND...
|
||||
#
|
||||
# Background: at-spi-bus-launcher puts its socket at
|
||||
# $XDG_RUNTIME_DIR/at-spi/bus_<display>, and advertises it in the AT_SPI_BUS
|
||||
# property of its display's root window, which libatspi checks first. A
|
||||
# launcher that sees the user's XDG_RUNTIME_DIR takes over the user's socket
|
||||
# path and deletes it on exit; one that sees DISPLAY=:0 pulls the user's newly
|
||||
# connecting applications onto the test bus. So the private D-Bus session gets
|
||||
# a private runtime directory and no display at all; commands that need a
|
||||
# display start their own (xvfb-run) inside it.
|
||||
set -u
|
||||
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "Usage: $0 COMMAND..."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
userDisplay="${DISPLAY:-}"
|
||||
privateRuntime="$(mktemp -d)"
|
||||
chmod 700 "$privateRuntime"
|
||||
trap 'rm -rf "$privateRuntime"' EXIT
|
||||
export XDG_RUNTIME_DIR="$privateRuntime"
|
||||
unset AT_SPI_BUS_ADDRESS DISPLAY WAYLAND_DISPLAY
|
||||
export userDisplay
|
||||
|
||||
# shellcheck disable=SC2016 # expanded by the inner shell
|
||||
dbus-run-session -- bash -c '
|
||||
busAddress="$(gdbus call --session --dest org.a11y.Bus --object-path /org/a11y/bus \
|
||||
--method org.a11y.Bus.GetAddress 2> /dev/null)"
|
||||
case "$busAddress" in
|
||||
*"unix:path=$XDG_RUNTIME_DIR/"*) ;;
|
||||
*)
|
||||
echo "Refusing to run: the accessibility bus is not private ($busAddress)" >&2
|
||||
exit 90
|
||||
;;
|
||||
esac
|
||||
# Tripwire while the launcher is running (it removes the property on exit):
|
||||
# the user display must never advertise the test bus.
|
||||
if [[ -n "$userDisplay" ]] && DISPLAY="$userDisplay" xprop -root AT_SPI_BUS 2> /dev/null |
|
||||
grep -q "$XDG_RUNTIME_DIR"; then
|
||||
echo "Refusing to run: the user display advertises the test accessibility bus" >&2
|
||||
exit 91
|
||||
fi
|
||||
gdbus call --session --dest org.a11y.Bus --object-path /org/a11y/bus \
|
||||
--method org.freedesktop.DBus.Properties.Set org.a11y.Status IsEnabled "<true>" > /dev/null
|
||||
"$@"
|
||||
' private_session_inner "$@"
|
||||
sessionStatus=$?
|
||||
exit "$sessionStatus"
|
||||
Executable
+62
@@ -0,0 +1,62 @@
|
||||
#!/bin/bash
|
||||
# CTest: publish the recorded Electron 45 snapshot with the browser publisher
|
||||
# on a private accessibility bus, and compare what readers would see with
|
||||
# native Linux Chromium: the document with text boundaries against Chromium
|
||||
# 158, and the whole application against Electron 42. No Wine is needed.
|
||||
# Usage: publisher_snapshot_test.sh PUBLISHER
|
||||
set -u
|
||||
|
||||
if [[ $# -ne 1 || ! -x "$1" ]]; then
|
||||
echo "Usage: $0 PUBLISHER"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
publisher="$1"
|
||||
testDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
dataDir="$testDir/data"
|
||||
workDir="$(mktemp -d)"
|
||||
trap 'rm -rf "$workDir"' EXIT
|
||||
export publisher testDir dataDir workDir
|
||||
|
||||
# shellcheck disable=SC2016 # expanded by the inner shell
|
||||
timeout 180 "$testDir/private_session.sh" bash -c '
|
||||
"$publisher" "$dataDir/electron45-snapshot.json" --active > "$workDir/publisher.log" 2>&1 &
|
||||
publisherPid=$!
|
||||
python3 -I "$testDir/atspi_dump.py" --app-name electron --boundaries > "$workDir/document.txt" 2>&1
|
||||
python3 -I "$testDir/atspi_dump.py" --app-name electron --whole-app > "$workDir/application.txt" 2>&1
|
||||
kill "$publisherPid" 2> /dev/null
|
||||
wait "$publisherPid" 2> /dev/null
|
||||
exit 0
|
||||
' 2> "$workDir/session.log"
|
||||
sessionStatus=$?
|
||||
if [[ "$sessionStatus" -ne 0 ]]; then
|
||||
echo "FAIL: private session (status $sessionStatus)"
|
||||
cat "$workDir/session.log"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
failures=0
|
||||
if python3 -I "$testDir/compare_dumps.py" "$dataDir/native-chromium158-document.txt" "$workDir/document.txt" \
|
||||
> "$workDir/document.diff"; then
|
||||
echo "PASS: document and text boundaries match native Chromium 158"
|
||||
else
|
||||
echo "FAIL: document differs from native Chromium 158"
|
||||
tail -n 40 "$workDir/document.diff"
|
||||
failures=$((failures + 1))
|
||||
fi
|
||||
if python3 -I "$testDir/compare_dumps.py" "$dataDir/native-electron42-application.txt" "$workDir/application.txt" \
|
||||
--baseline electron42 > "$workDir/application.diff"; then
|
||||
echo "PASS: application matches native Electron 42"
|
||||
else
|
||||
echo "FAIL: application differs from native Electron 42"
|
||||
tail -n 40 "$workDir/application.diff"
|
||||
failures=$((failures + 1))
|
||||
fi
|
||||
if grep -q -E 'WARNING|CRITICAL' "$workDir/publisher.log"; then
|
||||
echo "FAIL: publisher warnings"
|
||||
grep -E 'WARNING|CRITICAL' "$workDir/publisher.log" | head -n 10
|
||||
failures=$((failures + 1))
|
||||
else
|
||||
echo "PASS: no publisher warnings"
|
||||
fi
|
||||
[[ "$failures" -eq 0 ]]
|
||||
Executable
+201
@@ -0,0 +1,201 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Drive ia2_worker.exe against the Electron fixture and check its protocol.
|
||||
|
||||
Run inside the same X display and wineserver as Electron (worker_session.sh
|
||||
does this). Prints PASS/FAIL lines and exits non-zero on any failure.
|
||||
"""
|
||||
|
||||
import json
|
||||
import queue
|
||||
import subprocess
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
|
||||
TITLE = "Wine Access Electron Test"
|
||||
SECRET = "Zq7secret" # typed into the password field; must never appear in output
|
||||
|
||||
failures = 0
|
||||
allLines = []
|
||||
|
||||
|
||||
def check(name, condition, detail=""):
|
||||
global failures
|
||||
if condition:
|
||||
print(f"PASS: {name}", flush=True)
|
||||
else:
|
||||
failures += 1
|
||||
print(f"FAIL: {name} {detail}", flush=True)
|
||||
|
||||
|
||||
class Worker:
|
||||
def __init__(self, command):
|
||||
self.process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
||||
stderr=open("worker.stderr.log", "wb"))
|
||||
self.messages = queue.Queue()
|
||||
self.nextRequestId = 1
|
||||
threading.Thread(target=self._read, daemon=True).start()
|
||||
|
||||
def _read(self):
|
||||
for raw in self.process.stdout:
|
||||
allLines.append(raw)
|
||||
try:
|
||||
self.messages.put(json.loads(raw))
|
||||
except json.JSONDecodeError:
|
||||
self.messages.put({"type": "invalid-json", "raw": raw[:200]})
|
||||
self.messages.put({"type": "eof"})
|
||||
|
||||
def receive(self, seconds):
|
||||
"""All messages that arrive within the time limit."""
|
||||
deadline = time.monotonic() + seconds
|
||||
received = []
|
||||
while time.monotonic() < deadline:
|
||||
try:
|
||||
received.append(self.messages.get(timeout=max(0.01, deadline - time.monotonic())))
|
||||
except queue.Empty:
|
||||
break
|
||||
return received
|
||||
|
||||
def wait_for(self, predicate, seconds):
|
||||
deadline = time.monotonic() + seconds
|
||||
seen = []
|
||||
while time.monotonic() < deadline:
|
||||
try:
|
||||
message = self.messages.get(timeout=max(0.01, deadline - time.monotonic()))
|
||||
except queue.Empty:
|
||||
break
|
||||
seen.append(message)
|
||||
if predicate(message):
|
||||
return message, seen
|
||||
return None, seen
|
||||
|
||||
def request(self, op, **fields):
|
||||
requestId = self.nextRequestId
|
||||
self.nextRequestId += 1
|
||||
message = {"type": "request", "requestId": requestId, "op": op, **fields}
|
||||
self.process.stdin.write((json.dumps(message, separators=(",", ":")) + "\n").encode())
|
||||
self.process.stdin.flush()
|
||||
reply, seen = self.wait_for(lambda m: m.get("type") == "reply" and m.get("requestId") == requestId, 10)
|
||||
return reply, seen
|
||||
|
||||
|
||||
def walk(node):
|
||||
yield node
|
||||
for child in node.get("children", []):
|
||||
yield from walk(child)
|
||||
|
||||
|
||||
def find(root, predicate):
|
||||
return next((node for node in walk(root) if predicate(node)), None)
|
||||
|
||||
|
||||
def xdotool(*arguments):
|
||||
subprocess.run(["xdotool", *arguments], check=False, capture_output=True)
|
||||
|
||||
|
||||
def main():
|
||||
worker = Worker(sys.argv[1:])
|
||||
hello, _ = worker.wait_for(lambda m: m.get("type") == "hello", 40)
|
||||
check("hello received", hello is not None and hello.get("protocol") == 1, str(hello))
|
||||
check("hello reports an X11 window", bool(hello and hello.get("x11Window")), str(hello))
|
||||
tree, _ = worker.wait_for(lambda m: m.get("type") == "tree", 40)
|
||||
check("tree received", tree is not None)
|
||||
if tree is None:
|
||||
return 1
|
||||
root = tree["root"]
|
||||
nodeCount = sum(1 for _ in walk(root))
|
||||
check("tree has web content", nodeCount > 60, f"nodes={nodeCount}")
|
||||
ids = [node.get("id") for node in walk(root)]
|
||||
check("uniqueIDs are unique and non-zero", len(ids) == len(set(ids)) and 0 not in ids)
|
||||
|
||||
userName = find(root, lambda n: n.get("msaaRole") == 42 and n.get("name") == "User name")
|
||||
password = find(root, lambda n: n.get("msaaRole") == 42 and n.get("name") == "Password")
|
||||
checkbox = find(root, lambda n: n.get("msaaRole") == 44)
|
||||
addButton = find(root, lambda n: n.get("msaaRole") == 43 and n.get("name") == "Add item")
|
||||
table = find(root, lambda n: n.get("msaaRole") == 24)
|
||||
emoji = find(root, lambda n: "Emoji" in (n.get("text") or "") and n.get("hyperlinks"))
|
||||
check("fixture objects found", all([userName, password, checkbox, addButton, table, emoji]))
|
||||
check("password node carries no text or value", password is not None and "text" not in password
|
||||
and "value" not in password)
|
||||
|
||||
reply, _ = worker.request("boundary", id=emoji["id"], offset=0, granularity=1)
|
||||
check("word boundary at 0 is 0-6", reply and reply["ok"] and (reply["start"], reply["end"]) == (0, 6), str(reply))
|
||||
reply, _ = worker.request("boundary", id=password["id"], offset=0, granularity=1)
|
||||
check("boundary on password is refused", reply and not reply["ok"], str(reply))
|
||||
reply, _ = worker.request("extents", id=table["id"])
|
||||
check("table extents returned", reply and reply["ok"] and len(reply["extents"]) == 4, str(reply))
|
||||
reply, _ = worker.request("extents", id=123456789)
|
||||
check("unknown id reports gone", reply and not reply["ok"] and reply.get("gone"), str(reply))
|
||||
|
||||
reply, seen = worker.request("focus", id=userName["id"])
|
||||
check("focus request succeeds", reply and reply["ok"], str(reply))
|
||||
focus, more = worker.wait_for(lambda m: m.get("type") == "focus" and m.get("id") == userName["id"], 5)
|
||||
check("focus message names the input", focus and focus["id"] == userName["id"], str(focus))
|
||||
|
||||
xdotool("search", "--name", TITLE, "windowactivate", "--sync")
|
||||
xdotool("search", "--name", TITLE, "windowfocus", "--sync")
|
||||
xdotool("type", "--delay", "80", "abc")
|
||||
_, seen = worker.wait_for(lambda m: m.get("type") == "node" and m["node"].get("id") == userName["id"]
|
||||
and m["node"].get("text") == "abc", 8)
|
||||
typed = [m for m in seen if m.get("type") == "node" and m["node"].get("id") == userName["id"]]
|
||||
check("typing produced node updates ending in 'abc'", typed and typed[-1]["node"].get("text") == "abc",
|
||||
str([m["node"].get("text") for m in typed]))
|
||||
carets = [m for m in seen if m.get("type") == "caret" and m.get("id") == userName["id"]]
|
||||
extra = worker.receive(0.5)
|
||||
carets += [m for m in extra if m.get("type") == "caret" and m.get("id") == userName["id"]]
|
||||
check("caret messages end at 3", carets and carets[-1]["caret"] == 3, str(carets[-3:]))
|
||||
|
||||
reply, seen = worker.request("setCaret", id=userName["id"], offset=1)
|
||||
caret, _ = worker.wait_for(lambda m: m.get("type") == "caret" and m.get("id") == userName["id"], 3)
|
||||
check("setCaret moves the caret to 1", reply and reply["ok"] and caret and caret["caret"] == 1, str(caret))
|
||||
reply, _ = worker.request("setSelection", id=userName["id"], start=0, end=2)
|
||||
selection, _ = worker.wait_for(lambda m: m.get("type") in ("caret", "selection") and m.get("id") == userName["id"]
|
||||
and m.get("selection") == [0, 2], 3)
|
||||
check("setSelection selects 0-2", reply and reply["ok"] and selection is not None, str(reply))
|
||||
|
||||
reply, _ = worker.request("action", id=checkbox["id"], index=0)
|
||||
update, _ = worker.wait_for(lambda m: m.get("type") == "node" and m["node"].get("id") == checkbox["id"]
|
||||
and m["node"]["msaaStates"] & 0x10, 5)
|
||||
check("checkbox action checks it", reply and reply["ok"] and update is not None, str(reply))
|
||||
|
||||
reply, _ = worker.request("action", id=addButton["id"], index=0)
|
||||
_, seen = worker.wait_for(lambda m: m.get("type") == "subtree" and any(
|
||||
(n.get("name") or "").startswith("Item 2") for n in walk(m["node"])), 5)
|
||||
check("add item produces a subtree containing the new item",
|
||||
any(m.get("type") == "subtree" and any((n.get("name") or "").startswith("Item 2") for n in walk(m["node"]))
|
||||
for m in seen), str([m.get("type") for m in seen]))
|
||||
|
||||
reply, _ = worker.request("scrollTo", id=table["id"], scrollType=2)
|
||||
layout, _ = worker.wait_for(lambda m: m.get("type") == "layout", 3)
|
||||
check("scrollTo produces a layout message", reply and reply["ok"] and layout is not None, str(reply))
|
||||
|
||||
reply, _ = worker.request("focus", id=password["id"])
|
||||
worker.wait_for(lambda m: m.get("type") == "focus" and m.get("id") == password["id"], 5)
|
||||
xdotool("type", "--delay", "80", SECRET)
|
||||
seen = worker.receive(3)
|
||||
passwordUpdates = [m for m in seen if m.get("type") == "node" and m["node"].get("id") == password["id"]]
|
||||
check("typing into the password produces updates", len(passwordUpdates) > 0, str(len(passwordUpdates)))
|
||||
check("password updates report length only", passwordUpdates and all(
|
||||
"text" not in m["node"] and "value" not in m["node"] for m in passwordUpdates))
|
||||
check("password length tracks typing", passwordUpdates and passwordUpdates[-1]["node"].get("textLength")
|
||||
== len(SECRET), str(passwordUpdates[-1]["node"].get("textLength") if passwordUpdates else None))
|
||||
|
||||
worker.process.stdin.close()
|
||||
try:
|
||||
worker.process.wait(timeout=10)
|
||||
check("worker exits when its input closes", True)
|
||||
except subprocess.TimeoutExpired:
|
||||
worker.process.kill()
|
||||
check("worker exits when its input closes", False)
|
||||
leaked = [line for line in allLines if SECRET.encode() in line]
|
||||
check("secret never appears in worker output", not leaked, f"{len(leaked)} lines")
|
||||
invalid = [line for line in allLines if not line.strip().startswith(b"{")]
|
||||
check("every output line is a JSON object", not invalid, str(invalid[:2]))
|
||||
with open("worker.stderr.log", "rb") as stderrFile:
|
||||
check("secret never appears in worker diagnostics", SECRET.encode() not in stderrFile.read())
|
||||
print(f"messages={len(allLines)}")
|
||||
return 1 if failures else 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user