[gtk+/quartz-integration: 497/563] tests: Don't print selection count
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 497/563] tests: Don't print selection count
- Date: Sat, 9 Jul 2011 06:47:47 +0000 (UTC)
commit e8f9c9eee8b26179854380d4f0f7155fa8a3e309
Author: Benjamin Otte <otte redhat com>
Date: Wed Jun 29 18:16:23 2011 +0200
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.
tests/a11y/about.txt | 1 -
tests/a11y/accessibility-dump.c | 5 +++--
tests/a11y/appchooser.txt | 1 -
tests/a11y/iconview.txt | 1 -
tests/a11y/notebook.txt | 1 -
tests/a11y/pickers.txt | 4 ----
tests/a11y/tree.txt | 1 -
7 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/tests/a11y/about.txt b/tests/a11y/about.txt
index 58cca1d..58d39ce 100644
--- a/tests/a11y/about.txt
+++ b/tests/a11y/about.txt
@@ -86,7 +86,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
- selection count: 1
selected children: unnamed-GailNotebookPage-4
unnamed-GailNotebookPage-4
"page tab"
diff --git a/tests/a11y/accessibility-dump.c b/tests/a11y/accessibility-dump.c
index 38093ca..0901997 100644
--- a/tests/a11y/accessibility-dump.c
+++ b/tests/a11y/accessibility-dump.c
@@ -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
diff --git a/tests/a11y/appchooser.txt b/tests/a11y/appchooser.txt
index 8368528..5750f27 100644
--- a/tests/a11y/appchooser.txt
+++ b/tests/a11y/appchooser.txt
@@ -101,7 +101,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
- selection count: 0
<AtkTable>
rows: 1
columns: 1
diff --git a/tests/a11y/iconview.txt b/tests/a11y/iconview.txt
index 1061995..52fd663 100644
--- a/tests/a11y/iconview.txt
+++ b/tests/a11y/iconview.txt
@@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
- selection count: 0
One
"icon"
parent: iv1
diff --git a/tests/a11y/notebook.txt b/tests/a11y/notebook.txt
index a517665..bf6b116 100644
--- a/tests/a11y/notebook.txt
+++ b/tests/a11y/notebook.txt
@@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
- selection count: 1
selected children: Tab 1
Tab 1
"page tab"
diff --git a/tests/a11y/pickers.txt b/tests/a11y/pickers.txt
index eb04937..4ef41f7 100644
--- a/tests/a11y/pickers.txt
+++ b/tests/a11y/pickers.txt
@@ -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
diff --git a/tests/a11y/tree.txt b/tests/a11y/tree.txt
index 0713b5e..564ddf7 100644
--- a/tests/a11y/tree.txt
+++ b/tests/a11y/tree.txt
@@ -16,7 +16,6 @@ window1
layer: widget
alpha: 1
<AtkSelection>
- selection count: 2
selected children: One
Two
<AtkTable>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]