From: konn Date: Sat, 12 Apr 2008 17:23:51 +0000 (+0000) Subject: * Added test code of the attribute 5 for au XHTML converter. X-Git-Tag: v0.12.20~645 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fa327fe68d4ba0e0714dbfcd2e9f0cb5667995cf;p=modchxj%2Fmod_chxj.git * Added test code of the attribute 5 for au XHTML converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2144 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- 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 58159df8..9a0b5ffe 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 @@ -466,8 +466,8 @@ main() CU_add_test(xhtml_suite, "test a tag href attr2 with other site link.", test_xhtml_a_tag_href_attribute_002); CU_add_test(xhtml_suite, "test a tag href attr3 with local link.", test_xhtml_a_tag_href_attribute_003); CU_add_test(xhtml_suite, "test a tag href attr4 with maker.", test_xhtml_a_tag_href_attribute_004); -#if 0 CU_add_test(xhtml_suite, "test a tag href attr5 with void maker.", test_xhtml_a_tag_href_attribute_005); +#if 0 CU_add_test(xhtml_suite, "test a tag href attr6 with no cookie.", test_xhtml_a_tag_href_attribute_006); CU_add_test(xhtml_suite, "test a tag accesskey attribute.", test_xhtml_a_tag_accesskey_attribute_001); CU_add_test(xhtml_suite, "test a tag accesskey attribute with void char.", test_xhtml_a_tag_accesskey_attribute_002); @@ -1261,8 +1261,8 @@ void test_xhtml_a_tag_href_attribute_004() } void test_xhtml_a_tag_href_attribute_005() { -#define TEST_STRING "abc" -#define RESULT_STRING "abc" +#define TEST_STRING "abc" +#define RESULT_STRING "abc" char *ret; char *tmp; device_table spec; @@ -1279,6 +1279,7 @@ void test_xhtml_a_tag_href_attribute_005() 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);