Removed hildon-insert-object-dialog NB#8015
[hildon] / ut / hildon-widgets_tests.c
index 9ae483e..cdcf882 100644 (file)
@@ -41,7 +41,6 @@
 #include <hildon-widgets/hildon-hvolumebar.h>
 #include <hildon-widgets/hildon-vvolumebar.h>
 #include <hildon-widgets/hildon-font-selection-dialog.h>
-#include <hildon-widgets/hildon-insert-object-dialog.h>
 #include <hildon-widgets/hildon-number-editor.h>
 #include <hildon-widgets/hildon-color-selector.h>
 #include <hildon-widgets/hildon-file-handling-note.h>
@@ -54,7 +53,7 @@
 #include <outo.h>
 
 /* Icon which must exist (HildonGridItem). */
-#define VALID_ICON  "Help"
+#define VALID_ICON  "qgn_list_gene_default_app"
 
 /*prototypes to keep the compiler happy*/
 testcase *get_tests(void);
@@ -2051,35 +2050,6 @@ int fsd_get_pretext(void)
        assert( str!=NULL );
        return 1;
 }
-/* insert object dialog: new */
-int test27a(void){
-  GtkWidget *dialog;
-  dialog = hildon_insert_object_dialog_new(NULL);
-  g_assert(dialog);
-  return 1;  
-}
-
-/* insert object dialog: get_name */
-int test27b(void){
-  const gchar *string;
-  GtkWidget *dialog;
-
-  dialog = hildon_insert_object_dialog_new(NULL);
-  string = hildon_insert_object_dialog_get_name(HILDON_INSERT_OBJECT_DIALOG(dialog));
-  g_assert(string);
-  return 1;
-}
-
-/* insert object dialog: get_mime_type */
-int test27c(void){
-  const gchar *string;
-  GtkWidget *dialog;
-
-  dialog = hildon_insert_object_dialog_new(NULL);
-  string = hildon_insert_object_dialog_get_mime_type(HILDON_INSERT_OBJECT_DIALOG(dialog));
-  g_assert(string);
-  return 1;
-}
 
 /* hildon_number_editor_new */
 int test28a(void){
@@ -3130,9 +3100,6 @@ testcase tcases[] =
 #endif
     {*fsd_set_pretext, "FontSelectionDialog Set preview text", EXPECT_OK},
     {*fsd_get_pretext, "FontSelectionDialog Get preview text", EXPECT_OK},
-    {*test27a, "hildon_insert_object: new", EXPECT_OK},
-    {*test27b, "hildon_insert_object: get_name", EXPECT_OK},
-    {*test27c, "hildon_insert_object: get_mime_type", EXPECT_ASSERT},
     {*test28a, "hildon_number_editor_new", EXPECT_OK},
     {*test28b, "hildon_number_editor_get_value", EXPECT_OK},
     {*test28c, "hildon_number_editor_set_range", EXPECT_OK},
@@ -3148,11 +3115,11 @@ testcase tcases[] =
     {*test32a, "hildon_rename_dialog: ok", EXPECT_OK},
     {*test32b, "hildon_rename_dialog: NULL(ok)", EXPECT_OK},
     {*test33a1, "grid_item_new (\"foo\")", EXPECT_OK},
-    {*test33a2, "grid_item_new (NULL)", EXPECT_ASSERT},
+    {*test33a2, "grid_item_new (NULL)", EXPECT_OK},
     {*test33b1, "grid_item_new_label (\"foo\", \"bar\")", EXPECT_OK},
     {*test33b2, "grid_item_new_label (\"foo\", NULL)", EXPECT_OK},
-    {*test33b3, "grid_item_new_label (NULL, \"bar\")", EXPECT_ASSERT},
-    {*test33b4, "grid_item_new_label (NULL, NULL)", EXPECT_ASSERT},
+    {*test33b3, "grid_item_new_label (NULL, \"bar\")", EXPECT_OK},
+    {*test33b4, "grid_item_new_label (NULL, NULL)", EXPECT_OK},
     {*test33c1, "grid_item_set_emblem (foo, \"bar\")", EXPECT_OK},
     {*test33c2, "grid_item_set_emblem (foo, NULL)", EXPECT_OK},
     {*test33c3, "grid_item_set_emblem (NULL, \"bar\")", EXPECT_ASSERT},