/*
- * Copyright (C) 2006 Nokia Corporation.
+ * This file is a part of hildon tests
*
- * Contact: Luc Pionchon <luc.pionchon@nokia.com>
+ * Copyright (C) 2006, 2007 Nokia Corporation, all rights reserved.
+ *
+ * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
*
* 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; either version 2.1 of
- * the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
min=hildon_controlbar_get_min(controlbar);
- fail_if (min != 0,
- "hildon-controlbar: The returned min is %d and should be 0",
- min);
+ fail_if (min != init_min,
+ "hildon-controlbar: The returned min is %d and should be %d",
+ min, init_min);
max=hildon_controlbar_get_max(controlbar);
min=hildon_controlbar_get_min(controlbar);
- fail_if (min != 0,
- "hildon-controlbar: The returned min is %d and should be 0",
- min, 0);
+ fail_if (min != init_min,
+ "hildon-controlbar: The returned min is %d and should be %d",
+ min, init_min);
max=hildon_controlbar_get_max(controlbar);
- fail_if (max != 0,
- "hildon-controlbar: The returned max is %d and should be 0",
- max);
+ fail_if (max != init_max,
+ "hildon-controlbar: The returned max is %d and should be %d",
+ max, init_max);
/* Test 4: Set a range of [G_MAXINT,-1] */
init_min = G_MAXINT;
max=hildon_controlbar_get_max(controlbar);
- fail_if (max != 0,
- "hildon-controlbar: The returned max is %d and should be 0",
- max);
+ fail_if (max != init_max,
+ "hildon-controlbar: The returned max is %d and should be %d",
+ max, init_max);
min=hildon_controlbar_get_min(controlbar);
- fail_if (min != 0,
- "hildon-controlbar: The returned min is %d and should be 0",
- min);
+ fail_if (min != init_max,
+ "hildon-controlbar: The returned min is %d and should be %d",
+ min, init_max);
/* Test 5: Set a range of [1,G_MININT] */
init_min = 1;
max=hildon_controlbar_get_max(controlbar);
- fail_if (max != 0,
- "hildon-controlbar: The returned max is %d and should be 0",
- max);
+ fail_if (max != init_min,
+ "hildon-controlbar: The returned max is %d and should be %d",
+ max, init_min);
min=hildon_controlbar_get_min(controlbar);
- fail_if (min != 0,
- "hildon-controlbar: The returned min is %d and should be 0",
- min);
+ fail_if (min != init_min,
+ "hildon-controlbar: The returned min is %d and should be %d",
+ min, init_min);
}
END_TEST