[gtk+] Add a test for the previous fix
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add a test for the previous fix
- Date: Tue, 13 May 2014 15:56:50 +0000 (UTC)
commit ce0325207e874cca23ca3b879b0c707fd087e221
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 13 11:55:01 2014 -0400
Add a test for the previous fix
testsuite/gtk/treestore.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/treestore.c b/testsuite/gtk/treestore.c
index d19297f..e71953f 100644
--- a/testsuite/gtk/treestore.c
+++ b/testsuite/gtk/treestore.c
@@ -1049,6 +1049,23 @@ specific_bug_77977 (void)
g_object_unref (tree_store);
}
+static void
+specific_bug_698396 (void)
+{
+ GtkTreeStore *tree_store;
+ gint new_order[1] = { 0 };
+
+ g_test_bug ("698396");
+
+ tree_store = gtk_tree_store_new (1, G_TYPE_STRING);
+
+ g_test_expect_message ("Gtk", G_LOG_LEVEL_WARNING, "*Cannot reorder*");
+ gtk_tree_store_reorder (tree_store, NULL, new_order);
+ g_test_assert_expected_messages ();
+
+ g_object_unref (tree_store);
+}
+
/* main */
void
@@ -1175,4 +1192,5 @@ register_tree_store_tests (void)
/* specific bugs */
g_test_add_func ("/TreeStore/bug-77977", specific_bug_77977);
+ g_test_add_func ("/TreeStore/bug-698396", specific_bug_698396);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]