[kazehakase-svn] [3665] fix kz_bookmark_folder_new.

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
Fri Feb 13 10:49:42 JST 2009


Revision: 3665
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3665
Author:   ikezoe
Date:     2009-02-13 10:49:42 +0900 (Fri, 13 Feb 2009)

Log Message:
-----------
fix kz_bookmark_folder_new.

Modified Paths:
--------------
    kazehakase/trunk/test/test-bookmark-folder.c
    kazehakase/trunk/test/test-root-bookmark.c

Modified: kazehakase/trunk/test/test-bookmark-folder.c
===================================================================
--- kazehakase/trunk/test/test-bookmark-folder.c	2009-02-13 01:48:22 UTC (rev 3664)
+++ kazehakase/trunk/test/test-bookmark-folder.c	2009-02-13 01:49:42 UTC (rev 3665)
@@ -50,7 +50,7 @@
 void
 test_new (void)
 {
-    folder = KZ_BOOKMARK_FOLDER(kz_bookmark_folder_new());
+    folder = KZ_BOOKMARK_FOLDER(kz_bookmark_folder_new("Test Folder"));
     cut_assert(folder);
     cut_assert_true(kz_bookmark_is_folder(folder));
 }
@@ -223,8 +223,8 @@
 {
     cut_trace(test_prepend());
 
-    cut_assert_equal_pointer(0, kz_bookmark_folder_get_child_index(folder, another_child));
-    cut_assert_equal_pointer(1, kz_bookmark_folder_get_child_index(folder, child));
+    cut_assert_equal_int(0, kz_bookmark_folder_get_child_index(folder, another_child));
+    cut_assert_equal_int(1, kz_bookmark_folder_get_child_index(folder, child));
 }
 
 /*

Modified: kazehakase/trunk/test/test-root-bookmark.c
===================================================================
--- kazehakase/trunk/test/test-root-bookmark.c	2009-02-13 01:48:22 UTC (rev 3664)
+++ kazehakase/trunk/test/test-root-bookmark.c	2009-02-13 01:49:42 UTC (rev 3665)
@@ -59,7 +59,7 @@
 
     kz_root_bookmark_add_bookmark_bar_file(root, bookmark_bar_file, NULL);
 
-    expected = kz_bookmark_folder_new();
+    expected = kz_bookmark_folder_new(NULL);
     kz_bookmark_folder_append(KZ_BOOKMARK_FOLDER(expected),
                               KZ_BOOKMARK(kz_bookmark_file_new(bookmark_bar_file, "Bookmark Bar", "XBEL")));
 




More information about the Kazehakase-cvs mailing list
アーカイブの一覧に戻る