* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
#include <check.h>
#include <gtk/gtkmain.h>
#include "test_suites.h"
-#include "hildon-window.h"
-#include "hildon-note.h"
+#include <hildon/hildon-window.h>
+#include <hildon/hildon-note.h>
/* -------------------- Fixtures -------------------- */
}
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.
* Cases considered:
- * - Create new confirmation note with description set to TEST_STRING and icon name "qgn_list_cp_calibration".
+ * - Create new confirmation note with description set to TEST_STRING and icon name "control_calibration_target".
* - Create new confirmation note with description set to "" and icon name NULL.
*
*/
/* Test 1: create new confirmation note with description set to TEST_STRING */
description = TEST_STRING;
- icon_name="qgn_list_cp_calibration";
+ icon_name="control_calibration_target";
note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,description,icon_name));
fail_if(!HILDON_IS_NOTE(note),
"hildon-note: Creation failed with hildon_note_new_confirmation_with_icon_name");
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);
invalid_note=NULL;
/* Test 2: create new confirmation note with description set to "NULL" */
- invalid_note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,NULL,"qgn_list_cp_calibration"));
+ invalid_note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,NULL,"control_calibration_target"));
fail_if(HILDON_IS_NOTE(invalid_note),
"hildon-note: Creation succeeded with hildon_note_new_confirmation_with_icon_name with message == NULL");
g_value_unset(&enum_value);
}
END_TEST
+#endif
/* ----- Test case for new_cancel_with_progress_bar -----*/
/* 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");
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);