void test_xhtml_marquee_tag_016();
void test_xhtml_marquee_tag_017();
void test_xhtml_marquee_tag_018();
+void test_xhtml_marquee_tag_019();
+void test_xhtml_marquee_tag_020();
+void test_xhtml_marquee_tag_021();
void test_xhtml_meta_tag_001();
void test_xhtml_meta_tag_002();
CU_add_test(xhtml_suite, "test <marquee> 16." , test_xhtml_marquee_tag_016);
CU_add_test(xhtml_suite, "test <marquee> 17." , test_xhtml_marquee_tag_017);
CU_add_test(xhtml_suite, "test <marquee> 18." , test_xhtml_marquee_tag_018);
+ CU_add_test(xhtml_suite, "test <marquee> 19." , test_xhtml_marquee_tag_019);
+ CU_add_test(xhtml_suite, "test <marquee> 20." , test_xhtml_marquee_tag_020);
+ CU_add_test(xhtml_suite, "test <marquee> 21." , test_xhtml_marquee_tag_021);
/*=========================================================================*/
/* <meta> */
#undef TEST_STRING
#undef RESULT_STRING
}
+void test_xhtml_marquee_tag_019()
+{
+#define TEST_STRING "<marquee bgcolor=\"#ff0000\">ハンカク</marquee>"
+#define RESULT_STRING "<marquee bgcolor=\"#ff0000\">ハンカク</marquee>"
+ 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_marquee_tag_020()
+{
+#define TEST_STRING "<marquee bgcolor=\"\">ハンカク</marquee>"
+#define RESULT_STRING "<marquee>ハンカク</marquee>"
+ 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_marquee_tag_021()
+{
+#define TEST_STRING "<marquee bgcolor>ハンカク</marquee>"
+#define RESULT_STRING "<marquee>ハンカク</marquee>"
+ 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
+}
/*============================================================================*/
/* <META> */
/*============================================================================*/