summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-03 12:53:23 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-03 12:53:23 +0000
commita45a5bd2008cdd24c2b0a97d772c903fd852fb40 (patch)
tree052be75d8993e4a9908665106f0f0a3e7e23de81 /src/bin
parentcbf5ff4b0ed946a5f86fb23fd9da8d012113f3a5 (diff)
elm test_genlist.c: Use proper test name for genlist decorate item/all modes.
SVN revision: 69895
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test.c4
-rw-r--r--src/bin/test_genlist.c26
2 files changed, 9 insertions, 21 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index c6f6199d3..cd27f8235 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -437,7 +437,8 @@ add_tests:
437 ADD_TEST(NULL, "Lists", "Genlist Tree", test_genlist6); 437 ADD_TEST(NULL, "Lists", "Genlist Tree", test_genlist6);
438 ADD_TEST(NULL, "Lists", "Genlist Group", test_genlist8); 438 ADD_TEST(NULL, "Lists", "Genlist Group", test_genlist8);
439 ADD_TEST(NULL, "Lists", "Genlist Group Tree", test_genlist9); 439 ADD_TEST(NULL, "Lists", "Genlist Group Tree", test_genlist9);
440 ADD_TEST(NULL, "Lists", "Genlist Mode", test_genlist10); 440 ADD_TEST(NULL, "Lists", "Genlist Decorate Item Mode", test_genlist10);
441 ADD_TEST(NULL, "Lists", "Genlist Decorate All Mode", test_genlist15);
441 ADD_TEST(NULL, "Lists", "Genlist Reorder Mode", test_genlist11); 442 ADD_TEST(NULL, "Lists", "Genlist Reorder Mode", test_genlist11);
442#ifdef HAVE_EIO 443#ifdef HAVE_EIO
443 ADD_TEST(NULL, "Lists", "Genlist Eio", test_eio); 444 ADD_TEST(NULL, "Lists", "Genlist Eio", test_eio);
@@ -445,7 +446,6 @@ add_tests:
445 ADD_TEST(NULL, "Lists", "Genlist Textblock", test_genlist12); 446 ADD_TEST(NULL, "Lists", "Genlist Textblock", test_genlist12);
446 ADD_TEST(NULL, "Lists", "Genlist Tree, Insert Sorted", test_genlist13); 447 ADD_TEST(NULL, "Lists", "Genlist Tree, Insert Sorted", test_genlist13);
447 ADD_TEST(NULL, "Lists", "Genlist Tree, Insert Relative", test_genlist14); 448 ADD_TEST(NULL, "Lists", "Genlist Tree, Insert Relative", test_genlist14);
448 ADD_TEST(NULL, "Lists", "Genlist Edit Mode", test_genlist15);
449 ADD_TEST(NULL, "Lists", "Genlist Flip Mode", test_genlist16); 449 ADD_TEST(NULL, "Lists", "Genlist Flip Mode", test_genlist16);
450 ADD_TEST(NULL, "Lists", "Genlist Tree Effect", test_genlist17); 450 ADD_TEST(NULL, "Lists", "Genlist Tree Effect", test_genlist17);
451 ADD_TEST(NULL, "Lists", "GenGrid", test_gengrid); 451 ADD_TEST(NULL, "Lists", "GenGrid", test_gengrid);
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index f3f583ca1..9e6994264 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -1803,10 +1803,10 @@ _my_gl_mode_cancel(void *data, Evas_Object *obj, void *event_info __UNUSED__)
1803void 1803void
1804test_genlist10(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 1804test_genlist10(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
1805{ 1805{
1806 Evas_Object *win, *fr, *lb, *bx, *bx2, *bx3, *rd, *rdg, *gl; 1806 Evas_Object *win, *fr, *bx, *bx2, *rd, *rdg, *gl;
1807 int i; 1807 int i;
1808 1808
1809 win = elm_win_util_standard_add("genlist10", "Genlist Mode"); 1809 win = elm_win_util_standard_add("genlist-decorate-item-mode", "Genlist Decorate Item Mode");
1810 elm_win_autodel_set(win, EINA_TRUE); 1810 elm_win_autodel_set(win, EINA_TRUE);
1811 1811
1812 bx = elm_box_add(win); 1812 bx = elm_box_add(win);
@@ -1815,7 +1815,7 @@ test_genlist10(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
1815 evas_object_show(bx); 1815 evas_object_show(bx);
1816 1816
1817 fr = elm_frame_add(win); 1817 fr = elm_frame_add(win);
1818 elm_object_text_set(fr, "Mode Type"); 1818 elm_object_text_set(fr, "Decorate Mode Type");
1819 elm_box_pack_end(bx, fr); 1819 elm_box_pack_end(bx, fr);
1820 evas_object_show(fr); 1820 evas_object_show(fr);
1821 1821
@@ -1823,33 +1823,21 @@ test_genlist10(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
1823 elm_object_content_set(fr, bx2); 1823 elm_object_content_set(fr, bx2);
1824 evas_object_show(bx2); 1824 evas_object_show(bx2);
1825 1825
1826 lb = elm_label_add(win);
1827 elm_object_text_set(lb,
1828 "Sweep genlist items to the right.<br/>"
1829 "Test this by changing Mode Type to Slide or Rotate.");
1830 elm_box_pack_end(bx2, lb);
1831 evas_object_show(lb);
1832
1833 bx3 = elm_box_add(win);
1834 elm_box_horizontal_set(bx3, EINA_TRUE);
1835 elm_box_pack_end(bx2, bx3);
1836 evas_object_show(bx3);
1837
1838 rd = elm_radio_add(win); 1826 rd = elm_radio_add(win);
1839 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 1827 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
1840 elm_radio_state_value_set(rd, 0); 1828 elm_radio_state_value_set(rd, 0);
1841 elm_object_text_set(rd, "Slide "); 1829 elm_object_text_set(rd, "Slide : Sweep genlist items to the right.");
1842 evas_object_show(rd); 1830 evas_object_show(rd);
1843 elm_box_pack_end(bx3, rd); 1831 elm_box_pack_end(bx2, rd);
1844 rdg = rd; 1832 rdg = rd;
1845 1833
1846 rd = elm_radio_add(win); 1834 rd = elm_radio_add(win);
1847 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 1835 evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
1848 elm_radio_state_value_set(rd, 1); 1836 elm_radio_state_value_set(rd, 1);
1849 elm_object_text_set(rd, "Rotate"); 1837 elm_object_text_set(rd, "Rotate : Click each item.");
1850 elm_radio_group_add(rd, rdg); 1838 elm_radio_group_add(rd, rdg);
1851 evas_object_show(rd); 1839 evas_object_show(rd);
1852 elm_box_pack_end(bx3, rd); 1840 elm_box_pack_end(bx2, rd);
1853 1841
1854 gl = elm_genlist_add(win); 1842 gl = elm_genlist_add(win);
1855 evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL); 1843 evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL);