New tests for last interfaces
[platform/upstream/at-spi2-atk.git] / tests / atk_test_table.c
1 /*
2  * Copyright 2008 Codethink Ltd.
3  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "atk_test_util.h"
22 #include "atk_suite.h"
23
24 #define DATA_FILE TESTS_DATA_DIR"/test-table.xml"
25
26 static void
27 atk_test_table_get_caption (gpointer fixture, gconstpointer user_data)
28 {
29   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
30   g_assert (_obj);
31   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
32   g_assert (child);
33   AtspiTable *obj = atspi_accessible_get_table_iface (child);
34   AtspiAccessible *acc = atspi_table_get_caption (obj, NULL);
35   g_assert (acc);
36   g_assert_cmpstr ("caption name", ==, atspi_accessible_get_name (acc, NULL));
37
38 }
39
40 static void
41 atk_test_table_get_summary (gpointer fixture, gconstpointer user_data)
42 {
43   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
44   g_assert (_obj);
45   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
46   g_assert (child);
47   AtspiTable *obj = atspi_accessible_get_table_iface (child);
48   AtspiAccessible *acc = atspi_table_get_summary (obj, NULL);
49   g_assert (acc);
50   g_assert_cmpstr ("table summary name", ==, atspi_accessible_get_name (acc, NULL));
51 }
52
53 static void
54 atk_test_table_get_n_columns (gpointer fixture, gconstpointer user_data)
55 {
56   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
57   g_assert (_obj);
58   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
59   g_assert (child);
60   AtspiTable *obj = atspi_accessible_get_table_iface (child);
61   gint cnt = atspi_table_get_n_columns (obj, NULL);
62   g_assert_cmpint (cnt, ==, 3);
63 }
64
65 static void
66 atk_test_table_get_n_rows (gpointer fixture, gconstpointer user_data)
67 {
68   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
69   g_assert (_obj);
70   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
71   g_assert (child);
72   AtspiTable *obj = atspi_accessible_get_table_iface (child);
73   gint cnt = atspi_table_get_n_rows (obj, NULL);
74   g_assert_cmpint (cnt, ==, 4);
75 }
76
77 static void
78 atk_test_table_get_accessible_at (gpointer fixture, gconstpointer user_data)
79 {
80   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
81   g_assert (_obj);
82   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
83   g_assert (child);
84   AtspiTable *obj = atspi_accessible_get_table_iface (child);
85   AtspiAccessible *acc = atspi_table_get_accessible_at (obj, 0, 0, NULL);
86   g_assert (acc);
87   g_assert_cmpstr ("cell 0/0", ==, atspi_accessible_get_name (acc, NULL));
88
89   acc = atspi_table_get_accessible_at (obj, 3, 2, NULL);
90   g_assert (acc);
91   g_assert_cmpstr ("cell 2/3", ==, atspi_accessible_get_name (acc, NULL));
92 }
93
94 static void
95 atk_test_table_get_index_at (gpointer fixture, gconstpointer user_data)
96 {
97   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
98   g_assert (_obj);
99   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
100   g_assert (child);
101   AtspiTable *obj = atspi_accessible_get_table_iface (child);
102
103   gint cnt = atspi_table_get_index_at (obj, 0, 0, NULL);
104   g_assert_cmpint (cnt, ==, 0);
105
106   cnt = atspi_table_get_index_at (obj, 1, 0, NULL);
107   g_assert_cmpint (cnt, ==, 3);
108
109   cnt = atspi_table_get_index_at (obj, 0, 1, NULL);
110   g_assert_cmpint (cnt, ==, 1);
111 }
112
113 static void
114 atk_test_table_get_row_at_index (gpointer fixture, gconstpointer user_data)
115 {
116   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
117   g_assert (_obj);
118   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
119   g_assert (child);
120   AtspiTable *obj = atspi_accessible_get_table_iface (child);
121
122   gint cnt = atspi_table_get_row_at_index (obj, 1, NULL);
123   g_assert_cmpint (cnt, ==, 0);
124
125   cnt = atspi_table_get_row_at_index (obj, 4, NULL);
126   g_assert_cmpint (cnt, ==, 1);
127
128   cnt = atspi_table_get_row_at_index (obj, 6, NULL);
129   g_assert_cmpint (cnt, ==, 2);
130
131   cnt = atspi_table_get_row_at_index (obj, 11, NULL);
132   g_assert_cmpint (cnt, ==, 3);
133 }
134
135 static void
136 atk_test_table_get_column_at_index (gpointer fixture, gconstpointer user_data)
137 {
138   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
139   g_assert (_obj);
140   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
141   g_assert (child);
142   AtspiTable *obj = atspi_accessible_get_table_iface (child);
143
144   gint cnt = atspi_table_get_column_at_index (obj, 6, NULL);
145   g_assert_cmpint (cnt, ==, 0);
146
147   cnt = atspi_table_get_column_at_index (obj, 1, NULL);
148   g_assert_cmpint (cnt, ==, 1);
149
150   cnt = atspi_table_get_column_at_index (obj, 5, NULL);
151   g_assert_cmpint (cnt, ==, 2);
152 }
153
154 static void
155 atk_test_table_get_row_description (gpointer fixture, gconstpointer user_data)
156 {
157   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
158   g_assert (_obj);
159   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
160   g_assert (child);
161   AtspiTable *obj = atspi_accessible_get_table_iface (child);
162   gchar *desc = atspi_table_get_row_description (obj, 0, NULL);
163   g_assert (desc);
164   g_assert_cmpstr (desc, ==, "first row");
165   g_free (desc);
166   desc = atspi_table_get_row_description (obj, 2, NULL);
167   g_assert (desc);
168   g_assert_cmpstr (desc, ==, "third row");
169   g_free (desc);
170 }
171
172 static void
173 atk_test_table_get_column_description (gpointer fixture, gconstpointer user_data)
174 {
175   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
176   g_assert (_obj);
177   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
178   g_assert (child);
179   AtspiTable *obj = atspi_accessible_get_table_iface (child);
180   gchar *desc = atspi_table_get_column_description (obj, 0, NULL);
181   g_assert (desc);
182   g_assert_cmpstr (desc, ==, "first column");
183   g_free (desc);
184   desc = atspi_table_get_column_description (obj, 2, NULL);
185   g_assert (desc);
186   g_assert_cmpstr (desc, ==, "third column");
187   g_free (desc);
188 }
189
190 static void
191 atk_test_table_get_row_extent_at (gpointer fixture, gconstpointer user_data)
192 {
193   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
194   g_assert (_obj);
195   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
196   g_assert (child);
197   AtspiTable *obj = atspi_accessible_get_table_iface (child);
198   gint cnt = atspi_table_get_row_extent_at (obj, 1, 1, NULL);
199   g_assert_cmpint (cnt, ==, 1);
200 }
201
202 static void
203 atk_test_table_get_column_extent_at (gpointer fixture, gconstpointer user_data)
204 {
205   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
206   g_assert (_obj);
207   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
208   g_assert (child);
209   AtspiTable *obj = atspi_accessible_get_table_iface (child);
210   gint cnt = atspi_table_get_column_extent_at (obj, 1, 1, NULL);
211   g_assert_cmpint (cnt, ==, 1);
212 }
213
214 static void
215 atk_test_table_get_row_header (gpointer fixture, gconstpointer user_data)
216 {
217   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
218   g_assert (_obj);
219   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
220   g_assert (child);
221   AtspiTable *obj = atspi_accessible_get_table_iface (child);
222   AtspiAccessible *acc = atspi_table_get_row_header (obj, 0, NULL);
223   g_assert (acc);
224   g_assert_cmpstr ("row 1 header", ==, atspi_accessible_get_name (acc, NULL));
225   acc = atspi_table_get_row_header (obj, 3, NULL);
226   g_assert (acc);
227   g_assert_cmpstr ("row 4 header", ==, atspi_accessible_get_name (acc, NULL));
228 }
229
230 static void
231 atk_test_table_get_column_header (gpointer fixture, gconstpointer user_data)
232 {
233   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
234   g_assert (_obj);
235   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
236   g_assert (child);
237   AtspiTable *obj = atspi_accessible_get_table_iface (child);
238   AtspiAccessible *acc = atspi_table_get_column_header (obj, 0, NULL);
239   g_assert (acc);
240   g_assert_cmpstr ("column 1 header", ==, atspi_accessible_get_name (acc, NULL));
241   acc = atspi_table_get_column_header (obj, 1, NULL);
242   g_assert (acc);
243   g_assert_cmpstr ("column 2 header", ==, atspi_accessible_get_name (acc, NULL));
244   acc = atspi_table_get_column_header (obj, 2, NULL);
245   g_assert (acc);
246   g_assert_cmpstr ("column 3 header", ==, atspi_accessible_get_name (acc, NULL));
247 }
248
249 static void
250 atk_test_table_get_n_selected_rows (gpointer fixture, gconstpointer user_data)
251 {
252   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
253   g_assert (_obj);
254   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
255   g_assert (child);
256   AtspiTable *obj = atspi_accessible_get_table_iface (child);
257   gint cnt = atspi_table_get_n_selected_rows (obj, NULL);
258   g_assert_cmpint (cnt, ==, 2);
259 }
260
261 static void
262 atk_test_table_get_selected_rows (gpointer fixture, gconstpointer user_data)
263 {
264   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
265   g_assert (_obj);
266   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
267   g_assert (child);
268   AtspiTable *obj = atspi_accessible_get_table_iface (child);
269   GArray *array = atspi_table_get_selected_rows (obj, NULL);
270   g_assert (array);
271   g_assert_cmpint (array->len, ==, 2);
272   g_assert_cmpint (g_array_index (array,gint, 0), ==, 0);
273   g_assert_cmpint (g_array_index (array,gint, 1), ==, 2);
274   g_array_free (array, TRUE);
275 }
276
277 static void
278 atk_test_table_get_selected_columns (gpointer fixture, gconstpointer user_data)
279 {
280   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
281   g_assert (_obj);
282   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
283   g_assert (child);
284   AtspiTable *obj = atspi_accessible_get_table_iface (child);
285   GArray *array = atspi_table_get_selected_columns (obj, NULL);
286   g_assert (array);
287   g_assert_cmpint (array->len, ==, 1);
288   g_assert_cmpint (g_array_index (array, gint, 0), ==, 1);
289
290   g_array_free (array, TRUE);
291 }
292
293 static void
294 atk_test_table_get_n_selected_columns (gpointer fixture, gconstpointer user_data)
295 {
296   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
297   g_assert (_obj);
298   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
299   g_assert (child);
300
301   AtspiTable *obj = atspi_accessible_get_table_iface (child);
302   g_assert(obj);
303   gint cnt = atspi_table_get_n_selected_columns (obj, NULL);
304   g_assert_cmpint (cnt, ==, 1);
305 }
306
307 static void
308 atk_test_table_is_row_selected (gpointer fixture, gconstpointer user_data)
309 {
310   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
311   g_assert (_obj);
312   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
313   g_assert (child);
314   AtspiTable *obj = atspi_accessible_get_table_iface (child);
315   g_assert_true (atspi_table_is_row_selected (obj, 0, NULL));
316   g_assert_false (atspi_table_is_row_selected (obj, 1, NULL));
317 }
318
319 static void
320 atk_test_table_is_column_selected (gpointer fixture, gconstpointer user_data)
321 {
322   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
323   g_assert (_obj);
324   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
325   g_assert (child);
326   AtspiTable *obj = atspi_accessible_get_table_iface (child);
327   g_assert_true (atspi_table_is_column_selected (obj, 1, NULL));
328   g_assert_false (atspi_table_is_column_selected (obj, 0, NULL));
329 }
330
331 static void
332 atk_test_table_add_row_selection (gpointer fixture, gconstpointer user_data)
333 {
334   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
335   g_assert (_obj);
336   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
337   g_assert (child);
338   AtspiTable *obj = atspi_accessible_get_table_iface (child);
339   g_assert_false (atspi_table_is_row_selected (obj, 1, NULL));
340   g_assert_true (atspi_table_add_row_selection (obj, 1, NULL));
341   g_assert_true (atspi_table_is_row_selected (obj, 1, NULL));
342 }
343
344 static void
345 atk_test_table_add_column_selection (gpointer fixture, gconstpointer user_data)
346 {
347   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
348   g_assert (_obj);
349   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
350   g_assert (child);
351   AtspiTable *obj = atspi_accessible_get_table_iface (child);
352   g_assert_false (atspi_table_is_column_selected (obj, 2, NULL));
353   g_assert_true (atspi_table_add_column_selection (obj, 2, NULL));
354   g_assert_true (atspi_table_is_column_selected (obj, 2, NULL));
355 }
356
357 static void
358 atk_test_table_remove_row_selection (gpointer fixture, gconstpointer user_data)
359 {
360   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
361   g_assert (_obj);
362   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
363   g_assert (child);
364   AtspiTable *obj = atspi_accessible_get_table_iface (child);
365   g_assert_true (atspi_table_is_row_selected (obj, 2, NULL));
366   g_assert_true (atspi_table_remove_row_selection (obj, 2, NULL));
367   g_assert_false (atspi_table_is_row_selected (obj, 2, NULL));
368 }
369
370 static void
371 atk_test_table_remove_column_selection (gpointer fixture, gconstpointer user_data)
372 {
373   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
374   g_assert (_obj);
375   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
376   g_assert (child);
377   AtspiTable *obj = atspi_accessible_get_table_iface (child);
378   g_assert_true (atspi_table_is_column_selected (obj, 1, NULL));
379   g_assert_true (atspi_table_remove_column_selection (obj, 1, NULL));
380   g_assert_false (atspi_table_is_column_selected (obj, 1, NULL));
381 }
382
383 static void
384 atk_test_table_get_row_column_extents_at_index (gpointer fixture, gconstpointer user_data)
385 {
386   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
387   g_assert (_obj);
388   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
389   g_assert (child);
390   AtspiTable *obj = atspi_accessible_get_table_iface (child);
391   gint row;
392   gint col;
393   gint row_ext;
394   gint col_ext;
395   gboolean is_selected;
396   g_assert_true (atspi_table_get_row_column_extents_at_index (obj, 0, &row, &col, &row_ext, &col_ext, &is_selected, NULL));
397
398   g_assert_cmpint (row, ==, 0);
399   g_assert_cmpint (col, ==, 0);
400   g_assert_cmpint (row_ext, ==, 2);
401   g_assert_cmpint (col_ext, ==, 1);
402   g_assert_false (is_selected);
403 }
404
405 static void
406 atk_test_table_is_selected (gpointer fixture, gconstpointer user_data)
407 {
408   AtspiAccessible *_obj = get_root_obj (DATA_FILE);
409   g_assert (_obj);
410   AtspiAccessible *child = atspi_accessible_get_child_at_index (_obj, 0, NULL);
411   g_assert (child);
412   AtspiTable *obj = atspi_accessible_get_table_iface (child);
413   g_assert_true (atspi_table_is_selected (obj, 0, 2, NULL));
414   g_assert_false (atspi_table_is_selected (obj, 1, 0, NULL));
415 }
416
417 static void
418 teardown_table_test (gpointer fixture, gconstpointer user_data)
419 {
420   kill (child_pid, SIGTERM);
421 }
422
423 void
424 atk_test_table(void)
425 {
426   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_caption",
427                      0, NULL, NULL, atk_test_table_get_caption, teardown_table_test);
428   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_summary",
429                      0, NULL, NULL, atk_test_table_get_summary, teardown_table_test);
430   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_n_columns",
431                      0, NULL, NULL, atk_test_table_get_n_columns, teardown_table_test);
432   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_n_rows",
433                      0, NULL, NULL, atk_test_table_get_n_rows, teardown_table_test);
434   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_accessible_at",
435                      0, NULL, NULL, atk_test_table_get_accessible_at, teardown_table_test);
436   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_index_at",
437                      0, NULL, NULL, atk_test_table_get_index_at, teardown_table_test);
438   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_row_at_index",
439                      0, NULL, NULL, atk_test_table_get_row_at_index, teardown_table_test);
440   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_column_at_index",
441                      0, NULL, NULL, atk_test_table_get_column_at_index, teardown_table_test);
442   g_test_add_vtable  (ATK_TEST_PATH_TABLE "/atk_test_table_get_row_description",
443                       0, NULL, NULL, atk_test_table_get_row_description, teardown_table_test);
444   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_column_description",
445                      0, NULL, NULL, atk_test_table_get_column_description, teardown_table_test);
446   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_row_extent_at",
447                      0, NULL, NULL, atk_test_table_get_row_extent_at, teardown_table_test);
448   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_column_extent_at",
449                      0, NULL, NULL, atk_test_table_get_column_extent_at, teardown_table_test);
450   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_row_header",
451                      0, NULL, NULL, atk_test_table_get_row_header, teardown_table_test);
452   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_column_header",
453                      0, NULL, NULL, atk_test_table_get_column_header, teardown_table_test);
454   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_n_selected_rows",
455                      0, NULL, NULL, atk_test_table_get_n_selected_rows, teardown_table_test);
456   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_selected_rows",
457                      0, NULL, NULL, atk_test_table_get_selected_rows, teardown_table_test);
458   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_selected_columns",
459                      0, NULL, NULL, atk_test_table_get_selected_columns, teardown_table_test);
460   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_n_selected_columns",
461                      0, NULL, NULL, atk_test_table_get_n_selected_columns, teardown_table_test);
462   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_is_row_selected",
463                      0, NULL, NULL, atk_test_table_is_row_selected, teardown_table_test);
464   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_is_column_selected",
465                      0, NULL, NULL, atk_test_table_is_column_selected, teardown_table_test);
466   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_add_row_selection",
467                      0, NULL, NULL, atk_test_table_add_row_selection, teardown_table_test);
468   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_add_column_selection",
469                      0, NULL, NULL, atk_test_table_add_column_selection, teardown_table_test);
470   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_remove_row_selection",
471                      0, NULL, NULL, atk_test_table_remove_row_selection, teardown_table_test);
472   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_remove_column_selection",
473                      0, NULL, NULL, atk_test_table_remove_column_selection, teardown_table_test);
474   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_get_row_column_extents_at_index",
475                      0, NULL, NULL, atk_test_table_get_row_column_extents_at_index, teardown_table_test);
476   g_test_add_vtable (ATK_TEST_PATH_TABLE "/atk_test_table_is_selected",
477                      0, NULL, NULL, atk_test_table_is_selected, teardown_table_test);
478 }