CU_add_test(xhtml_suite, "test <form action> with other site .", test_xhtml_form_tag_008);
CU_add_test(xhtml_suite, "test <form action method>.", test_xhtml_form_tag_009);
-#if 0
CU_add_test(xhtml_suite, "test <head>.", test_xhtml_head_tag_001);
+#if 0
CU_add_test(xhtml_suite, "test <head> with value.", test_xhtml_head_tag_002);
CU_add_test(xhtml_suite, "test <h1>.", test_xhtml_h1_tag_001);
#undef TEST_STRING
#undef RESULT_STRING
}
-/* KONNO */
/*============================================================================*/
/* <HEAD> */
/*============================================================================*/
void test_xhtml_head_tag_001()
{
-#define TEST_STRING "<html><head></head><body></body></html>"
-#define RESULT_STRING "<html><head></head><body></body></html>"
+#define TEST_STRING "<head></head>"
+#define RESULT_STRING "<head>\r\n</head>\r\n"
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_head_tag_002()
{
#define TEST_STRING "<html><head><title>あああ</title></head><body></body></html>"