diff options
author | Dave Camp <dave@ximian.com> | 2002-11-06 01:32:10 +0000 |
---|---|---|
committer | Dave Camp <campd@src.gnome.org> | 2002-11-06 01:32:10 +0000 |
commit | f8b8fe558a28d7fcb9a59f67fdbfcff269adc6d5 (patch) | |
tree | 20e82b870dcb7c54b56c3e6f87a8dd3f46c15dab /test | |
parent | c0939bb8083a72e9b7955036b69780e65437f0f8 (diff) | |
download | nautilus-f8b8fe558a28d7fcb9a59f67fdbfcff269adc6d5.tar.gz |
Removed property widget tests.
2002-11-05 Dave Camp <dave@ximian.com>
* test/Makefile.am:
* test/test.c:
* test/test.h: Removed property widget tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/test.c | 88 | ||||
-rw-r--r-- | test/test.h | 12 |
3 files changed, 0 insertions, 102 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 02b174600..cd7e973b0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -18,14 +18,12 @@ noinst_PROGRAMS =\ test-nautilus-mime-actions \ test-nautilus-mime-actions-set \ test-nautilus-preferences-change \ - test-nautilus-preferences-display \ test-nautilus-wrap-table \ $(NULL) test_nautilus_mime_actions_SOURCES = test-nautilus-mime-actions.c test.c test_nautilus_mime_actions_set_SOURCES = test-nautilus-mime-actions-set.c test.c test_nautilus_preferences_change_SOURCES = test-nautilus-preferences-change.c test.c -test_nautilus_preferences_display_SOURCES = test-nautilus-preferences-display.c test.c test_nautilus_wrap_table_SOURCES = test-nautilus-wrap-table.c test.c EXTRA_DIST = \ diff --git a/test/test.c b/test/test.c index fc708e9d1..ce43f9a99 100644 --- a/test/test.c +++ b/test/test.c @@ -139,94 +139,6 @@ test_label_new (const char *text, return label; } -/* Preferences hacks */ -void -test_text_caption_set_text_for_int_preferences (EelTextCaption *text_caption, - const char *name) -{ - int int_value; - char *text; - - g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption)); - g_return_if_fail (name != NULL); - - int_value = eel_preferences_get_integer (name); - - text = g_strdup_printf ("%d", int_value); - - eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text); - - g_free (text); -} - -void -test_text_caption_set_text_for_string_preferences (EelTextCaption *text_caption, - const char *name) -{ - char *text; - - g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption)); - g_return_if_fail (name != NULL); - - text = eel_preferences_get (name); - - eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text); - - g_free (text); -} - -void -test_text_caption_set_text_for_default_int_preferences (EelTextCaption *text_caption, - const char *name) -{ - int int_value; - char *text; - - g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption)); - g_return_if_fail (name != NULL); - - int_value = 0; - - text = g_strdup_printf ("%d", int_value); - - eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text); - - g_free (text); -} - -void -test_text_caption_set_text_for_default_string_preferences (EelTextCaption *text_caption, - const char *name) -{ - char *text; - - g_return_if_fail (EEL_IS_TEXT_CAPTION (text_caption)); - g_return_if_fail (name != NULL); - - text = g_strdup (""); - - eel_text_caption_set_text (EEL_TEXT_CAPTION (text_caption), text); - - g_free (text); -} - -int -test_text_caption_get_text_as_int (const EelTextCaption *text_caption) -{ - int result = 0; - char *text; - - g_return_val_if_fail (EEL_IS_TEXT_CAPTION (text_caption), 0); - - text = eel_text_caption_get_text (text_caption); - - eel_str_to_int (text, &result); - - g_free (text); - - return result; -} - void test_window_set_title_with_pid (GtkWindow *window, const char *title) diff --git a/test/test.h b/test/test.h index 12f88254f..42d09f321 100644 --- a/test/test.h +++ b/test/test.h @@ -20,7 +20,6 @@ #include <eel/eel-string.h> #include <libnautilus-private/nautilus-file-utilities.h> -#include <eel/eel-text-caption.h> #include <eel/eel-string-picker.h> void test_init (int *argc, @@ -49,16 +48,5 @@ void test_pixbuf_draw_rectangle_tiled (GdkPixbuf *pi int opacity); void test_window_set_title_with_pid (GtkWindow *window, const char *title); -int test_text_caption_get_text_as_int (const EelTextCaption *text_caption); - -/* Preferences hacks */ -void test_text_caption_set_text_for_int_preferences (EelTextCaption *text_caption, - const char *name); -void test_text_caption_set_text_for_string_preferences (EelTextCaption *text_caption, - const char *name); -void test_text_caption_set_text_for_default_int_preferences (EelTextCaption *text_caption, - const char *name); -void test_text_caption_set_text_for_default_string_preferences (EelTextCaption *text_caption, - const char *name); #endif /* TEST_H */ |