[at-spi2-core: 10/17] Test GetLocalizedRoleName
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 10/17] Test GetLocalizedRoleName
- Date: Wed, 12 Oct 2022 00:58:50 +0000 (UTC)
commit 742d7d66323efec8156c785b8502341902f5e75f
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 11 18:58:42 2022 -0500
Test GetLocalizedRoleName
registryd/registry.c | 2 +-
tests/registryd/test_root_accessible.py | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index 0df7befc..e17fe149 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -777,7 +777,7 @@ impl_GetRoleName (DBusMessage * message, SpiRegistry *registry)
static DBusMessage *
impl_GetLocalizedRoleName (DBusMessage * message, SpiRegistry *registry)
{
- /* TODO - Localize this */
+ /* FIXME - Localize this */
DBusMessage *reply;
const char *role_name = "desktop frame";
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py
index ea6738a1..b73e3709 100644
--- a/tests/registryd/test_root_accessible.py
+++ b/tests/registryd/test_root_accessible.py
@@ -49,3 +49,7 @@ def test_root_get_role(registry_root, session_manager):
def test_root_get_role_name(registry_root, session_manager):
assert registry_root.GetRoleName(dbus_interface=ACCESSIBLE_IFACE) == "desktop frame"
+
+def test_root_get_localized_role_name(registry_root, session_manager):
+ # FIXME: see the corresponding FIXME in registry.c, to actually localize this
+ assert registry_root.GetLocalizedRoleName(dbus_interface=ACCESSIBLE_IFACE) == "desktop frame"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]