X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=tests%2Fcheck-hildon-banner.c;h=ed3ee428cd6bbec1daa033cbb3e430ca3a07e74d;hb=ece69692d489b5975cd0bf24d454c035f3f12ca1;hp=349e65e58eb84e1fe57e29e5f3857bcb5c12ddce;hpb=e332a589ad93718efce61bee7d7c09314a0004b8;p=hildon diff --git a/tests/check-hildon-banner.c b/tests/check-hildon-banner.c index 349e65e..ed3ee42 100644 --- a/tests/check-hildon-banner.c +++ b/tests/check-hildon-banner.c @@ -8,7 +8,7 @@ * 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 @@ -21,14 +21,15 @@ * 02110-1301 USA * */ +#ifndef HILDON_DISABLE_DEPRECATED #include #include #include #include "test_suites.h" #include "check_utils.h" -#include "hildon-banner.h" -#include "hildon-window.h" +#include +#include /* -------------------- Fixtures -------------------- */ @@ -65,7 +66,7 @@ fx_teardown_default_banner () * Purpose: Check creation of new animation banner with regular values * Cases considered: * - Create an animation banner with NULL animation name and TEST_STRING text. - * - Create an animation banner with qgn_list_mahjong animation name and "" text. + * - Create an animation banner with dummy animation name and "" text. */ START_TEST (test_show_animation_regular) { @@ -86,9 +87,9 @@ START_TEST (test_show_animation_regular) gtk_widget_destroy(GTK_WIDGET(hildon_banner)); - /*Test 2: Create an animation banner with animation name set to "qgn_list_mahjong" and text set to "". */ + /*Test 2: Create an animation banner with animation name set to "dummy" and text set to "". */ text=""; - animation_name = "qgn_list_mahjong"; + animation_name = "dummy"; hildon_banner = HILDON_BANNER(hildon_banner_show_animation(b_window,animation_name,text)); fail_if(!HILDON_IS_BANNER(hildon_banner), @@ -124,7 +125,7 @@ START_TEST (test_show_animation_invalid) /*Test 2: Create an animation banner with NULL window. */ text=""; - animation_name = "qgn_list_mahjong"; + animation_name = "dummy"; hildon_banner = HILDON_BANNER(hildon_banner_show_animation(NULL,animation_name,text)); fail_if(!HILDON_IS_BANNER(hildon_banner), @@ -215,8 +216,6 @@ START_TEST (test_show_progress_invalid) } END_TEST - - /* ---------- Suite creation ---------- */ Suite *create_hildon_banner_suite() { @@ -225,7 +224,7 @@ Suite *create_hildon_banner_suite() /* Create test cases */ TCase *tc1 = tcase_create("show_animation"); - TCase *tc2 = tcase_create("show_animation"); + TCase *tc2 = tcase_create("show_progress"); /* Create unit tests for hildon_banner_show_animation and add it to the suite */ tcase_add_checked_fixture(tc1, fx_setup_default_banner, fx_teardown_default_banner); @@ -244,3 +243,5 @@ Suite *create_hildon_banner_suite() /* Return created suite */ return s; } + +#endif