Fix gtk-doc packaging
[hildon] / tests / check-hildon-controlbar.c
index 40f5be2..993b2c9 100644 (file)
@@ -1,12 +1,14 @@
 /*
- * 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
@@ -174,9 +176,9 @@ START_TEST (test_set_range_invalid)
 
   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);
 
@@ -191,14 +193,14 @@ START_TEST (test_set_range_invalid)
 
   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;
@@ -207,15 +209,15 @@ START_TEST (test_set_range_invalid)
 
   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;
@@ -224,15 +226,15 @@ START_TEST (test_set_range_invalid)
 
   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