From 9cb41af261d512b9108b0b814abd4a59598367b6 Mon Sep 17 00:00:00 2001 From: konn Date: Mon, 14 Apr 2008 12:26:17 +0000 Subject: [PATCH] * Added test code of the tag for au XHTML converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2248 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/chxj_xhtml_mobile_1_0.c | 56 ++-- .../test_chxj_xhtml_mobile_1_0.c | 310 ++++++++++++++------- 2 files changed, 251 insertions(+), 115 deletions(-) diff --git a/src/chxj_xhtml_mobile_1_0.c b/src/chxj_xhtml_mobile_1_0.c index 89ead69b..46ecbdca 100644 --- a/src/chxj_xhtml_mobile_1_0.c +++ b/src/chxj_xhtml_mobile_1_0.c @@ -22,6 +22,7 @@ #include "chxj_img_conv.h" #include "chxj_qr_code.h" #include "chxj_buffered_write.h" +#include "chxj_str_util.h" #define GET_XHTML(X) ((xhtml_t*)(X)) #undef W_L @@ -1320,33 +1321,42 @@ s_xhtml_1_0_start_input_tag(void *pdoc, Node *node) size = qs_get_size_attr(doc, node, r); if (type) { - W_L(" type=\""); - W_V(type); - W_L("\" "); + type = qs_trim_string(doc->buf.pool, type); + if (type && (STRCASEEQ('t','T',"text", type) || + STRCASEEQ('p','P',"password",type) || + STRCASEEQ('c','C',"checkbox",type) || + STRCASEEQ('r','R',"radio", type) || + STRCASEEQ('h','H',"hidden", type) || + STRCASEEQ('s','S',"submit", type) || + STRCASEEQ('r','R',"reset", type))) { + W_L(" type=\""); + W_V(type); + W_L("\""); + } } - if (size) { + if (size && *size) { W_L(" size=\""); W_V(size); - W_L("\" "); + W_L("\""); } - if (name) { + if (name && *name) { W_L(" name=\""); W_V(name); - W_L("\" "); + W_L("\""); } - if (value) { + if (value && *value) { W_L(" value=\""); W_V(value); - W_L("\" "); + W_L("\""); } - if (accesskey) { + if (accesskey && *accesskey) { W_L(" accesskey=\""); W_V(accesskey); - W_L("\" "); + W_L("\""); } - if (istyle) { - char* fmt = qs_conv_istyle_to_format(r,istyle); - if (max_length) { + if (istyle && *istyle && (*istyle == '1' || *istyle == '2' || *istyle == '3' || *istyle == '4')) { + char *fmt = qs_conv_istyle_to_format(r,istyle); + if (max_length && *max_length) { int ii; for (ii=0; (unsigned int)ii '9') { @@ -1355,7 +1365,7 @@ s_xhtml_1_0_start_input_tag(void *pdoc, Node *node) } } - { + if (strcmp(max_length, "0")) { char *vv = apr_psprintf(r->pool, " FORMAT=\"%d%s\"", atoi(max_length), fmt); W_V(vv); } @@ -1367,13 +1377,21 @@ s_xhtml_1_0_start_input_tag(void *pdoc, Node *node) W_L("\""); } } + else { + if (max_length && *max_length) { + if (chxj_chk_numeric(max_length) != 0) { + max_length = apr_psprintf(r->pool, "0"); + } + if (strcmp(max_length, "0")) { + char *vv = apr_psprintf(r->pool, " FORMAT=\"%dm\"", atoi(max_length)); + W_V(vv); + } + } + } /*--------------------------------------------------------------------------*/ /* The figure is default for the password. */ /*--------------------------------------------------------------------------*/ - if (type && istyle == NULL - && (*type == 'p' || *type == 'P') - && strcasecmp(type, "password") == 0 - && ! xhtml->entryp->pc_flag) { + if (type && (istyle == NULL || *istyle == 0) && STRCASEEQ('p','P',"password", type) && ! xhtml->entryp->pc_flag) { if (max_length) { W_L(" FORMAT=\""); W_V(max_length); 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 8ddcfb6e..571bdd9d 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 @@ -251,6 +251,7 @@ void test_xhtml_input_tag_002(); void test_xhtml_input_tag_003(); void test_xhtml_input_tag_004(); void test_xhtml_input_tag_005(); +void test_xhtml_input_tag_005_1(); void test_xhtml_input_tag_006(); void test_xhtml_input_tag_007(); void test_xhtml_input_tag_008(); @@ -283,6 +284,7 @@ void test_xhtml_input_tag_034(); void test_xhtml_input_tag_035(); void test_xhtml_input_tag_036(); void test_xhtml_input_tag_037(); +void test_xhtml_input_tag_037_1(); void test_xhtml_input_tag_038(); void test_xhtml_input_tag_039(); void test_xhtml_input_tag_040(); @@ -689,12 +691,15 @@ main() CU_add_test(xhtml_suite, "test with japanese value." , test_xhtml_img_tag_036); CU_add_test(xhtml_suite, "test with japanese-hankaku value." , test_xhtml_img_tag_037); -#if 0 + /*=========================================================================*/ + /* */ + /*=========================================================================*/ CU_add_test(xhtml_suite, "test ." , test_xhtml_input_tag_001); CU_add_test(xhtml_suite, "test ." , test_xhtml_input_tag_002); CU_add_test(xhtml_suite, "test with void value." , test_xhtml_input_tag_003); CU_add_test(xhtml_suite, "test with value(text)." , test_xhtml_input_tag_004); CU_add_test(xhtml_suite, "test with value(password)." , test_xhtml_input_tag_005); + CU_add_test(xhtml_suite, "test with value(password) 2." , test_xhtml_input_tag_005_1); CU_add_test(xhtml_suite, "test with value(checkbox)." , test_xhtml_input_tag_006); CU_add_test(xhtml_suite, "test with value(radio)." , test_xhtml_input_tag_007); CU_add_test(xhtml_suite, "test with value(hidden)." , test_xhtml_input_tag_008); @@ -727,6 +732,7 @@ main() CU_add_test(xhtml_suite, "test 2." , test_xhtml_input_tag_035); CU_add_test(xhtml_suite, "test 3." , test_xhtml_input_tag_036); CU_add_test(xhtml_suite, "test 4." , test_xhtml_input_tag_037); + CU_add_test(xhtml_suite, "test 4-1." , test_xhtml_input_tag_037_1); CU_add_test(xhtml_suite, "test 5." , test_xhtml_input_tag_038); CU_add_test(xhtml_suite, "test 6." , test_xhtml_input_tag_039); CU_add_test(xhtml_suite, "test 7." , test_xhtml_input_tag_040); @@ -737,7 +743,11 @@ main() CU_add_test(xhtml_suite, "test 12." , test_xhtml_input_tag_045); CU_add_test(xhtml_suite, "test 13." , test_xhtml_input_tag_046); CU_add_test(xhtml_suite, "test 14." , test_xhtml_input_tag_047); +#if 0 + /*=========================================================================*/ + /*
  • */ + /*=========================================================================*/ CU_add_test(xhtml_suite, "test
  • ." , test_xhtml_li_tag_001); CU_add_test(xhtml_suite, "test
  • with alphabetic value." , test_xhtml_li_tag_002); CU_add_test(xhtml_suite, "test
  • with japanese value." , test_xhtml_li_tag_003); @@ -951,6 +961,7 @@ chxj_apply_convrule(request_rec* r, apr_array_header_t* convrules) static chxjconvrule_entry entries; memset(&entries, 0, sizeof(chxjconvrule_entry)); entries.encoding = apr_pstrdup(r->pool, "UTF8"); + entries.pc_flag = 0; return &entries; } @@ -6497,14 +6508,13 @@ void test_xhtml_img_tag_037() #undef TEST_STRING #undef RESULT_STRING } -/* KONNO */ /*============================================================================*/ /* */ /*============================================================================*/ void test_xhtml_input_tag_001() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6521,6 +6531,7 @@ void test_xhtml_input_tag_001() 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); @@ -6531,8 +6542,8 @@ void test_xhtml_input_tag_001() } void test_xhtml_input_tag_002() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6549,6 +6560,7 @@ void test_xhtml_input_tag_002() 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); @@ -6559,8 +6571,8 @@ void test_xhtml_input_tag_002() } void test_xhtml_input_tag_003() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6577,6 +6589,7 @@ void test_xhtml_input_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); @@ -6587,8 +6600,8 @@ void test_xhtml_input_tag_003() } void test_xhtml_input_tag_004() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6605,6 +6618,7 @@ void test_xhtml_input_tag_004() 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); @@ -6615,8 +6629,38 @@ void test_xhtml_input_tag_004() } void test_xhtml_input_tag_005() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" + char *ret; + char *tmp; + device_table spec; + chxjconvrule_entry entry; + cookie_t cookie; + apr_size_t destlen; + APR_INIT; + + COOKIE_INIT(cookie); + + SPEC_INIT(spec); + entry.pc_flag = 0; + destlen = sizeof(TEST_STRING)-1; + + 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); + + APR_TERM; +#undef TEST_STRING +#undef RESULT_STRING +} +void test_xhtml_input_tag_005_1() +{ +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6628,11 +6672,13 @@ void test_xhtml_input_tag_005() COOKIE_INIT(cookie); SPEC_INIT(spec); + entry.pc_flag = 1; destlen = sizeof(TEST_STRING)-1; 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); @@ -6643,8 +6689,8 @@ void test_xhtml_input_tag_005() } void test_xhtml_input_tag_006() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6661,6 +6707,7 @@ void test_xhtml_input_tag_006() 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); @@ -6671,8 +6718,8 @@ void test_xhtml_input_tag_006() } void test_xhtml_input_tag_007() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6689,6 +6736,7 @@ void test_xhtml_input_tag_007() 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); @@ -6699,8 +6747,8 @@ void test_xhtml_input_tag_007() } void test_xhtml_input_tag_008() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6717,6 +6765,7 @@ void test_xhtml_input_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); @@ -6727,8 +6776,8 @@ void test_xhtml_input_tag_008() } void test_xhtml_input_tag_009() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6745,6 +6794,7 @@ void test_xhtml_input_tag_009() 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); @@ -6755,8 +6805,8 @@ void test_xhtml_input_tag_009() } void test_xhtml_input_tag_010() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6773,6 +6823,7 @@ void test_xhtml_input_tag_010() 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); @@ -6783,8 +6834,8 @@ void test_xhtml_input_tag_010() } void test_xhtml_input_tag_011() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6801,6 +6852,7 @@ void test_xhtml_input_tag_011() 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); @@ -6811,8 +6863,8 @@ void test_xhtml_input_tag_011() } void test_xhtml_input_tag_012() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6829,6 +6881,7 @@ void test_xhtml_input_tag_012() 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); @@ -6839,8 +6892,8 @@ void test_xhtml_input_tag_012() } void test_xhtml_input_tag_013() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6857,6 +6910,7 @@ void test_xhtml_input_tag_013() 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); @@ -6867,8 +6921,8 @@ void test_xhtml_input_tag_013() } void test_xhtml_input_tag_014() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6885,6 +6939,7 @@ void test_xhtml_input_tag_014() 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); @@ -6895,8 +6950,8 @@ void test_xhtml_input_tag_014() } void test_xhtml_input_tag_015() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6913,6 +6968,7 @@ void test_xhtml_input_tag_015() 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); @@ -6923,8 +6979,8 @@ void test_xhtml_input_tag_015() } void test_xhtml_input_tag_016() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6941,6 +6997,7 @@ void test_xhtml_input_tag_016() 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); @@ -6951,8 +7008,8 @@ void test_xhtml_input_tag_016() } void test_xhtml_input_tag_017() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6969,6 +7026,7 @@ void test_xhtml_input_tag_017() 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); @@ -6979,8 +7037,8 @@ void test_xhtml_input_tag_017() } void test_xhtml_input_tag_018() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -6997,6 +7055,7 @@ void test_xhtml_input_tag_018() 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); @@ -7007,8 +7066,8 @@ void test_xhtml_input_tag_018() } void test_xhtml_input_tag_019() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7025,6 +7084,7 @@ void test_xhtml_input_tag_019() 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); @@ -7035,8 +7095,8 @@ void test_xhtml_input_tag_019() } void test_xhtml_input_tag_020() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7053,6 +7113,7 @@ void test_xhtml_input_tag_020() 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); @@ -7063,8 +7124,8 @@ void test_xhtml_input_tag_020() } void test_xhtml_input_tag_021() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7081,6 +7142,7 @@ void test_xhtml_input_tag_021() 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); @@ -7091,8 +7153,8 @@ void test_xhtml_input_tag_021() } void test_xhtml_input_tag_022() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7109,6 +7171,7 @@ void test_xhtml_input_tag_022() 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); @@ -7119,8 +7182,8 @@ void test_xhtml_input_tag_022() } void test_xhtml_input_tag_023() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7137,6 +7200,7 @@ void test_xhtml_input_tag_023() 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); @@ -7147,8 +7211,8 @@ void test_xhtml_input_tag_023() } void test_xhtml_input_tag_024() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7165,6 +7229,7 @@ void test_xhtml_input_tag_024() 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); @@ -7175,8 +7240,8 @@ void test_xhtml_input_tag_024() } void test_xhtml_input_tag_025() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7193,6 +7258,7 @@ void test_xhtml_input_tag_025() 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); @@ -7203,8 +7269,8 @@ void test_xhtml_input_tag_025() } void test_xhtml_input_tag_026() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7221,6 +7287,7 @@ void test_xhtml_input_tag_026() 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); @@ -7231,8 +7298,8 @@ void test_xhtml_input_tag_026() } void test_xhtml_input_tag_027() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7249,6 +7316,7 @@ void test_xhtml_input_tag_027() 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); @@ -7259,8 +7327,8 @@ void test_xhtml_input_tag_027() } void test_xhtml_input_tag_028() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7277,6 +7345,7 @@ void test_xhtml_input_tag_028() 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); @@ -7287,8 +7356,8 @@ void test_xhtml_input_tag_028() } void test_xhtml_input_tag_029() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7305,6 +7374,7 @@ void test_xhtml_input_tag_029() 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); @@ -7315,8 +7385,8 @@ void test_xhtml_input_tag_029() } void test_xhtml_input_tag_030() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7333,6 +7403,7 @@ void test_xhtml_input_tag_030() 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); @@ -7343,8 +7414,8 @@ void test_xhtml_input_tag_030() } void test_xhtml_input_tag_031() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7361,6 +7432,7 @@ void test_xhtml_input_tag_031() 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); @@ -7371,8 +7443,8 @@ void test_xhtml_input_tag_031() } void test_xhtml_input_tag_032() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7389,6 +7461,7 @@ void test_xhtml_input_tag_032() 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); @@ -7399,8 +7472,8 @@ void test_xhtml_input_tag_032() } void test_xhtml_input_tag_033() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7417,6 +7490,7 @@ void test_xhtml_input_tag_033() 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); @@ -7427,8 +7501,8 @@ void test_xhtml_input_tag_033() } void test_xhtml_input_tag_034() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7445,6 +7519,7 @@ void test_xhtml_input_tag_034() 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); @@ -7455,8 +7530,8 @@ void test_xhtml_input_tag_034() } void test_xhtml_input_tag_035() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7473,6 +7548,7 @@ void test_xhtml_input_tag_035() 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); @@ -7483,8 +7559,8 @@ void test_xhtml_input_tag_035() } void test_xhtml_input_tag_036() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7501,6 +7577,7 @@ void test_xhtml_input_tag_036() 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); @@ -7511,8 +7588,8 @@ void test_xhtml_input_tag_036() } void test_xhtml_input_tag_037() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7529,6 +7606,36 @@ void test_xhtml_input_tag_037() 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); + + APR_TERM; +#undef TEST_STRING +#undef RESULT_STRING +} +void test_xhtml_input_tag_037_1() +{ +#define TEST_STRING "" +#define RESULT_STRING "" + char *ret; + char *tmp; + device_table spec; + chxjconvrule_entry entry; + cookie_t cookie; + apr_size_t destlen; + APR_INIT; + + COOKIE_INIT(cookie); + + SPEC_INIT(spec); + destlen = sizeof(TEST_STRING)-1; + + 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); @@ -7539,8 +7646,8 @@ void test_xhtml_input_tag_037() } void test_xhtml_input_tag_038() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7557,6 +7664,7 @@ void test_xhtml_input_tag_038() 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); @@ -7567,8 +7675,8 @@ void test_xhtml_input_tag_038() } void test_xhtml_input_tag_039() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7585,6 +7693,7 @@ void test_xhtml_input_tag_039() 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); @@ -7595,8 +7704,8 @@ void test_xhtml_input_tag_039() } void test_xhtml_input_tag_040() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7613,6 +7722,7 @@ void test_xhtml_input_tag_040() 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); @@ -7623,8 +7733,8 @@ void test_xhtml_input_tag_040() } void test_xhtml_input_tag_041() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7641,6 +7751,7 @@ void test_xhtml_input_tag_041() 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); @@ -7651,8 +7762,8 @@ void test_xhtml_input_tag_041() } void test_xhtml_input_tag_042() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7669,6 +7780,7 @@ void test_xhtml_input_tag_042() 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); @@ -7679,8 +7791,8 @@ void test_xhtml_input_tag_042() } void test_xhtml_input_tag_043() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7697,6 +7809,7 @@ void test_xhtml_input_tag_043() 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); @@ -7707,8 +7820,8 @@ void test_xhtml_input_tag_043() } void test_xhtml_input_tag_044() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7725,6 +7838,7 @@ void test_xhtml_input_tag_044() 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); @@ -7735,8 +7849,8 @@ void test_xhtml_input_tag_044() } void test_xhtml_input_tag_045() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7753,6 +7867,7 @@ void test_xhtml_input_tag_045() 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); @@ -7763,8 +7878,8 @@ void test_xhtml_input_tag_045() } void test_xhtml_input_tag_046() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7781,6 +7896,7 @@ void test_xhtml_input_tag_046() 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); @@ -7791,8 +7907,8 @@ void test_xhtml_input_tag_046() } void test_xhtml_input_tag_047() { -#define TEST_STRING "" -#define RESULT_STRING "" +#define TEST_STRING "" +#define RESULT_STRING "" char *ret; char *tmp; device_table spec; @@ -7809,6 +7925,7 @@ void test_xhtml_input_tag_047() 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); @@ -7817,6 +7934,7 @@ void test_xhtml_input_tag_047() #undef TEST_STRING #undef RESULT_STRING } +/* KONNO */ /*============================================================================*/ /*
  • */ /*============================================================================*/ -- 2.11.0