Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
e0324064
Commit
e0324064
authored
Jun 29, 2011
by
Benjamin Otte
Committed by
Matthias Clasen
Jul 05, 2011
Browse files
tests: Make accessibility-dump output selected children by name
And put one child in every row to make diffing easier.
parent
4ca42d97
Changes
4
Hide whitespace changes
Inline
Side-by-side
tests/a11y/about.txt
View file @
e0324064
...
...
@@ -87,7 +87,7 @@ window1
alpha: 1
<AtkSelection>
selection count: 1
selected children:
0
selected children:
unnamed-GailNotebookPage-4
unnamed-GailNotebookPage-4
"page tab"
parent: unnamed-GailNotebook-3
...
...
tests/a11y/accessibility-dump.c
View file @
e0324064
...
...
@@ -402,14 +402,20 @@ dump_atk_selection (AtkSelection *atk_selection,
{
if
(
atk_selection_is_child_selected
(
atk_selection
,
i
))
{
AtkObject
*
object
=
atk_object_ref_accessible_child
(
ATK_OBJECT
(
atk_selection
),
i
);
g_assert
(
object
);
if
(
n_counted_selections
==
0
)
g_string_append_printf
(
string
,
"%*sselected children:"
,
depth
,
""
);
g_string_append_printf
(
string
,
" %d"
,
i
);
{
g_string_append_printf
(
string
,
"%*sselected children: %s
\n
"
,
depth
,
""
,
get_name
(
object
));
depth
+=
strlen
(
"selected children: "
);
}
else
g_string_append_printf
(
string
,
"%*s%s
\n
"
,
depth
,
""
,
get_name
(
object
));
n_counted_selections
++
;
}
}
if
(
n_counted_selections
)
g_string_append_c
(
string
,
'\n'
);
g_assert_cmpint
(
n_selections
,
==
,
n_counted_selections
);
}
...
...
tests/a11y/notebook.txt
View file @
e0324064
...
...
@@ -17,7 +17,7 @@ window1
alpha: 1
<AtkSelection>
selection count: 1
selected children:
0
selected children:
Tab 1
Tab 1
"page tab"
parent: notebook1
...
...
tests/a11y/tree.txt
View file @
e0324064
...
...
@@ -17,7 +17,8 @@ window1
alpha: 1
<AtkSelection>
selection count: 2
selected children: 2 3
selected children: One
Two
<AtkTable>
rows: 4
columns: 2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment