mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
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:
parent
e0324064bc
commit
2f744db943
@ -86,7 +86,6 @@ window1
|
||||
layer: widget
|
||||
alpha: 1
|
||||
<AtkSelection>
|
||||
selection count: 1
|
||||
selected children: unnamed-GailNotebookPage-4
|
||||
unnamed-GailNotebookPage-4
|
||||
"page tab"
|
||||
|
@ -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
|
||||
|
@ -101,7 +101,6 @@ window1
|
||||
layer: widget
|
||||
alpha: 1
|
||||
<AtkSelection>
|
||||
selection count: 0
|
||||
<AtkTable>
|
||||
rows: 1
|
||||
columns: 1
|
||||
|
@ -16,7 +16,6 @@ window1
|
||||
layer: widget
|
||||
alpha: 1
|
||||
<AtkSelection>
|
||||
selection count: 0
|
||||
One
|
||||
"icon"
|
||||
parent: iv1
|
||||
|
@ -16,7 +16,6 @@ window1
|
||||
layer: widget
|
||||
alpha: 1
|
||||
<AtkSelection>
|
||||
selection count: 1
|
||||
selected children: Tab 1
|
||||
Tab 1
|
||||
"page tab"
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,6 @@ window1
|
||||
layer: widget
|
||||
alpha: 1
|
||||
<AtkSelection>
|
||||
selection count: 2
|
||||
selected children: One
|
||||
Two
|
||||
<AtkTable>
|
||||
|
Loading…
Reference in New Issue
Block a user