Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/test
Modified Files:
tests.c tests.h
Log Message:
Use the evas_list_last feature for finding the end of the line lists when
adding text. Added a test for etox_prepend_text.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/tests.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- tests.c 14 Jan 2003 18:43:38 -0000 1.9
+++ tests.c 27 Jul 2003 05:27:09 -0000 1.10
@@ -8,6 +8,7 @@
l = evas_list_append(l, test_basic_get);
l = evas_list_append(l, test_basic_set);
l = evas_list_append(l, test_basic_append);
+ l = evas_list_append(l, test_basic_prepend);
return l;
}
@@ -94,6 +95,28 @@
return;
}
+void test_basic_prepend()
+{
+ char msg[] =
+ "Text can be appended to the text already existent\n"
+ "in the etox.\n"
+ "\n"
+ "The second paragraph shown below was appended\n"
+ "at the end of the etox through etox_append_text.\n";
+
+ char string[] =
+ "The Tao that is seen\n"
+ "Is not the true Tao\n" "Until you bring fresh toner.\n" "\n";
+
+ /* Change message */
+ etox_set_text(e_msg, msg);
+
+ /* Change test etox */
+ etox_prepend_text(e_test, string);
+
+ return;
+}
+
Evas_List *style_tests()
{
Evas_List *l = NULL;
@@ -118,7 +141,6 @@
"\n" "A style-less sample paragraph is shown below.\n";
char string[] =
- "\n\n\n"
"Chaos reigns within.\n"
"Stop, reflect, and reboot.\n" "Order shall return.\n";
@@ -138,7 +160,6 @@
char msg[] = "\"Bold\" style.\n";
char string[] =
- "\n\n\n"
"Chaos reigns within.\n"
"Stop, reflect, and reboot.\n" "Order shall return.\n";
@@ -157,7 +178,6 @@
char msg[] = "\"Outline\" style.\n";
char string[] =
- "\n\n\n"
"Chaos reigns within.\n"
"Stop, reflect, and reboot.\n" "Order shall return.\n";
@@ -176,7 +196,6 @@
char msg[] = "\"Raised\" style.\n";
char string[] =
- "\n\n\n"
"Chaos reigns within.\n"
"Stop, reflect, and reboot.\n" "Order shall return.\n";
@@ -195,7 +214,6 @@
char msg[] = "\"Shadow\" style.\n";
char string[] =
- "\n\n\n"
"Chaos reigns within.\n"
"Stop, reflect, and reboot.\n" "Order shall return.\n";
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/tests.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- tests.h 14 Jan 2003 18:43:42 -0000 1.6
+++ tests.h 27 Jul 2003 05:27:09 -0000 1.7
@@ -9,6 +9,7 @@
void test_basic_get();
void test_basic_set();
void test_basic_append();
+void test_basic_prepend();
/*
* Style tests prototypes
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs