From ba6313d9f75cd9867cca6867bbd1b882aea11fd8 Mon Sep 17 00:00:00 2001 From: konn Date: Sun, 13 Apr 2008 10:15:33 +0000 Subject: [PATCH] * Added test code of the
tag 3 for au XHTML converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2200 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c b/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c index 0454aed6..0c421611 100644 --- a/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c +++ b/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c @@ -522,8 +522,8 @@ main() CU_add_test(xhtml_suite, "test
.", test_xhtml_div_tag_001); CU_add_test(xhtml_suite, "test
with align attribute(left).", test_xhtml_div_tag_002); -#if 0 CU_add_test(xhtml_suite, "test
with align attribute(right).", test_xhtml_div_tag_003); +#if 0 CU_add_test(xhtml_suite, "test
with align attribute(center).", test_xhtml_div_tag_004); CU_add_test(xhtml_suite, "test
with align attribute(void).", test_xhtml_div_tag_005); CU_add_test(xhtml_suite, "test
with align attribute(unknown).", test_xhtml_div_tag_006); @@ -2623,11 +2623,10 @@ void test_xhtml_div_tag_002() #undef TEST_STRING #undef RESULT_STRING } -/* KONNO */ void test_xhtml_div_tag_003() { -#define TEST_STRING "
" -#define RESULT_STRING "
" +#define TEST_STRING "
" +#define RESULT_STRING "
\r\n" char *ret; char *tmp; device_table spec; @@ -2644,6 +2643,7 @@ void test_xhtml_div_tag_003() tmp = chxj_encoding(&r, TEST_STRING, &destlen); ret = chxj_exchange_xhtml_mobile_1_0(&r, &spec, tmp, destlen, &destlen, &entry, &cookie); ret = chxj_rencoding(&r, ret, &destlen); + fprintf(stderr, "ret=[%s]",ret); CU_ASSERT(ret != NULL); CU_ASSERT(strcmp(RESULT_STRING, ret) == 0); CU_ASSERT(destlen == sizeof(RESULT_STRING)-1); @@ -2680,6 +2680,7 @@ void test_xhtml_div_tag_004() #undef TEST_STRING #undef RESULT_STRING } +/* KONNO */ void test_xhtml_div_tag_005() { #define TEST_STRING "
" -- 2.11.0