2009-06-08 Claudio Saavedra <csaavedra@igalia.com>
+ * tests/TEST-CASES.txt: Remove bogus tests.
+ * tests/check-hildon-color-chooser.c: (test_set_color_invalid):
+ Remove three bogus tests that were actually setting valid colors.
+
+2009-06-08 Claudio Saavedra <csaavedra@igalia.com>
+
* configure.ac: post release version bump
* debian/changelog: post release version bump
Fixes: NB#116786 (Image viewer crases whie trying to launch menu,
in a scenario)
+2009-05-13 Claudio Saavedra <csaavedra@igalia.com>
+
+ * tests/TEST-CASES.txt: Remove other bogus test.
+ * tests/check-hildon-controlbar.c: (test_set_value_invalid):
+ Remove bogus test that was setting/retrieving a valid value.
+
2009-05-13 Artem Egorkine <ext-artem.egorkine@nokia.com>
* src/hildon-animation-actor.c,
d) Set and get base color defined by #0000FF.
3. Test that invalid color values do not cause problems.
- a) Set and get base color defined by #00FFFF and pixel 0.
- b) Set and get base color defined by #0ABCDE and pixel 0.
- c) Set and get base color defined by #FF00FF and pixel 0.
- d) Set the color (65536,65536,65536).
- d) Set and get base color defined by NULL color.
- e) Set base color on NULL object.
- f) Get base color from NULL object.
+ a) Set the color (65536,65536,65536).
+ b) Set and get base color defined by NULL color.
+ c) Set base color on NULL object.
+ d) Get base color from NULL object.
- hildon_color_selector_new: [TODO]
/**
* Purpose: Check that invalid base colors are set and get properly
* Cases considered:
- * - Set and get base color defined by #00FFFF and pixel 0.
- * - Set and get base color defined by #0ABCDE and pixel 0.
- * - Set and get base color defined by #FF00FF and pixel 0.
* - Set the color (65536,65536,65536).
* - Set and get base color defined by NULL color.
* - Set base color on NULL object.
hildon_color_chooser_set_color(color_chooser,b_color);
gdk_color_free(b_color);
- /* Test 1: Set the color #00FFFF*/
- gdk_color_parse( "#00FFFF", &color);
- b_color = gdk_color_copy(&color);
-
- hildon_color_chooser_set_color(color_chooser,b_color);
- hildon_color_chooser_get_color(color_chooser,ret_color);
-
- fail_if ((0 != ret_color->red) || (0 != ret_color->green) || (0 != ret_color->blue),
- "hildon-color-chooser: The returned RGB color is %i/%i/%i and should be %i/%i/%i",
- ret_color->red, ret_color->green, ret_color->blue,
- 0, 0, 0);
-
- gdk_color_free(b_color);
-
- /* Test 2: Set the color #FFFFFF */
- gdk_color_parse( "#0ABCDE", &color);
- b_color = gdk_color_copy(&color);
-
- hildon_color_chooser_set_color(color_chooser,b_color);
- hildon_color_chooser_get_color(color_chooser,ret_color);
-
- fail_if ((0 != ret_color->red) || (0 != ret_color->green) || (0 != ret_color->blue),
- "hildon-color-chooser: The returned RGB color is %i/%i/%i and should be %i/%i/%i",
- ret_color->red, ret_color->green, ret_color->blue,
- 0, 0, 0);
-
- gdk_color_free(b_color);
-
- /* Test 2: Set the color #FF00FF */
- gdk_color_parse( "#FF00FF", &color);
- b_color = gdk_color_copy(&color);
-
- hildon_color_chooser_set_color(color_chooser,b_color);
- hildon_color_chooser_get_color(color_chooser,ret_color);
-
- fail_if ((0 != ret_color->red) || (0 != ret_color->green) || (0 != ret_color->blue),
- "hildon-color-chooser: The returned RGB color is %i/%i/%i and should be %i/%i/%i",
- ret_color->red, ret_color->green, ret_color->blue,
- 0, 0, 0);
-
- gdk_color_free(b_color);
- /* Test 3: Set the color (65536,65536,65536)*/
+ /* Test 1: Set the color (65536,65536,65536)*/
gdk_color_parse( "#000000", &color);
b_color = gdk_color_copy(&color);
red = MAX_COLOR+1;
ret_color->red, ret_color->green, ret_color->blue,
0, 0, 0);
- /* Test 5: Set the color NULL on color chooser*/
+ /* Test 2: Set the color NULL on color chooser*/
hildon_color_chooser_set_color(color_chooser,NULL);
- /* Test 6: Set the color on NULL object*/
+ /* Test 3: Set the color on NULL object*/
hildon_color_chooser_set_color(NULL,b_color);
- /* Test 7: Get color from NULL object*/
+ /* Test 4: Get color from NULL object*/
hildon_color_chooser_get_color(NULL, ret_color);
if (b_color)