tests: Don't print selection count

Selection count is tested via assertions and can be inferred from
looking at the number of selected children.

And I'd like to reduce the output of the tests. We're outputting way too
much anyway.
This commit is contained in:
Benjamin Otte 2011-06-29 18:16:23 +02:00 committed by Matthias Clasen
parent e0324064bc
commit 2f744db943
7 changed files with 3 additions and 11 deletions

View File

@ -86,7 +86,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
selection count: 1
selected children: unnamed-GailNotebookPage-4
unnamed-GailNotebookPage-4
"page tab"

View File

@ -393,9 +393,9 @@ dump_atk_selection (AtkSelection *atk_selection,
guint n_selections, n_counted_selections;
gint i;
n_selections = atk_selection_get_selection_count (atk_selection);
g_string_append_printf (string, "%*s<AtkSelection>\n", depth, "");
g_string_append_printf (string, "%*sselection count: %d\n", depth, "", n_selections);
n_selections = atk_selection_get_selection_count (atk_selection);
n_counted_selections = 0;
for (i = 0; i < atk_object_get_n_accessible_children (ATK_OBJECT (atk_selection)); i++)
@ -418,6 +418,7 @@ dump_atk_selection (AtkSelection *atk_selection,
}
g_assert_cmpint (n_selections, ==, n_counted_selections);
g_assert_cmpint (n_selections, ==, atk_selection_get_selection_count (atk_selection));
}
static void

View File

@ -101,7 +101,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
selection count: 0
<AtkTable>
rows: 1
columns: 1

View File

@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
selection count: 0
One
"icon"
parent: iv1

View File

@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
selection count: 1
selected children: Tab 1
Tab 1
"page tab"

View File

@ -82,7 +82,6 @@ window1
<AtkAction>
action 0 name: press
<AtkSelection>
selection count: 0
unnamed-GailMenu-1
"menu"
parent: unnamed-GailComboBox-0
@ -93,7 +92,6 @@ window1
layer: popup
alpha: 1
<AtkSelection>
selection count: 0
unnamed-GailMenuItem-2
"menu item"
parent: unnamed-GailMenu-1
@ -282,7 +280,6 @@ window1
<AtkAction>
action 0 name: press
<AtkSelection>
selection count: 0
unnamed-GailMenu-8
"menu"
parent: button1
@ -293,4 +290,3 @@ window1
layer: popup
alpha: 1
<AtkSelection>
selection count: 0

View File

@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
selection count: 2
selected children: One
Two
<AtkTable>