* hildon-pannable-area.c: Added the overshoot property and removed the OVERSHOOT...
[hildon] / tests / check-hildon-color-button.c
index 6961c89..7458620 100644 (file)
@@ -1,11 +1,13 @@
 /*
- * 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
+ * as published by the Free Software Foundation; version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful, but
@@ -349,12 +351,17 @@ START_TEST (test_set_color_invalid)
   gdk_color_free(b_color);
 
   /* Test 4: Get color from GtkHBox object. */
+  ret_color->red = 99;
+  ret_color->green = 99;
+  ret_color->blue = 99;
   hildon_color_button_get_color((HildonColorButton *) (aux_object), ret_color);
     
-  if (ret_color != NULL) 
+  if (ret_color->red != 99      || 
+      ret_color->green != 99    ||
+      ret_color->blue != 99)
     {
       gtk_widget_destroy(aux_object);
-      fail ("hildon-color-button: get_color must not return any object");
+      fail ("hildon-color-button: get_color must not modify the color when launched on invalid widget");
     }
   
   gtk_widget_destroy(aux_object);