From 99429621c919add3c9d23fbce4dfee4e59b662e1 Mon Sep 17 00:00:00 2001 From: konn Date: Mon, 14 Apr 2008 12:25:36 +0000 Subject: [PATCH] * Added test code of the

tag 8 for au XHTML converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2233 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 4b635b4d..d0659869 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 @@ -562,8 +562,8 @@ main() CU_add_test(xhtml_suite, "test

with align attribute(non).", test_xhtml_h2_tag_005); CU_add_test(xhtml_suite, "test

with align attribute(void).", test_xhtml_h2_tag_006); CU_add_test(xhtml_suite, "test

with align attribute(left).", test_xhtml_h2_tag_007); -#if 0 CU_add_test(xhtml_suite, "test

with align attribute(right).", test_xhtml_h2_tag_008); +#if 0 CU_add_test(xhtml_suite, "test

with align attribute(center).", test_xhtml_h2_tag_009); CU_add_test(xhtml_suite, "test

with align attribute(unkown).", test_xhtml_h2_tag_010); CU_add_test(xhtml_suite, "test

.", test_xhtml_h3_tag_001); @@ -3593,11 +3593,10 @@ void test_xhtml_h2_tag_007() #undef TEST_STRING #undef RESULT_STRING } -/* KONNO */ void test_xhtml_h2_tag_008() { -#define TEST_STRING "

" -#define RESULT_STRING "

" +#define TEST_STRING "

" +#define RESULT_STRING "

" char *ret; char *tmp; device_table spec; @@ -3614,6 +3613,7 @@ void test_xhtml_h2_tag_008() 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); @@ -3622,6 +3622,7 @@ void test_xhtml_h2_tag_008() #undef TEST_STRING #undef RESULT_STRING } +/* KONNO */ void test_xhtml_h2_tag_009() { #define TEST_STRING "

" -- 2.11.0