aboutsummaryrefslogtreecommitdiff
path: root/tests/check-hildon-note.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2008-11-06 12:26:46 +0000
committerClaudio Saavedra <csaavedra@igalia.com>2008-11-06 12:26:46 +0000
commit123a88a095775aef5216d4bb50fbc844a2886a4a (patch)
tree346fac9331a20542b8603141be52f74d070fca91 /tests/check-hildon-note.c
parentd248a8da46d6e4432198c21f68beccdde95a820d (diff)
2008-11-06 Claudio Saavedra <csaavedra@igalia.com>
* src/hildon-note-private.h: Add strings for the icon and stock_icon properties. * src/hildon-note.c: (hildon_note_set_property), (hildon_note_get_property), (hildon_note_class_init), (hildon_note_init), (hildon_note_finalize), (hildon_note_rebuild), (hildon_note_new_confirmation_add_buttons): Remove icons. (hildon_note_new_confirmation_with_icon_name): Deprecate. (hildon_note_new_information_with_icon_name): Deprecate. (hildon_note_new_confirmation): Act directly, without calling the deprecated constructor. (hildon_note_new_information): Act directly, without calling the deprecated constructor. * src/hildon-note.h: Mark deprecate methods as such. * tests/check-hildon-note.c: (create_hildon_note_suite): Do not run tests on the deprecated methods if built with deprecation disabled. Fixes: NB#91688 (Never show icons in information notes/confirmation notes)
Diffstat (limited to 'tests/check-hildon-note.c')
-rw-r--r--tests/check-hildon-note.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/check-hildon-note.c b/tests/check-hildon-note.c
index 0ae61f2..9c8b100 100644
--- a/tests/check-hildon-note.c
+++ b/tests/check-hildon-note.c
@@ -280,6 +280,7 @@ START_TEST (test_new_information_invalid)
}
END_TEST
+#ifndef HILDON_DISABLE_DEPRECATED
/* ----- Test case for new_confirmation_with_icon_name -----*/
/**
* Purpose: Check that note dialog is properly created with description regular values.
@@ -380,7 +381,7 @@ START_TEST (test_new_confirmation_with_icon_name_invalid)
GValue icon_name_value={0, };
HildonNoteType note_type;
HildonNote * invalid_note;
-
+
g_value_init (&value, G_TYPE_STRING);
g_value_init (&icon_name_value, G_TYPE_STRING);
g_value_init (&enum_value, G_TYPE_INT);
@@ -420,6 +421,7 @@ START_TEST (test_new_confirmation_with_icon_name_invalid)
g_value_unset(&enum_value);
}
END_TEST
+#endif
/* ----- Test case for new_cancel_with_progress_bar -----*/
@@ -555,7 +557,9 @@ Suite *create_hildon_note_suite()
/* Create test cases */
TCase *tc1 = tcase_create("new_confirmation");
+#ifndef HILDON_DISABLE_DEPRECATED
TCase *tc2 = tcase_create("new_confirmation_with_icon_name");
+#endif
TCase *tc3 = tcase_create("new_information");
TCase *tc4 = tcase_create("new_cancel_with_progress_bar");
@@ -565,11 +569,13 @@ Suite *create_hildon_note_suite()
tcase_add_test(tc1, test_new_confirmation_invalid);
suite_add_tcase (s, tc1);
+#ifndef HILDON_DISABLE_DEPRECATED
/* Create test case for hildon_note_new_confirmation_with_icon_name and add it to the suite */
tcase_add_checked_fixture(tc2, fx_setup_default_note, fx_teardown_default_note);
tcase_add_test(tc2, test_new_confirmation_with_icon_name_regular);
tcase_add_test(tc2, test_new_confirmation_with_icon_name_invalid);
suite_add_tcase (s, tc2);
+#endif
/* Create test case for hildon_note_new_with_information and add it to the suite */
tcase_add_checked_fixture(tc3, fx_setup_default_note, fx_teardown_default_note);