summaryrefslogtreecommitdiff
path: root/config_host
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 /config_host
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>
Diffstat (limited to 'config_host')
-rw-r--r--config_host/config_atspi.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/config_host/config_atspi.h.in b/config_host/config_atspi.h.in
new file mode 100644
index 000000000000..7a4a48f2d2f1
--- /dev/null
+++ b/config_host/config_atspi.h.in
@@ -0,0 +1,14 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * 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/.
+ */
+
+#pragma once
+
+#define HAVE_ATSPI2_SCROLL_TO 0
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */