docs: record toolbar verification and pending unlocked desktop acceptance
This commit is contained in:
1 parent
c96a27c033
commit
b8acbc6de5
5 files changed
+80
-16
No files matched your search
@@ -31,7 +31,8 @@ def main():
|
||||
bounds = win32gui.GetClientRect(handle)
|
||||
assert bounds[3] * 96 / dpi <= 46, (bounds, dpi)
|
||||
assert win32gui.GetWindowLong(handle, -20) & 0x8
|
||||
buttons = [button.rectangle() for button in ui.toolbar.descendants(control_type="Button")]
|
||||
buttons = [button.rectangle() for button in ui.toolbar.descendants()
|
||||
if button.element_info.control_type in ('Button', 'CheckBox')]
|
||||
centers = [(rect.top + rect.bottom) / 2 for rect in buttons]
|
||||
assert max(centers) - min(centers) <= 2, buttons
|
||||
ui.toolbar.capture_as_image().save(str(evidence / "toolbar.png"))
|
||||
@@ -51,7 +52,7 @@ def main():
|
||||
before = progress.stat().st_mtime_ns
|
||||
wait_for(lambda: progress.stat().st_mtime_ns > before, 15)
|
||||
first = win32gui.GetWindowRect(handle)
|
||||
grip = ui.toolbar.child_window(title="拖动工具栏", control_type="Text").rectangle()
|
||||
grip = ui.toolbar.child_window(title="拖动工具栏").rectangle()
|
||||
pointer = win32gui.GetCursorPos()
|
||||
start = ((grip.left + grip.right) // 2, (grip.top + grip.bottom) // 2)
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user