# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # $(eval $(call gb_Library_Library,affine_uno_uno)) $(eval $(call gb_Library_use_udk_api,affine_uno_uno)) $(eval $(call gb_Library_use_libraries,affine_uno_uno,\ purpenvhelper \ sal \ )) $(eval $(call gb_Library_add_exception_objects,affine_uno_uno,\ cppu/source/AffineBridge/AffineBridge \ )) # vim: set noet sw=4 ts=4: c355f323ecc9f656e4a'/> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorColomban Wendling <cwendling@hypra.fr>2023-04-05 15:39:25 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2023-07-27 20:01:17 +0200
commit3426dcfec2b4d5c755024c355f323ecc9f656e4a (patch)
treee663aa5d73e470e2ca8cef603607185ca751e9cf /vcl
parent3121642fb1927c9cb1aa35c6b3e6afa818459117 (diff)
vcl gtk3: Introduce AT-SPI2 tests for the GTK3 accessibility layer
Add tests for the GTK3 accessibility platform layer. These tests compare the internal LO representation with what is visible to the platform, and thus the user's accessibility tools. In most cases the tests are fairly trivial as LO's internals are not far off AT-SPI2's expectations. There are however notable exceptions like for example the text attributes, that have a wildly different representation and require more complex checks matching what LO's platform layer does, the other way around. These tests use libatspi2 directly, but as the C API is awful to work with regarding resource management, there are wrappers to handle the complexity using RAII. The resulting API is fairly trivial to use. As these tests require using the GTK3 VCL plugin and for the a11y tree to be visible to AT-SPI2, they are run under XVFB using a separate dbus session through dbus-launch. Working on this has already lead to reporting and/or solving some issues: * https://gerrit.libreoffice.org/c/core/+/151303 * https://gerrit.libreoffice.org/c/core/+/151650 * https://gerrit.libreoffice.org/c/core/+/152456 * https://gerrit.libreoffice.org/c/core/+/152457 * https://bugs.documentfoundation.org/show_bug.cgi?id=155625 * https://bugs.documentfoundation.org/show_bug.cgi?id=155705 * https://gerrit.libreoffice.org/c/core/+/152748 Only a subset of the a11y APIs are covered for the moment, but the current state should make it easy to extend upon. Change-Id: I1a047864ce8dc1f1bc3056ad00159f7fd5e5b7d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153069 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>