From ed603fa790623e42818f7a60850e1bb2a520710a Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Mon, 9 May 2011 08:41:29 +0200 Subject: [PATCH] Add bug base and bug numbers to tree model unit tests --- gtk/tests/filtermodel.c | 12 ++++++++++++ gtk/tests/sortmodel.c | 4 ++++ gtk/tests/treemodel.c | 2 ++ 3 files changed, 18 insertions(+) diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c index 6b259a1538..ef7095b1db 100644 --- a/gtk/tests/filtermodel.c +++ b/gtk/tests/filtermodel.c @@ -2392,6 +2392,8 @@ specific_bug_301558 (void) int i; gboolean add; + g_test_bug ("301558"); + tree = gtk_tree_store_new (2, G_TYPE_INT, G_TYPE_BOOLEAN); gtk_tree_store_append (tree, &iter, NULL); gtk_tree_store_set (tree, &iter, 0, 123, 1, TRUE, -1); @@ -2465,6 +2467,8 @@ specific_bug_311955 (void) int i; int n; + g_test_bug ("311955"); + store = gtk_tree_store_new (1, G_TYPE_INT); gtk_tree_store_append (store, &root, NULL); @@ -2546,6 +2550,8 @@ specific_bug_346800 (void) store = gtk_tree_store_newv (2, columns); model = GTK_TREE_MODEL (store); + g_test_bug ("346800"); + filter = GTK_TREE_MODEL_FILTER (gtk_tree_model_filter_new (model, NULL)); gtk_tree_model_filter_set_visible_column (filter, 1); @@ -2603,6 +2609,8 @@ specific_bug_464173 (void) GtkWidget *view G_GNUC_UNUSED; gboolean visible = TRUE; + g_test_bug ("464173"); + model = gtk_tree_store_new (1, G_TYPE_STRING); gtk_tree_store_append (model, &iter1, NULL); gtk_tree_store_set (model, &iter1, 0, "Foo", -1); @@ -2645,6 +2653,8 @@ specific_bug_540201 (void) GtkWidget *tree_view G_GNUC_UNUSED; + g_test_bug ("540201"); + store = gtk_tree_store_new (1, G_TYPE_INT); gtk_tree_store_append (store, &root, NULL); @@ -2696,6 +2706,8 @@ specific_bug_549287 (void) GtkTreeIter iter; GtkTreeIter *swap, *parent, *child; + g_test_bug ("529287"); + store = gtk_tree_store_new (1, G_TYPE_STRING); filtered = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL); gtk_tree_model_filter_set_visible_func (GTK_TREE_MODEL_FILTER (filtered), diff --git a/gtk/tests/sortmodel.c b/gtk/tests/sortmodel.c index d972d8aea1..ab606b72c3 100644 --- a/gtk/tests/sortmodel.c +++ b/gtk/tests/sortmodel.c @@ -31,6 +31,8 @@ specific_bug_300089 (void) GtkTreePath *path; GtkTreeIter iter, iter2, sort_iter; + g_test_bug ("300089"); + child_model = GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_STRING)); gtk_tree_store_append (GTK_TREE_STORE (child_model), &iter, NULL); @@ -71,6 +73,8 @@ specific_bug_364946 (void) GtkTreeIter a, aa, aaa, aab, iter; GtkTreeModel *s_model; + g_test_bug ("364946"); + store = gtk_tree_store_new (1, G_TYPE_STRING); gtk_tree_store_append (store, &a, NULL); diff --git a/gtk/tests/treemodel.c b/gtk/tests/treemodel.c index 9d2a43618c..7791403ef0 100644 --- a/gtk/tests/treemodel.c +++ b/gtk/tests/treemodel.c @@ -27,6 +27,8 @@ main (int argc, { gtk_test_init (&argc, &argv, NULL); + g_test_bug_base ("http://bugzilla.gnome.org/"); + register_list_store_tests (); register_tree_store_tests (); register_sort_model_tests ();