2 * Copyright (C) 2011 Red Hat, Inc.
3 * Author: Matthias Clasen
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser 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.
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 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 #include <gdk/gdkkeysyms.h>
25 /* tests related to handling of the cell-area property in
26 * GtkCellLayout implementations
29 /* test that we have a cell area after new() */
31 test_iconview_new (void)
36 view = gtk_icon_view_new ();
38 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
39 g_assert (GTK_IS_CELL_AREA_BOX (area));
40 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
42 g_object_ref_sink (view);
43 g_object_unref (view);
46 /* test that new_with_area() keeps the provided area */
48 test_iconview_new_with_area (void)
53 area = gtk_cell_area_box_new ();
54 view = gtk_icon_view_new_with_area (area);
55 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
57 g_object_ref_sink (view);
58 g_object_unref (view);
61 /* test that g_object_new keeps the provided area */
63 test_iconview_object_new (void)
68 area = gtk_cell_area_box_new ();
69 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
70 view = g_object_new (GTK_TYPE_ICON_VIEW, "cell-area", area, NULL);
71 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
72 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
74 g_object_ref_sink (view);
75 g_object_unref (view);
78 typedef GtkIconView MyIconView;
79 typedef GtkIconViewClass MyIconViewClass;
81 G_DEFINE_TYPE (MyIconView, my_icon_view, GTK_TYPE_ICON_VIEW)
84 my_icon_view_class_init (MyIconViewClass *klass)
88 static gint subclass_init;
91 my_icon_view_init (MyIconView *view)
95 if (subclass_init == 0)
97 /* do nothing to area */
99 else if (subclass_init == 1)
101 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
102 g_assert (GTK_IS_CELL_AREA_BOX (area));
103 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
104 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
108 /* test that an iconview subclass has an area */
110 test_iconview_subclass0 (void)
117 view = g_object_new (my_icon_view_get_type (), NULL);
118 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
119 g_assert (GTK_IS_CELL_AREA_BOX (area));
120 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
122 g_object_ref_sink (view);
123 g_object_unref (view);
126 /* test that an iconview subclass keeps the provided area */
128 test_iconview_subclass1 (void)
135 area = gtk_cell_area_box_new ();
136 view = g_object_new (my_icon_view_get_type (), "cell-area", area, NULL);
137 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
138 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
140 g_object_ref_sink (view);
141 g_object_unref (view);
144 /* test we can access the area in subclass init */
146 test_iconview_subclass2 (void)
153 view = g_object_new (my_icon_view_get_type (), NULL);
154 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
155 g_assert (GTK_IS_CELL_AREA_BOX (area));
156 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
158 g_object_ref_sink (view);
159 g_object_unref (view);
162 /* test we get a warning if an area is provided, but ignored */
164 test_iconview_subclass3 (void)
168 if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
173 area = gtk_cell_area_box_new ();
174 view = g_object_new (my_icon_view_get_type (), "cell-area", area, NULL);
175 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
176 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
178 g_object_ref_sink (view);
179 g_object_unref (view);
183 g_test_trap_assert_failed ();
184 g_test_trap_assert_stderr ("*ignoring construct property*");
187 /* test that we have a cell area after new() */
189 test_combobox_new (void)
194 view = gtk_combo_box_new ();
196 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
197 g_assert (GTK_IS_CELL_AREA_BOX (area));
199 g_object_ref_sink (view);
200 g_object_unref (view);
203 /* test that new_with_area() keeps the provided area */
205 test_combobox_new_with_area (void)
210 area = gtk_cell_area_box_new ();
211 view = gtk_combo_box_new_with_area (area);
212 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
214 g_object_ref_sink (view);
215 g_object_unref (view);
218 /* test that g_object_new keeps the provided area */
220 test_combobox_object_new (void)
225 area = gtk_cell_area_box_new ();
226 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
227 view = g_object_new (GTK_TYPE_COMBO_BOX, "cell-area", area, NULL);
228 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
230 g_object_ref_sink (view);
231 g_object_unref (view);
234 typedef GtkComboBox MyComboBox;
235 typedef GtkComboBoxClass MyComboBoxClass;
237 G_DEFINE_TYPE (MyComboBox, my_combo_box, GTK_TYPE_COMBO_BOX)
240 my_combo_box_class_init (MyComboBoxClass *klass)
245 my_combo_box_init (MyComboBox *view)
249 if (subclass_init == 0)
251 /* do nothing to area */
253 else if (subclass_init == 1)
255 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
256 g_assert (GTK_IS_CELL_AREA_BOX (area));
257 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
258 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
262 /* test that a combobox subclass has an area */
264 test_combobox_subclass0 (void)
271 view = g_object_new (my_combo_box_get_type (), NULL);
272 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
273 g_assert (GTK_IS_CELL_AREA_BOX (area));
274 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
276 g_object_ref_sink (view);
277 g_object_unref (view);
280 /* test that a combobox subclass keeps the provided area */
282 test_combobox_subclass1 (void)
289 area = gtk_cell_area_box_new ();
290 view = g_object_new (my_combo_box_get_type (), "cell-area", area, NULL);
291 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
292 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
294 g_object_ref_sink (view);
295 g_object_unref (view);
298 /* test we can access the area in subclass init */
300 test_combobox_subclass2 (void)
307 view = g_object_new (my_combo_box_get_type (), NULL);
308 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
309 g_assert (GTK_IS_CELL_AREA_BOX (area));
310 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
312 g_object_ref_sink (view);
313 g_object_unref (view);
316 /* test we get a warning if an area is provided, but ignored */
318 test_combobox_subclass3 (void)
322 if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
327 area = gtk_cell_area_box_new ();
328 view = g_object_new (my_combo_box_get_type (), "cell-area", area, NULL);
329 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
330 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
332 g_object_ref_sink (view);
333 g_object_unref (view);
337 g_test_trap_assert_failed ();
338 g_test_trap_assert_stderr ("*ignoring construct property*");
341 /* test that we have a cell area after new() */
343 test_cellview_new (void)
348 view = gtk_cell_view_new ();
350 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
351 g_assert (GTK_IS_CELL_AREA_BOX (area));
353 g_object_ref_sink (view);
354 g_object_unref (view);
357 /* test that new_with_context() keeps the provided area */
359 test_cellview_new_with_context (void)
363 GtkCellAreaContext *context;
365 area = gtk_cell_area_box_new ();
366 context = gtk_cell_area_create_context (area);
367 view = gtk_cell_view_new_with_context (area, context);
368 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
370 g_object_ref_sink (view);
371 g_object_unref (view);
374 /* test that g_object_new keeps the provided area */
376 test_cellview_object_new (void)
381 area = gtk_cell_area_box_new ();
382 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
383 view = g_object_new (GTK_TYPE_CELL_VIEW, "cell-area", area, NULL);
384 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
386 g_object_ref_sink (view);
387 g_object_unref (view);
390 typedef GtkCellView MyCellView;
391 typedef GtkCellViewClass MyCellViewClass;
393 G_DEFINE_TYPE (MyCellView, my_cell_view, GTK_TYPE_CELL_VIEW)
396 my_cell_view_class_init (MyCellViewClass *klass)
401 my_cell_view_init (MyCellView *view)
405 if (subclass_init == 0)
407 /* do nothing to area */
409 else if (subclass_init == 1)
411 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
412 g_assert (GTK_IS_CELL_AREA_BOX (area));
413 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
414 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
418 /* test that a cellview subclass has an area */
420 test_cellview_subclass0 (void)
427 view = g_object_new (my_cell_view_get_type (), NULL);
428 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
429 g_assert (GTK_IS_CELL_AREA_BOX (area));
430 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
432 g_object_ref_sink (view);
433 g_object_unref (view);
436 /* test that a cellview subclass keeps the provided area */
438 test_cellview_subclass1 (void)
445 area = gtk_cell_area_box_new ();
446 view = g_object_new (my_cell_view_get_type (), "cell-area", area, NULL);
447 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
448 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
450 g_object_ref_sink (view);
451 g_object_unref (view);
454 /* test we can access the area in subclass init */
456 test_cellview_subclass2 (void)
463 view = g_object_new (my_cell_view_get_type (), NULL);
464 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
465 g_assert (GTK_IS_CELL_AREA_BOX (area));
466 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
468 g_object_ref_sink (view);
469 g_object_unref (view);
472 /* test we get a warning if an area is provided, but ignored */
474 test_cellview_subclass3 (void)
478 if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
483 area = gtk_cell_area_box_new ();
484 view = g_object_new (my_cell_view_get_type (), "cell-area", area, NULL);
485 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)));
486 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
488 g_object_ref_sink (view);
489 g_object_unref (view);
493 g_test_trap_assert_failed ();
494 g_test_trap_assert_stderr ("*ignoring construct property*");
497 /* test that we have a cell area after new() */
499 test_column_new (void)
501 GtkTreeViewColumn *col;
504 col = gtk_tree_view_column_new ();
506 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col));
507 g_assert (GTK_IS_CELL_AREA_BOX (area));
509 g_object_ref_sink (col);
510 g_object_unref (col);
513 /* test that new_with_area() keeps the provided area */
515 test_column_new_with_area (void)
517 GtkTreeViewColumn *col;
520 area = gtk_cell_area_box_new ();
521 col = gtk_tree_view_column_new_with_area (area);
522 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
524 g_object_ref_sink (col);
525 g_object_unref (col);
528 /* test that g_object_new keeps the provided area */
530 test_column_object_new (void)
532 GtkTreeViewColumn *col;
535 area = gtk_cell_area_box_new ();
536 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
537 col = g_object_new (GTK_TYPE_TREE_VIEW_COLUMN, "cell-area", area, NULL);
538 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
540 g_object_ref_sink (col);
541 g_object_unref (col);
544 typedef GtkTreeViewColumn MyTreeViewColumn;
545 typedef GtkTreeViewColumnClass MyTreeViewColumnClass;
547 G_DEFINE_TYPE (MyTreeViewColumn, my_tree_view_column, GTK_TYPE_TREE_VIEW_COLUMN)
550 my_tree_view_column_class_init (MyTreeViewColumnClass *klass)
555 my_tree_view_column_init (MyTreeViewColumn *col)
559 if (subclass_init == 0)
561 /* do nothing to area */
563 else if (subclass_init == 1)
565 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col));
566 g_assert (GTK_IS_CELL_AREA_BOX (area));
567 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
568 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
572 /* test that a column subclass has an area */
574 test_column_subclass0 (void)
576 GtkTreeViewColumn *col;
581 col = g_object_new (my_tree_view_column_get_type (), NULL);
582 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col));
583 g_assert (GTK_IS_CELL_AREA_BOX (area));
584 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
586 g_object_ref_sink (col);
587 g_object_unref (col);
590 /* test that a column subclass keeps the provided area */
592 test_column_subclass1 (void)
594 GtkTreeViewColumn *col;
599 area = gtk_cell_area_box_new ();
600 col = g_object_new (my_tree_view_column_get_type (), "cell-area", area, NULL);
601 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)));
602 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
604 g_object_ref_sink (col);
605 g_object_unref (col);
608 /* test we can access the area in subclass init */
610 test_column_subclass2 (void)
612 GtkTreeViewColumn *col;
617 col = g_object_new (my_tree_view_column_get_type (), NULL);
618 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col));
619 g_assert (GTK_IS_CELL_AREA_BOX (area));
620 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
622 g_object_ref_sink (col);
623 g_object_unref (col);
626 /* test we get a warning if an area is provided, but ignored */
628 test_column_subclass3 (void)
632 if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
634 GtkTreeViewColumn *col;
637 area = gtk_cell_area_box_new ();
638 col = g_object_new (my_tree_view_column_get_type (), "cell-area", area, NULL);
639 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)));
640 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
642 g_object_ref_sink (col);
643 g_object_unref (col);
647 g_test_trap_assert_failed ();
648 g_test_trap_assert_stderr ("*ignoring construct property*");
651 /* test that we have a cell area after new() */
653 test_completion_new (void)
655 GtkEntryCompletion *c;
658 c = gtk_entry_completion_new ();
660 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c));
661 g_assert (GTK_IS_CELL_AREA_BOX (area));
663 g_object_ref_sink (c);
667 /* test that new_with_area() keeps the provided area */
669 test_completion_new_with_area (void)
671 GtkEntryCompletion *c;
674 area = gtk_cell_area_box_new ();
675 c = gtk_entry_completion_new_with_area (area);
676 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
678 g_object_ref_sink (c);
682 /* test that g_object_new keeps the provided area */
684 test_completion_object_new (void)
686 GtkEntryCompletion *c;
689 area = gtk_cell_area_box_new ();
690 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
691 c = g_object_new (GTK_TYPE_ENTRY_COMPLETION, "cell-area", area, NULL);
692 g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
694 g_object_ref_sink (c);
698 typedef GtkEntryCompletion MyEntryCompletion;
699 typedef GtkEntryCompletionClass MyEntryCompletionClass;
701 G_DEFINE_TYPE (MyEntryCompletion, my_entry_completion, GTK_TYPE_ENTRY_COMPLETION)
704 my_entry_completion_class_init (MyEntryCompletionClass *klass)
709 my_entry_completion_init (MyEntryCompletion *c)
713 if (subclass_init == 0)
715 /* do nothing to area */
717 else if (subclass_init == 1)
719 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c));
720 g_assert (GTK_IS_CELL_AREA_BOX (area));
721 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
722 gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
726 /* test that a completion subclass has an area */
728 test_completion_subclass0 (void)
730 GtkEntryCompletion *c;
735 c = g_object_new (my_entry_completion_get_type (), NULL);
736 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c));
737 g_assert (GTK_IS_CELL_AREA_BOX (area));
738 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
740 g_object_ref_sink (c);
744 /* test that a completion subclass keeps the provided area */
746 test_completion_subclass1 (void)
748 GtkEntryCompletion *c;
753 area = gtk_cell_area_box_new ();
754 c = g_object_new (my_entry_completion_get_type (), "cell-area", area, NULL);
755 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)));
756 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
758 g_object_ref_sink (c);
762 /* test we can access the area in subclass init */
764 test_completion_subclass2 (void)
766 GtkEntryCompletion *c;
771 c = g_object_new (my_entry_completion_get_type (), NULL);
772 area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c));
773 g_assert (GTK_IS_CELL_AREA_BOX (area));
774 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
776 g_object_ref_sink (c);
780 /* test we get a warning if an area is provided, but ignored */
782 test_completion_subclass3 (void)
786 if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
788 GtkEntryCompletion *c;
791 area = gtk_cell_area_box_new ();
792 c = g_object_new (my_entry_completion_get_type (), "cell-area", area, NULL);
793 g_assert (area == gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)));
794 g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
796 g_object_ref_sink (c);
801 g_test_trap_assert_failed ();
802 g_test_trap_assert_stderr ("*ignoring construct property*");
806 main (int argc, char *argv[])
808 gtk_test_init (&argc, &argv);
809 g_test_bug_base ("http://bugzilla.gnome.org/");
810 gtk_test_register_all_types();
812 g_test_add_func ("/tests/iconview-new", test_iconview_new);
813 g_test_add_func ("/tests/iconview-new-with-area", test_iconview_new_with_area);
814 g_test_add_func ("/tests/iconview-object-new", test_iconview_object_new);
815 g_test_add_func ("/tests/iconview-subclass0", test_iconview_subclass0);
816 g_test_add_func ("/tests/iconview-subclass1", test_iconview_subclass1);
817 g_test_add_func ("/tests/iconview-subclass2", test_iconview_subclass2);
818 g_test_add_func ("/tests/iconview-subclass3", test_iconview_subclass3);
820 g_test_add_func ("/tests/combobox-new", test_combobox_new);
821 g_test_add_func ("/tests/combobox-new-with-area", test_combobox_new_with_area);
822 g_test_add_func ("/tests/combobox-object-new", test_combobox_object_new);
823 g_test_add_func ("/tests/combobox-subclass0", test_combobox_subclass0);
824 g_test_add_func ("/tests/combobox-subclass1", test_combobox_subclass1);
825 g_test_add_func ("/tests/combobox-subclass2", test_combobox_subclass2);
826 g_test_add_func ("/tests/combobox-subclass3", test_combobox_subclass3);
828 g_test_add_func ("/tests/cellview-new", test_cellview_new);
829 g_test_add_func ("/tests/cellview-new-with-context", test_cellview_new_with_context);
830 g_test_add_func ("/tests/cellview-object-new", test_cellview_object_new);
831 g_test_add_func ("/tests/cellview-subclass0", test_cellview_subclass0);
832 g_test_add_func ("/tests/cellview-subclass1", test_cellview_subclass1);
833 g_test_add_func ("/tests/cellview-subclass2", test_cellview_subclass2);
834 g_test_add_func ("/tests/cellview-subclass3", test_cellview_subclass3);
836 g_test_add_func ("/tests/column-new", test_column_new);
837 g_test_add_func ("/tests/column-new-with-area", test_column_new_with_area);
838 g_test_add_func ("/tests/column-object-new", test_column_object_new);
839 g_test_add_func ("/tests/column-subclass0", test_column_subclass0);
840 g_test_add_func ("/tests/column-subclass1", test_column_subclass1);
841 g_test_add_func ("/tests/column-subclass2", test_column_subclass2);
842 g_test_add_func ("/tests/column-subclass3", test_column_subclass3);
844 g_test_add_func ("/tests/completion-new", test_completion_new);
845 g_test_add_func ("/tests/completion-new-with-area", test_completion_new_with_area);
846 g_test_add_func ("/tests/completion-object-new", test_completion_object_new);
847 g_test_add_func ("/tests/completion-subclass0", test_completion_subclass0);
848 g_test_add_func ("/tests/completion-subclass1", test_completion_subclass1);
849 g_test_add_func ("/tests/completion-subclass2", test_completion_subclass2);
850 g_test_add_func ("/tests/completion-subclass3", test_completion_subclass3);