forked from AuroraMiddleware/gtk
Make naming of tree model unit tests consistent
All test paths now start with the name of the class which is being tested.
This commit is contained in:
parent
2cb9f03a66
commit
b227aa06eb
@ -2826,97 +2826,97 @@ specific_bug_549287 (void)
|
||||
void
|
||||
register_filter_model_tests (void)
|
||||
{
|
||||
g_test_add ("/FilterModel/self/verify-test-suite",
|
||||
g_test_add ("/TreeModelFilter/self/verify-test-suite",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup,
|
||||
verify_test_suite,
|
||||
filter_test_teardown);
|
||||
|
||||
g_test_add ("/FilterModel/self/verify-test-suite/vroot/depth-1",
|
||||
g_test_add ("/TreeModelFilter/self/verify-test-suite/vroot/depth-1",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup,
|
||||
verify_test_suite_vroot,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/self/verify-test-suite/vroot/depth-2",
|
||||
g_test_add ("/TreeModelFilter/self/verify-test-suite/vroot/depth-2",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, 3, -1),
|
||||
filter_test_setup,
|
||||
verify_test_suite_vroot,
|
||||
filter_test_teardown);
|
||||
|
||||
|
||||
g_test_add ("/FilterModel/filled/hide-root-level",
|
||||
g_test_add ("/TreeModelFilter/filled/hide-root-level",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup,
|
||||
filled_hide_root_level,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/filled/hide-child-levels",
|
||||
g_test_add ("/TreeModelFilter/filled/hide-child-levels",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup,
|
||||
filled_hide_child_levels,
|
||||
filter_test_teardown);
|
||||
|
||||
g_test_add ("/FilterModel/filled/hide-root-level/vroot",
|
||||
g_test_add ("/TreeModelFilter/filled/hide-root-level/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup,
|
||||
filled_vroot_hide_root_level,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/filled/hide-child-levels/vroot",
|
||||
g_test_add ("/TreeModelFilter/filled/hide-child-levels/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup,
|
||||
filled_vroot_hide_child_levels,
|
||||
filter_test_teardown);
|
||||
|
||||
|
||||
g_test_add ("/FilterModel/empty/show-nodes",
|
||||
g_test_add ("/TreeModelFilter/empty/show-nodes",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_empty,
|
||||
empty_show_nodes,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/empty/show-multiple-nodes",
|
||||
g_test_add ("/TreeModelFilter/empty/show-multiple-nodes",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_empty,
|
||||
empty_show_multiple_nodes,
|
||||
filter_test_teardown);
|
||||
|
||||
g_test_add ("/FilterModel/empty/show-nodes/vroot",
|
||||
g_test_add ("/TreeModelFilter/empty/show-nodes/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_empty,
|
||||
empty_vroot_show_nodes,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/empty/show-multiple-nodes/vroot",
|
||||
g_test_add ("/TreeModelFilter/empty/show-multiple-nodes/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_empty,
|
||||
empty_vroot_show_multiple_nodes,
|
||||
filter_test_teardown);
|
||||
|
||||
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_hide_single,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single-child",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single-child",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_hide_single_child,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single-multi-level",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single-multi-level",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_hide_single_multi_level,
|
||||
filter_test_teardown);
|
||||
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_vroot_hide_single,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single-child/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single-child/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_vroot_hide_single_child,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/hide-single-multi-level/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/hide-single-multi-level/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_unfiltered,
|
||||
unfiltered_vroot_hide_single_multi_level,
|
||||
@ -2924,72 +2924,72 @@ register_filter_model_tests (void)
|
||||
|
||||
|
||||
|
||||
g_test_add ("/FilterModel/unfiltered/show-single",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_show_single,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/show-single-child",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single-child",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_show_single_child,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/show-single-multi-level",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single-multi-level",
|
||||
FilterTest, NULL,
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_show_single_multi_level,
|
||||
filter_test_teardown);
|
||||
|
||||
g_test_add ("/FilterModel/unfiltered/show-single/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_vroot_show_single,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/show-single-child/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single-child/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_vroot_show_single_child,
|
||||
filter_test_teardown);
|
||||
g_test_add ("/FilterModel/unfiltered/show-single-multi-level/vroot",
|
||||
g_test_add ("/TreeModelFilter/unfiltered/show-single-multi-level/vroot",
|
||||
FilterTest, gtk_tree_path_new_from_indices (2, -1),
|
||||
filter_test_setup_empty_unfiltered,
|
||||
unfiltered_vroot_show_single_multi_level,
|
||||
filter_test_teardown);
|
||||
|
||||
|
||||
g_test_add_func ("/FilterModel/specific/path-dependent-filter",
|
||||
g_test_add_func ("/TreeModelFilter/specific/path-dependent-filter",
|
||||
specific_path_dependent_filter);
|
||||
g_test_add_func ("/FilterModel/specific/append-after-collapse",
|
||||
g_test_add_func ("/TreeModelFilter/specific/append-after-collapse",
|
||||
specific_append_after_collapse);
|
||||
g_test_add_func ("/FilterModel/specific/sort-filter-remove-node",
|
||||
g_test_add_func ("/TreeModelFilter/specific/sort-filter-remove-node",
|
||||
specific_sort_filter_remove_node);
|
||||
g_test_add_func ("/FilterModel/specific/sort-filter-remove-root",
|
||||
g_test_add_func ("/TreeModelFilter/specific/sort-filter-remove-root",
|
||||
specific_sort_filter_remove_root);
|
||||
g_test_add_func ("/FilterModel/specific/root-mixed-visibility",
|
||||
g_test_add_func ("/TreeModelFilter/specific/root-mixed-visibility",
|
||||
specific_root_mixed_visibility);
|
||||
g_test_add_func ("/FilterModel/specific/has-child-filter",
|
||||
g_test_add_func ("/TreeModelFilter/specific/has-child-filter",
|
||||
specific_has_child_filter);
|
||||
g_test_add_func ("/FilterModel/specific/root-has-child-filter",
|
||||
g_test_add_func ("/TreeModelFilter/specific/root-has-child-filter",
|
||||
specific_root_has_child_filter);
|
||||
g_test_add_func ("/FilterModel/specific/filter-add-child",
|
||||
g_test_add_func ("/TreeModelFilter/specific/filter-add-child",
|
||||
specific_filter_add_child);
|
||||
g_test_add_func ("/FilterModel/specific/list-store-clear",
|
||||
g_test_add_func ("/TreeModelFilter/specific/list-store-clear",
|
||||
specific_list_store_clear);
|
||||
|
||||
g_test_add_func ("/FilterModel/specific/bug-300089",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-300089",
|
||||
specific_bug_300089);
|
||||
g_test_add_func ("/FilterModel/specific/bug-301558",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-301558",
|
||||
specific_bug_301558);
|
||||
g_test_add_func ("/FilterModel/specific/bug-311955",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-311955",
|
||||
specific_bug_311955);
|
||||
g_test_add_func ("/FilterModel/specific/bug-346800",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-346800",
|
||||
specific_bug_346800);
|
||||
g_test_add_func ("/FilterModel/specific/bug-364946",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-364946",
|
||||
specific_bug_364946);
|
||||
g_test_add_func ("/FilterModel/specific/bug-464173",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-464173",
|
||||
specific_bug_464173);
|
||||
g_test_add_func ("/FilterModel/specific/bug-540201",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-540201",
|
||||
specific_bug_540201);
|
||||
g_test_add_func ("/FilterModel/specific/bug-549287",
|
||||
g_test_add_func ("/TreeModelFilter/specific/bug-549287",
|
||||
specific_bug_549287);
|
||||
}
|
||||
|
@ -1004,119 +1004,119 @@ void
|
||||
register_list_store_tests (void)
|
||||
{
|
||||
/* insertion */
|
||||
g_test_add_func ("/list-store/insert-high-values",
|
||||
g_test_add_func ("/ListStore/insert-high-values",
|
||||
list_store_test_insert_high_values);
|
||||
g_test_add_func ("/list-store/append",
|
||||
g_test_add_func ("/ListStore/append",
|
||||
list_store_test_append);
|
||||
g_test_add_func ("/list-store/prepend",
|
||||
g_test_add_func ("/ListStore/prepend",
|
||||
list_store_test_prepend);
|
||||
g_test_add_func ("/list-store/insert-after",
|
||||
g_test_add_func ("/ListStore/insert-after",
|
||||
list_store_test_insert_after);
|
||||
g_test_add_func ("/list-store/insert-after-NULL",
|
||||
g_test_add_func ("/ListStore/insert-after-NULL",
|
||||
list_store_test_insert_after_NULL);
|
||||
g_test_add_func ("/list-store/insert-before",
|
||||
g_test_add_func ("/ListStore/insert-before",
|
||||
list_store_test_insert_before);
|
||||
g_test_add_func ("/list-store/insert-before-NULL",
|
||||
g_test_add_func ("/ListStore/insert-before-NULL",
|
||||
list_store_test_insert_before_NULL);
|
||||
|
||||
/* setting values (FIXME) */
|
||||
|
||||
/* removal */
|
||||
g_test_add ("/list-store/remove-begin", ListStore, NULL,
|
||||
g_test_add ("/ListStore/remove-begin", ListStore, NULL,
|
||||
list_store_setup, list_store_test_remove_begin,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/remove-middle", ListStore, NULL,
|
||||
g_test_add ("/ListStore/remove-middle", ListStore, NULL,
|
||||
list_store_setup, list_store_test_remove_middle,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/remove-end", ListStore, NULL,
|
||||
g_test_add ("/ListStore/remove-end", ListStore, NULL,
|
||||
list_store_setup, list_store_test_remove_end,
|
||||
list_store_teardown);
|
||||
|
||||
g_test_add ("/list-store/clear", ListStore, NULL,
|
||||
g_test_add ("/ListStore/clear", ListStore, NULL,
|
||||
list_store_setup, list_store_test_clear,
|
||||
list_store_teardown);
|
||||
|
||||
/* reordering */
|
||||
g_test_add ("/list-store/reorder", ListStore, NULL,
|
||||
g_test_add ("/ListStore/reorder", ListStore, NULL,
|
||||
list_store_setup, list_store_test_reorder,
|
||||
list_store_teardown);
|
||||
|
||||
/* swapping */
|
||||
g_test_add ("/list-store/swap-begin", ListStore, NULL,
|
||||
g_test_add ("/ListStore/swap-begin", ListStore, NULL,
|
||||
list_store_setup, list_store_test_swap_begin,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/swap-middle-next", ListStore, NULL,
|
||||
g_test_add ("/ListStore/swap-middle-next", ListStore, NULL,
|
||||
list_store_setup, list_store_test_swap_middle_next,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/swap-middle-apart", ListStore, NULL,
|
||||
g_test_add ("/ListStore/swap-middle-apart", ListStore, NULL,
|
||||
list_store_setup, list_store_test_swap_middle_apart,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/swap-end", ListStore, NULL,
|
||||
g_test_add ("/ListStore/swap-end", ListStore, NULL,
|
||||
list_store_setup, list_store_test_swap_end,
|
||||
list_store_teardown);
|
||||
g_test_add_func ("/list-store/swap-single",
|
||||
g_test_add_func ("/ListStore/swap-single",
|
||||
list_store_test_swap_single);
|
||||
|
||||
/* moving */
|
||||
g_test_add ("/list-store/move-after-from-start", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-from-start", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_from_start,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-next", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-next", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_next,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-apart", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-apart", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_apart,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-end", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-end", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_end,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-from-end", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-from-end", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_from_end,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-change-ends", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-change-ends", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_change_ends,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-after-NULL", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-after-NULL", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_after_NULL,
|
||||
list_store_teardown);
|
||||
g_test_add_func ("/list-store/move-after-single",
|
||||
g_test_add_func ("/ListStore/move-after-single",
|
||||
list_store_test_move_after_single);
|
||||
|
||||
g_test_add ("/list-store/move-before-next", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-next", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_next,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-before-apart", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-apart", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_apart,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-before-to-start", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-to-start", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_to_start,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-before-from-end", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-from-end", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_from_end,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-before-change-ends", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-change-ends", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_change_ends,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/move-before-NULL", ListStore, NULL,
|
||||
g_test_add ("/ListStore/move-before-NULL", ListStore, NULL,
|
||||
list_store_setup, list_store_test_move_before_NULL,
|
||||
list_store_teardown);
|
||||
g_test_add_func ("/list-store/move-before-single",
|
||||
g_test_add_func ("/ListStore/move-before-single",
|
||||
list_store_test_move_before_single);
|
||||
|
||||
/* iter invalidation */
|
||||
g_test_add ("/list-store/iter-prev-invalid", ListStore, NULL,
|
||||
g_test_add ("/ListStore/iter-prev-invalid", ListStore, NULL,
|
||||
list_store_setup, list_store_test_iter_previous_invalid,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/iter-next-invalid", ListStore, NULL,
|
||||
g_test_add ("/ListStore/iter-next-invalid", ListStore, NULL,
|
||||
list_store_setup, list_store_test_iter_next_invalid,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/iter-children-invalid", ListStore, NULL,
|
||||
g_test_add ("/ListStore/iter-children-invalid", ListStore, NULL,
|
||||
list_store_setup, list_store_test_iter_children_invalid,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/iter-nth-child-invalid", ListStore, NULL,
|
||||
g_test_add ("/ListStore/iter-nth-child-invalid", ListStore, NULL,
|
||||
list_store_setup, list_store_test_iter_nth_child_invalid,
|
||||
list_store_teardown);
|
||||
g_test_add ("/list-store/iter-parent-invalid", ListStore, NULL,
|
||||
g_test_add ("/ListStore/iter-parent-invalid", ListStore, NULL,
|
||||
list_store_setup, list_store_test_iter_parent_invalid,
|
||||
list_store_teardown);
|
||||
}
|
||||
|
@ -1005,119 +1005,119 @@ void
|
||||
register_tree_store_tests (void)
|
||||
{
|
||||
/* insertion */
|
||||
g_test_add_func ("/tree-store/insert-high-values",
|
||||
g_test_add_func ("/TreeStore/insert-high-values",
|
||||
tree_store_test_insert_high_values);
|
||||
g_test_add_func ("/tree-store/append",
|
||||
g_test_add_func ("/TreeStore/append",
|
||||
tree_store_test_append);
|
||||
g_test_add_func ("/tree-store/prepend",
|
||||
g_test_add_func ("/TreeStore/prepend",
|
||||
tree_store_test_prepend);
|
||||
g_test_add_func ("/tree-store/insert-after",
|
||||
g_test_add_func ("/TreeStore/insert-after",
|
||||
tree_store_test_insert_after);
|
||||
g_test_add_func ("/tree-store/insert-after-NULL",
|
||||
g_test_add_func ("/TreeStore/insert-after-NULL",
|
||||
tree_store_test_insert_after_NULL);
|
||||
g_test_add_func ("/tree-store/insert-before",
|
||||
g_test_add_func ("/TreeStore/insert-before",
|
||||
tree_store_test_insert_before);
|
||||
g_test_add_func ("/tree-store/insert-before-NULL",
|
||||
g_test_add_func ("/TreeStore/insert-before-NULL",
|
||||
tree_store_test_insert_before_NULL);
|
||||
|
||||
/* setting values (FIXME) */
|
||||
|
||||
/* removal */
|
||||
g_test_add ("/tree-store/remove-begin", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/remove-begin", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_remove_begin,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/remove-middle", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/remove-middle", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_remove_middle,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/remove-end", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/remove-end", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_remove_end,
|
||||
tree_store_teardown);
|
||||
|
||||
g_test_add ("/tree-store/clear", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/clear", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_clear,
|
||||
tree_store_teardown);
|
||||
|
||||
/* reordering */
|
||||
g_test_add ("/tree-store/reorder", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/reorder", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_reorder,
|
||||
tree_store_teardown);
|
||||
|
||||
/* swapping */
|
||||
g_test_add ("/tree-store/swap-begin", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/swap-begin", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_swap_begin,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/swap-middle-next", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/swap-middle-next", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_swap_middle_next,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/swap-middle-apart", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/swap-middle-apart", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_swap_middle_apart,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/swap-end", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/swap-end", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_swap_end,
|
||||
tree_store_teardown);
|
||||
g_test_add_func ("/tree-store/swap-single",
|
||||
g_test_add_func ("/TreeStore/swap-single",
|
||||
tree_store_test_swap_single);
|
||||
|
||||
/* moving */
|
||||
g_test_add ("/tree-store/move-after-from-start", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-from-start", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_from_start,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-next", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-next", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_next,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-apart", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-apart", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_apart,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-end", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-end", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_end,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-from-end", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-from-end", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_from_end,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-change-ends", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-change-ends", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_change_ends,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-after-NULL", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-after-NULL", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_after_NULL,
|
||||
tree_store_teardown);
|
||||
g_test_add_func ("/tree-store/move-after-single",
|
||||
g_test_add_func ("/TreeStore/move-after-single",
|
||||
tree_store_test_move_after_single);
|
||||
|
||||
g_test_add ("/tree-store/move-before-next", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-next", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_next,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-before-apart", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-apart", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_apart,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-before-to-start", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-to-start", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_to_start,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-before-from-end", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-from-end", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_from_end,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-before-change-ends", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-change-ends", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_change_ends,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/move-before-NULL", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/move-before-NULL", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_move_before_NULL,
|
||||
tree_store_teardown);
|
||||
g_test_add_func ("/tree-store/move-before-single",
|
||||
g_test_add_func ("/TreeStore/move-before-single",
|
||||
tree_store_test_move_before_single);
|
||||
|
||||
/* iter invalidation */
|
||||
g_test_add ("/tree-store/iter-prev-invalid", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/iter-prev-invalid", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_iter_previous_invalid,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/iter-next-invalid", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/iter-next-invalid", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_iter_next_invalid,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/iter-children-invalid", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/iter-children-invalid", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_iter_children_invalid,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/iter-nth-child-invalid", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/iter-nth-child-invalid", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_iter_nth_child_invalid,
|
||||
tree_store_teardown);
|
||||
g_test_add ("/tree-store/iter-parent-invalid", TreeStore, NULL,
|
||||
g_test_add ("/TreeStore/iter-parent-invalid", TreeStore, NULL,
|
||||
tree_store_setup, tree_store_test_iter_parent_invalid,
|
||||
tree_store_teardown);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user