void test_chtml40_li_tag_011();
void test_chtml40_li_tag_012();
void test_chtml40_li_tag_013();
+void test_chtml40_li_tag_014();
+void test_chtml40_li_tag_015();
+void test_chtml40_li_tag_016();
+void test_chtml40_li_tag_017();
+void test_chtml40_li_tag_018();
void test_chtml40_menu_tag_001();
void test_chtml40_menu_tag_002();
CU_add_test(chtml40_suite, "test <li> type attribute 7." , test_chtml40_li_tag_011);
CU_add_test(chtml40_suite, "test <li> type attribute 8." , test_chtml40_li_tag_012);
CU_add_test(chtml40_suite, "test <li> type attribute 9." , test_chtml40_li_tag_013);
+ CU_add_test(chtml40_suite, "test <li> type attribute 10." , test_chtml40_li_tag_014);
+ CU_add_test(chtml40_suite, "test <li> type attribute 11." , test_chtml40_li_tag_015);
+ CU_add_test(chtml40_suite, "test <li> type attribute 12." , test_chtml40_li_tag_016);
+ CU_add_test(chtml40_suite, "test <li> type attribute 13." , test_chtml40_li_tag_017);
+ CU_add_test(chtml40_suite, "test <li> type attribute 14." , test_chtml40_li_tag_018);
CU_add_test(chtml40_suite, "test <menu>." , test_chtml40_menu_tag_001);
CU_add_test(chtml40_suite, "test <menu> 2." , test_chtml40_menu_tag_002);
#undef TEST_STRING
#undef RESULT_STRING
}
+void test_chtml40_li_tag_014()
+{
+#define TEST_STRING "<li type=\"disc\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"disc\">ハンカク"
+ 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_convert_chtml40(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ 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_chtml40_li_tag_015()
+{
+#define TEST_STRING "<li type=\"circle\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"circle\">ハンカク"
+ 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_convert_chtml40(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ 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_chtml40_li_tag_016()
+{
+#define TEST_STRING "<li type=\"square\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"square\">ハンカク"
+ 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_convert_chtml40(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ 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_chtml40_li_tag_017()
+{
+#define TEST_STRING "<li type=\"\">ハンカク</li>"
+#define RESULT_STRING "<li>ハンカク"
+ 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_convert_chtml40(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ 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_chtml40_li_tag_018()
+{
+#define TEST_STRING "<li type>ハンカク</li>"
+#define RESULT_STRING "<li>ハンカク"
+ 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_convert_chtml40(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ 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
+}
/*============================================================================*/
/* <MENU> */
/*============================================================================*/