void test_xhtml_li_tag_011();
void test_xhtml_li_tag_012();
void test_xhtml_li_tag_013();
+void test_xhtml_li_tag_014();
+void test_xhtml_li_tag_015();
+void test_xhtml_li_tag_016();
+void test_xhtml_li_tag_017();
+void test_xhtml_li_tag_018();
+void test_xhtml_li_tag_019();
void test_xhtml_menu_tag_001();
void test_xhtml_menu_tag_002();
CU_add_test(xhtml_suite, "test <li> type attribute 7." , test_xhtml_li_tag_011);
CU_add_test(xhtml_suite, "test <li> type attribute 8." , test_xhtml_li_tag_012);
CU_add_test(xhtml_suite, "test <li> type attribute 9." , test_xhtml_li_tag_013);
+ CU_add_test(xhtml_suite, "test <li> type attribute 10." , test_xhtml_li_tag_014);
+ CU_add_test(xhtml_suite, "test <li> type attribute 11." , test_xhtml_li_tag_015);
+ CU_add_test(xhtml_suite, "test <li> type attribute 12." , test_xhtml_li_tag_016);
+ CU_add_test(xhtml_suite, "test <li> type attribute 13." , test_xhtml_li_tag_017);
+ CU_add_test(xhtml_suite, "test <li> type attribute 14." , test_xhtml_li_tag_018);
+ CU_add_test(xhtml_suite, "test <li> type attribute 15." , test_xhtml_li_tag_019);
/*=========================================================================*/
/* <menu> */
#undef TEST_STRING
#undef RESULT_STRING
}
+void test_xhtml_li_tag_014()
+{
+#define TEST_STRING "<li type=\"disc\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"disc\">ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_li_tag_015()
+{
+#define TEST_STRING "<li type=\"circle\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"circle\">ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_li_tag_016()
+{
+#define TEST_STRING "<li type=\"square\">ハンカク</li>"
+#define RESULT_STRING "<li type=\"square\">ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_li_tag_017()
+{
+#define TEST_STRING "<li type=\"unknown\">ハンカク</li>"
+#define RESULT_STRING "<li>ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_li_tag_018()
+{
+#define TEST_STRING "<li type=\"\">ハンカク</li>"
+#define RESULT_STRING "<li>ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_li_tag_019()
+{
+#define TEST_STRING "<li type>ハンカク</li>"
+#define RESULT_STRING "<li>ハンカク</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_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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
/*============================================================================*/
/* <MENU> */
/*============================================================================*/