diff --git a/tests/a11y/accessibility-dump.c b/tests/a11y/accessibility-dump.c index b2c79f85ee..19c4edc4ed 100644 --- a/tests/a11y/accessibility-dump.c +++ b/tests/a11y/accessibility-dump.c @@ -513,10 +513,6 @@ dump_atk_streamable_content (AtkStreamableContent *content, g_string_append_c (string, '\n'); } -static void dump_accessible (AtkObject *accessible, - guint depth, - GString *string); - static void dump_atk_table (AtkTable *table, guint depth, @@ -532,17 +528,11 @@ dump_atk_table (AtkTable *table, obj = atk_table_get_summary (table); if (obj) - { - g_string_append_printf (string, "%*s\n", depth, ""); - dump_accessible (obj, depth, string); - } + g_string_append_printf (string, "%*ssummary: %s\n", depth, "", get_name (obj)); obj = atk_table_get_caption (table); if (obj) - { - g_string_append_printf (string, "%*s\n", depth, ""); - dump_accessible (obj, depth, string); - } + g_string_append_printf (string, "%*scaption: %s\n", depth, "", get_name (obj)); g_string_append_printf (string, "%*srows: %d\n", depth, "", atk_table_get_n_rows (table)); g_string_append_printf (string, "%*scolumns: %d\n", depth, "", atk_table_get_n_columns (table)); @@ -577,10 +567,7 @@ dump_atk_table (AtkTable *table, g_string_append_printf (string, "%*scolumn %d description: %s\n", depth, "", i, desc); obj = atk_table_get_column_header (table, i); if (obj) - { - g_string_append_printf (string, "%*s\n", depth, "", i); - dump_accessible (obj, depth, string); - } + g_string_append_printf (string, "%*scolumn %d header: %s\n", depth, "", i, get_name (obj)); } for (i = 0; i < atk_table_get_n_rows (table); i++) @@ -590,10 +577,7 @@ dump_atk_table (AtkTable *table, g_string_append_printf (string, "%*srow %d description: %s\n", depth, "", i, desc); obj = atk_table_get_row_header (table, i); if (obj) - { - g_string_append_printf (string, "%*s\n", depth, "", i); - dump_accessible (obj, depth, string); - } + g_string_append_printf (string, "%*srow %d header: %s\n", depth, "", i, get_name (obj)); } } diff --git a/tests/a11y/appchooser.txt b/tests/a11y/appchooser.txt index 7ee2fcc41c..d2f9384915 100644 --- a/tests/a11y/appchooser.txt +++ b/tests/a11y/appchooser.txt @@ -105,22 +105,7 @@ window1 rows: 1 columns: 1 column 0 description: - - unnamed-GtkButtonAccessible-6 - "table column header" - parent: unnamed-GtkTreeViewAccessible-5 - index: 0 - name: - state: enabled focusable selectable sensitive - toolkit: gtk - - layer: widget - alpha: 1 - - image size: -1 x -1 - image description: (null) - - action 0 name: click + column 0 header: unnamed-GtkButtonAccessible-6 unnamed-GtkButtonAccessible-6 "table column header" parent: unnamed-GtkTreeViewAccessible-5 diff --git a/tests/a11y/tree.txt b/tests/a11y/tree.txt index 4e54aa6558..27f2b8d916 100644 --- a/tests/a11y/tree.txt +++ b/tests/a11y/tree.txt @@ -23,39 +23,9 @@ window1 columns: 2 selected rows: 0 column 0 description: Column 1 - - unnamed-GtkButtonAccessible-0 - "table column header" - parent: tree1 - index: 0 - name: Column 1 - state: enabled sensitive showing visible - toolkit: gtk - - layer: widget - alpha: 1 - - image size: -1 x -1 - image description: (null) - - action 0 name: click + column 0 header: unnamed-GtkButtonAccessible-0 column 1 description: Column 2 - - unnamed-GtkButtonAccessible-1 - "table column header" - parent: tree1 - index: 1 - name: Column 2 - state: enabled sensitive showing visible - toolkit: gtk - - layer: widget - alpha: 1 - - image size: -1 x -1 - image description: (null) - - action 0 name: click + column 1 header: unnamed-GtkButtonAccessible-1 unnamed-GtkButtonAccessible-0 "table column header" parent: tree1