/*=========================================================================*/
CU_add_test(xhtml_suite, "test <h2>.", test_xhtml_h2_tag_001);
CU_add_test(xhtml_suite, "test <h2> with value.", test_xhtml_h2_tag_002);
-#if 0
CU_add_test(xhtml_suite, "test <h2> with value(japanese).", test_xhtml_h2_tag_003);
CU_add_test(xhtml_suite, "test <h2> with value(japanese-hankaku).", test_xhtml_h2_tag_004);
+#if 0
CU_add_test(xhtml_suite, "test <h2> with align attribute(non).", test_xhtml_h2_tag_005);
CU_add_test(xhtml_suite, "test <h2> with align attribute(void).", test_xhtml_h2_tag_006);
CU_add_test(xhtml_suite, "test <h2> with align attribute(left).", test_xhtml_h2_tag_007);
#undef TEST_STRING
#undef RESULT_STRING
}
-/* KONNO */
void test_xhtml_h2_tag_003()
{
-#define TEST_STRING "<html><head></head><body><h2>亀さん</h2></body></html>"
-#define RESULT_STRING "<html><head></head><body><h2>亀さん</h2></body></html>"
+#define TEST_STRING "<h2>亀さん</h2>"
+#define RESULT_STRING "<h2>亀さん</h2>"
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);
}
void test_xhtml_h2_tag_004()
{
-#define TEST_STRING "<html><head></head><body><h2>ハンカク</h2></body></html>"
-#define RESULT_STRING "<html><head></head><body><h2>ハンカク</h2></body></html>"
+#define TEST_STRING "<h2>ハンカク</h2>"
+#define RESULT_STRING "<h2>ハンカク</h2>"
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_h2_tag_005()
{
#define TEST_STRING "<html><head></head><body><h2 align></h2></body></html>"