Simon Hausmann
15944a9a3f
CI: Fix build
...
(ooops)
2025-06-25 21:25:22 +02:00
Simon Hausmann
a30368f0b9
system-testing: Improve error message when image encoding for snapshotting fails, by including the mime type
2025-06-25 21:23:13 +02:00
Simon Hausmann
3596cf3b5d
system-testing: Fix fallback for window image snapshotting
...
Only fall back to PNG if the old protocol is used (where the string would be empty), otherwise fail with an error.
2025-06-25 21:23:13 +02:00
Simon Hausmann
f0c3df815e
system-testing: Make the image format for snapshots configurable
...
Let the image crate pick an encoder by mime-type, otherwise fall back to png.
Renaming the field in the response is compatible, as only the tag
numbers are encoded. Adding a field to the request is also compatible as
every field is optional.
2025-06-25 21:23:13 +02:00
Simon Hausmann
ccf651cd3a
system testing: Expose accessible-enabled and accessible-read-only
2025-06-19 08:47:41 +02:00
Simon Hausmann
864fbf01d8
system testing: Expose accessible-placeholder-text in the element properties
2025-06-17 13:42:25 +02:00
Simon Hausmann
504474f90b
system-testing: Disable Nagle's algorithm to speed up round-trips
...
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Also write the leading message size header and the message body in one go to the socket, to reduce the risk of fragmentation.
Kindly suggested by @ubruhin
2025-06-16 17:50:24 +02:00
Arnold Loubriat
90c337f1d1
Add AccessibleRole::Image
and use it in the AboutSlint
widget ( #7593 )
...
* Add `AccessibleRole::Image`
* Improve accessibility of the `AboutSlint` widget
* Filter out some images from the accessibility tree
2025-02-18 09:43:53 +01:00
Arnold Loubriat
358e42a8d5
Add the accessible-action-expand
action
2025-02-03 20:32:45 +01:00
Olivier Goffart
8a5df27469
Update to Image 0.25 ( #7365 )
...
Added image-default-formats with all the format supported by image by
default, and enable that feature by default.
Also put that feature in compat-1-2 for compatibility with user that
have used image 0.24 with enabled features.
Make a new compat-1-10 feature that does not enable default format by
default
ChangeLog: upgraded image crate to 0.25, added a new cargo feature
to enable all image formats. (that feature is enabled by default with
compat-1-2, added compat-1-10 to disable it
Fixes https://github.com/slint-ui/slint/issues/7251
2025-01-14 16:31:05 +01:00
Tasuku Suzuki
346d1c2df3
Fix typos
...
Ran `typos .` and fixed all typos that do make sense.
https://crates.io/crates/typos
2025-01-13 08:35:20 +01:00
Simon Hausmann
aa332202c5
Rename AccessibleRole.GroupBox to AccessibleRole.Groupbox
...
While unfortunate in casing, this is consistent with Checkbox, Combobox, and Spinbox.
2025-01-10 16:27:14 +01:00
Arnold Loubriat
49196728a7
Add AccessibleRole::GroupBox
2025-01-07 23:08:03 +01:00
Arnold Loubriat
3304df0f82
Add AccessibleRole::TabPanel
2025-01-06 09:30:11 +01:00
Simon Hausmann
b2873a3d17
ui-testing: Add support for reading the computed opacity of elements
...
This is useful when the UI shows for example labels that appear and the screenshot for referenceing is meant to be taken when the opacity animation is complete and the value is (near) 1.0.
2024-09-19 11:28:18 +02:00
Arnold Loubriat
f01420258f
Changelog: Introduce AccessibleRole::ListItem
2024-09-16 09:15:39 +02:00
Olivier Goffart
43c7f57b0f
spawn_local: initialize the platform if not initialized before the call
...
Take the opportunity to refactor a bit the way the global platform or
context is accessed
Fixes : #5871
2024-08-21 13:26:04 +02:00
Simon Hausmann
12f5343cd8
Add the window's root element handle to the window properties
2024-08-20 15:48:00 +02:00
Simon Hausmann
69e5a8a446
System Testing: Add descendent and element id/type/role matching messages
2024-08-20 15:48:00 +02:00
Simon Hausmann
9e8fccb742
system testing: Add support for dispatching pointer and key window events
2024-07-16 14:10:22 +02:00
Simon Hausmann
a16e86bbd9
API review: Remove accidental public strum dependency
...
Deriving strum::EnumIter on a publicly exposed enum (like PointerEventButton) implies visibility into types that strum declares. This was added just for testing
in systest and can be solved differently.
Amends a1857e6154
2024-07-05 20:48:25 +02:00
Simon Hausmann
e35d05f6b9
API Review: Remove SharedImageBuffer from public API and rename Window::grab_window() to take_snapshot()
...
Use SharedPixelBuffer as return value for take_snapshot() and provide counter-parts to from_rgb* in Image as to_rgb*
2024-07-05 20:46:55 +02:00
Simon Hausmann
7f05b8aa39
Changed ElementHandle click API to a single_click and double_click function taking the button
...
That way one can also simulate double right click, for example. This is a little less convenient, more generic, but a reasonable compromise (perhaps :-)
2024-06-28 13:56:51 +02:00
Simon Hausmann
e78e68a1ba
System Testing: Add support for clicking on elements
2024-06-28 13:56:51 +02:00
Simon Hausmann
155156aab9
System testing: Add support for grabbing window contents as PNG encoded image
2024-06-27 10:25:03 +02:00
Simon Hausmann
a1857e6154
system testing: add a unit test to verify that the manual AccessibilityRole mapping is always complete
...
The enum is non-exhaustive, but we can do an additional run-time check.
2024-06-14 07:46:36 -07:00
Simon Hausmann
142b1ebde7
System Testing: Expose the accessibility role of elements
2024-06-14 07:46:36 -07:00
Simon Hausmann
a2e10f8c78
When trying to fetch an ElementHandle as part of a RPC, remove the tracked handle if it's not valid anymore
...
There's no value in keeping it.
2024-06-13 04:03:17 -07:00
Simon Hausmann
1c6aadeb30
Add support for setting the accessible value
2024-06-13 04:03:17 -07:00
Simon Hausmann
e071ba9e5b
Add a way to invoke accessibility actions
2024-06-13 04:03:17 -07:00
Simon Hausmann
97343b22db
Testing: Add the ability to locate elements by id and expose various properties
2024-06-13 04:03:17 -07:00
Simon Hausmann
4591ad8d57
Add plumbing for system testing
2024-06-13 04:03:17 -07:00