CU_add_test(xhtml_suite, "test <dt>.", test_xhtml_dt_tag_001);
CU_add_test(xhtml_suite, "test <dt> with void value.", test_xhtml_dt_tag_002);
-#if 0
CU_add_test(xhtml_suite, "test <dd>.", test_xhtml_dd_tag_001);
+#if 0
CU_add_test(xhtml_suite, "test <dd> with void value.", test_xhtml_dd_tag_002);
CU_add_test(xhtml_suite, "test <div>.", test_xhtml_div_tag_001);
#undef TEST_STRING
#undef RESULT_STRING
}
-/* KONNO */
/*============================================================================*/
/* <DD> */
/*============================================================================*/
void test_xhtml_dd_tag_001()
{
-#define TEST_STRING "<html><head></head><body><dl><dt>あああ</dt><dd>いいい</dd><dt>ああああ</dt><dd>いいいい</dd></dl></body></html>"
-#define RESULT_STRING "<html><head></head><body><dl><dt>あああ<dd>いいい<dt>ああああ<dd>いいいい</dl></body></html>"
+#define TEST_STRING "<dl><dt>あああ</dt><dd>いいい</dd><dt>ああああ</dt><dd>いいいい</dd></dl>"
+#define RESULT_STRING "<dl><dt>あああ</dt><dd>いいい</dd><dt>ああああ</dt><dd>いいいい</dd></dl>"
char *ret;
char *tmp;
device_table spec;
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);
#undef TEST_STRING
#undef RESULT_STRING
}
+/* KONNO */
void test_xhtml_dd_tag_002()
{
#define TEST_STRING "<html><head></head><body><dl><dd></dd><dd></dd></dl></body></html>"