CU_add_test(xhtml_suite, "test <h5> with align attribute(center).", test_xhtml_h5_tag_009);
CU_add_test(xhtml_suite, "test <h5> with align attribute(unkown).", test_xhtml_h5_tag_010);
-#if 0
+ /*=========================================================================*/
+ /* <h6> */
+ /*=========================================================================*/
CU_add_test(xhtml_suite, "test <h6>.", test_xhtml_h6_tag_001);
CU_add_test(xhtml_suite, "test <h6> with value.", test_xhtml_h6_tag_002);
CU_add_test(xhtml_suite, "test <h6> with value(japanese).", test_xhtml_h6_tag_003);
CU_add_test(xhtml_suite, "test <h6> with align attribute(center).", test_xhtml_h6_tag_009);
CU_add_test(xhtml_suite, "test <h6> with align attribute(unkown).", test_xhtml_h6_tag_010);
+#if 0
CU_add_test(xhtml_suite, "test <hr>.", test_xhtml_hr_tag_001);
CU_add_test(xhtml_suite, "test <hr />.", test_xhtml_hr_tag_002);
CU_add_test(xhtml_suite, "test <hr align> with no value.", test_xhtml_hr_tag_003);
#undef TEST_STRING
#undef RESULT_STRING
}
-/* KONNO */
void test_xhtml_h6_tag_001()
{
-#define TEST_STRING "<html><head></head><body><h6></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6></h6></body></html>"
+#define TEST_STRING "<h6></h6>"
+#define RESULT_STRING "<h6></h6>"
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_h6_tag_002()
{
-#define TEST_STRING "<html><head></head><body><h6>abc</h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6>abc</h6></body></html>"
+#define TEST_STRING "<h6>abc</h6>"
+#define RESULT_STRING "<h6>abc</h6>"
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_h6_tag_003()
{
-#define TEST_STRING "<html><head></head><body><h6>亀さん</h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6>亀さん</h6></body></html>"
+#define TEST_STRING "<h6>亀さん</h6>"
+#define RESULT_STRING "<h6>亀さん</h6>"
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_h6_tag_004()
{
-#define TEST_STRING "<html><head></head><body><h6>ハンカク</h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6>ハンカク</h6></body></html>"
+#define TEST_STRING "<h6>ハンカク</h6>"
+#define RESULT_STRING "<h6>ハンカク</h6>"
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_h6_tag_005()
{
-#define TEST_STRING "<html><head></head><body><h6 align></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6></h6></body></html>"
+#define TEST_STRING "<h6 align></h6>"
+#define RESULT_STRING "<h6></h6>"
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_h6_tag_006()
{
-#define TEST_STRING "<html><head></head><body><h6 align=\"\"></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6></h6></body></html>"
+#define TEST_STRING "<h6 align=\"\"></h6>"
+#define RESULT_STRING "<h6></h6>"
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_h6_tag_007()
{
-#define TEST_STRING "<html><head></head><body><h6 align=\"left\"></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6 align=\"left\"></h6></body></html>"
+#define TEST_STRING "<h6 align=\"left\"></h6>"
+#define RESULT_STRING "<h6 style=\"text-align:left\"></h6>"
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_h6_tag_008()
{
-#define TEST_STRING "<html><head></head><body><h6 align=\"right\"></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6 align=\"right\"></h6></body></html>"
+#define TEST_STRING "<h6 align=\"right\"></h6>"
+#define RESULT_STRING "<h6 style=\"text-align:right\"></h6>"
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_h6_tag_009()
{
-#define TEST_STRING "<html><head></head><body><h6 align=\"center\"></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6 align=\"center\"></h6></body></html>"
+#define TEST_STRING "<h6 align=\"center\"></h6>"
+#define RESULT_STRING "<h6 style=\"text-align:center\"></h6>"
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_h6_tag_010()
{
-#define TEST_STRING "<html><head></head><body><h6 align=\"unkown\"></h6></body></html>"
-#define RESULT_STRING "<html><head></head><body><h6></h6></body></html>"
+#define TEST_STRING "<h6 align=\"unkown\"></h6>"
+#define RESULT_STRING "<h6></h6>"
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 */
/*============================================================================*/
/* <HR> */
/*============================================================================*/