Files
core/sw/CppunitTest_sw_accessible_relation_set.mk
Michael Weghorn b1f3e41f10 sw a11y test: Don't rely on XWindow being XAccessible
The fact that the VCLXWindow (which implements the
XWindow interface) is currently also the XAccessible
for most vcl::Window subclasses (see Window::GetAccessible
and the default implementation in Window::CreateAccessible,
but which is overriden in some vcl::Window subclasses) is an
implementation detail and subject to change, so don't rely on that.
Instead, call Window::GetAccessible on the underlying
vcl::Window.

See also

    commit b608604d0b
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Dec 5 14:07:52 2024 +0000

        tdf#164093 tdf#157001 wina11y: Use vcl::Window's actual XAccessible

Change-Id: Id81ab5f90955ecc600e179164b5f9c7a771182d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185597
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-05-22 05:49:42 +02:00

65 lines
1.9 KiB
Makefile

# -*- 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_CppunitTest_CppunitTest,sw_accessible_relation_set))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_accessible_relation_set))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_accessible_relation_set, \
sw/qa/extras/accessibility/accessible_relation_set \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_accessible_relation_set, \
comphelper \
cppu \
cppuhelper \
i18nlangtag \
sal \
subsequenttest \
sw \
test \
tk \
tl \
unotest \
utl \
vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_CppunitTest_use_externals,sw_accessible_relation_set,\
boost_headers \
))
$(eval $(call gb_CppunitTest_set_include,sw_accessible_relation_set,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_accessible_relation_set,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_accessible_relation_set))
$(eval $(call gb_CppunitTest_use_vcl,sw_accessible_relation_set))
$(eval $(call gb_CppunitTest_use_rdb,sw_accessible_relation_set,services))
$(eval $(call gb_CppunitTest_use_configuration,sw_accessible_relation_set))
# we need to explicitly depend on Library_acc because it's dynamically loaded
$(call gb_CppunitTest_get_target,sw_accessible_relation_set) : $(call gb_Library_get_target,acc)
# vim: set noet sw=4 ts=4: