void test_xhtml_input_tag_003();
void test_xhtml_input_tag_004();
void test_xhtml_input_tag_005();
+void test_xhtml_input_tag_005_1();
void test_xhtml_input_tag_006();
void test_xhtml_input_tag_007();
void test_xhtml_input_tag_008();
void test_xhtml_input_tag_035();
void test_xhtml_input_tag_036();
void test_xhtml_input_tag_037();
+void test_xhtml_input_tag_037_1();
void test_xhtml_input_tag_038();
void test_xhtml_input_tag_039();
void test_xhtml_input_tag_040();
CU_add_test(xhtml_suite, "test <img alt> with japanese value." , test_xhtml_img_tag_036);
CU_add_test(xhtml_suite, "test <img alt> with japanese-hankaku value." , test_xhtml_img_tag_037);
-#if 0
+ /*=========================================================================*/
+ /* <input> */
+ /*=========================================================================*/
CU_add_test(xhtml_suite, "test <input>." , test_xhtml_input_tag_001);
CU_add_test(xhtml_suite, "test <input type>." , test_xhtml_input_tag_002);
CU_add_test(xhtml_suite, "test <input type> with void value." , test_xhtml_input_tag_003);
CU_add_test(xhtml_suite, "test <input type> with value(text)." , test_xhtml_input_tag_004);
CU_add_test(xhtml_suite, "test <input type> with value(password)." , test_xhtml_input_tag_005);
+ CU_add_test(xhtml_suite, "test <input type> with value(password) 2." , test_xhtml_input_tag_005_1);
CU_add_test(xhtml_suite, "test <input type> with value(checkbox)." , test_xhtml_input_tag_006);
CU_add_test(xhtml_suite, "test <input type> with value(radio)." , test_xhtml_input_tag_007);
CU_add_test(xhtml_suite, "test <input type> with value(hidden)." , test_xhtml_input_tag_008);
CU_add_test(xhtml_suite, "test <input istyle> 2." , test_xhtml_input_tag_035);
CU_add_test(xhtml_suite, "test <input istyle> 3." , test_xhtml_input_tag_036);
CU_add_test(xhtml_suite, "test <input istyle> 4." , test_xhtml_input_tag_037);
+ CU_add_test(xhtml_suite, "test <input istyle> 4-1." , test_xhtml_input_tag_037_1);
CU_add_test(xhtml_suite, "test <input istyle> 5." , test_xhtml_input_tag_038);
CU_add_test(xhtml_suite, "test <input istyle> 6." , test_xhtml_input_tag_039);
CU_add_test(xhtml_suite, "test <input istyle> 7." , test_xhtml_input_tag_040);
CU_add_test(xhtml_suite, "test <input istyle> 12." , test_xhtml_input_tag_045);
CU_add_test(xhtml_suite, "test <input istyle> 13." , test_xhtml_input_tag_046);
CU_add_test(xhtml_suite, "test <input istyle> 14." , test_xhtml_input_tag_047);
+#if 0
+ /*=========================================================================*/
+ /* <li> */
+ /*=========================================================================*/
CU_add_test(xhtml_suite, "test <li>." , test_xhtml_li_tag_001);
CU_add_test(xhtml_suite, "test <li> with alphabetic value." , test_xhtml_li_tag_002);
CU_add_test(xhtml_suite, "test <li> with japanese value." , test_xhtml_li_tag_003);
static chxjconvrule_entry entries;
memset(&entries, 0, sizeof(chxjconvrule_entry));
entries.encoding = apr_pstrdup(r->pool, "UTF8");
+ entries.pc_flag = 0;
return &entries;
}
#undef TEST_STRING
#undef RESULT_STRING
}
-/* KONNO */
/*============================================================================*/
/* <INPUT> */
/*============================================================================*/
void test_xhtml_input_tag_001()
{
-#define TEST_STRING "<html><head></head><body><input></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input>"
+#define RESULT_STRING "<input />"
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_input_tag_002()
{
-#define TEST_STRING "<html><head></head><body><input type></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input type>"
+#define RESULT_STRING "<input />"
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_input_tag_003()
{
-#define TEST_STRING "<html><head></head><body><input type=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input type=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_004()
{
-#define TEST_STRING "<html><head></head><body><input type=\"text\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"text\"></body></html>"
+#define TEST_STRING "<input type=\"text\">"
+#define RESULT_STRING "<input type=\"text\" />"
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_input_tag_005()
{
-#define TEST_STRING "<html><head></head><body><input type=\"password\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"password\"></body></html>"
+#define TEST_STRING "<input type=\"password\">"
+#define RESULT_STRING "<input type=\"password\" FORMAT=\"*N\" />"
+ 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);
+ entry.pc_flag = 0;
+ destlen = sizeof(TEST_STRING)-1;
+
+ 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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_input_tag_005_1()
+{
+#define TEST_STRING "<input type=\"password\">"
+#define RESULT_STRING "<input type=\"password\" />"
char *ret;
char *tmp;
device_table spec;
COOKIE_INIT(cookie);
SPEC_INIT(spec);
+ entry.pc_flag = 1;
destlen = sizeof(TEST_STRING)-1;
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_input_tag_006()
{
-#define TEST_STRING "<html><head></head><body><input type=\"checkbox\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"checkbox\"></body></html>"
+#define TEST_STRING "<input type=\"checkbox\">"
+#define RESULT_STRING "<input type=\"checkbox\" />"
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_input_tag_007()
{
-#define TEST_STRING "<html><head></head><body><input type=\"radio\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"radio\"></body></html>"
+#define TEST_STRING "<input type=\"radio\">"
+#define RESULT_STRING "<input type=\"radio\" />"
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_input_tag_008()
{
-#define TEST_STRING "<html><head></head><body><input type=\"hidden\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"hidden\"></body></html>"
+#define TEST_STRING "<input type=\"hidden\">"
+#define RESULT_STRING "<input type=\"hidden\" />"
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_input_tag_009()
{
-#define TEST_STRING "<html><head></head><body><input type=\"submit\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"submit\"></body></html>"
+#define TEST_STRING "<input type=\"submit\">"
+#define RESULT_STRING "<input type=\"submit\" />"
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_input_tag_010()
{
-#define TEST_STRING "<html><head></head><body><input type=\"reset\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input type=\"reset\"></body></html>"
+#define TEST_STRING "<input type=\"reset\">"
+#define RESULT_STRING "<input type=\"reset\" />"
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_input_tag_011()
{
-#define TEST_STRING "<html><head></head><body><input type=\"unknown\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input type=\"unknown\">"
+#define RESULT_STRING "<input />"
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_input_tag_012()
{
-#define TEST_STRING "<html><head></head><body><input name></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input name>"
+#define RESULT_STRING "<input />"
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_input_tag_013()
{
-#define TEST_STRING "<html><head></head><body><input name=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input name=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_014()
{
-#define TEST_STRING "<html><head></head><body><input name=\"a\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input name=\"a\"></body></html>"
+#define TEST_STRING "<input name=\"a\">"
+#define RESULT_STRING "<input name=\"a\" />"
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_input_tag_015()
{
-#define TEST_STRING "<html><head></head><body><input name=\"亀\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input name=\"亀\"></body></html>"
+#define TEST_STRING "<input name=\"亀\">"
+#define RESULT_STRING "<input name=\"亀\" />"
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_input_tag_016()
{
-#define TEST_STRING "<html><head></head><body><input name=\"ハンカク\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input name=\"ハンカク\"></body></html>"
+#define TEST_STRING "<input name=\"ハンカク\">"
+#define RESULT_STRING "<input name=\"ハンカク\" />"
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_input_tag_017()
{
-#define TEST_STRING "<html><head></head><body><input value></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input value>"
+#define RESULT_STRING "<input />"
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_input_tag_018()
{
-#define TEST_STRING "<html><head></head><body><input value=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input value=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_019()
{
-#define TEST_STRING "<html><head></head><body><input value=\"a\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input value=\"a\"></body></html>"
+#define TEST_STRING "<input value=\"a\">"
+#define RESULT_STRING "<input value=\"a\" />"
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_input_tag_020()
{
-#define TEST_STRING "<html><head></head><body><input value=\"亀\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input value=\"亀\"></body></html>"
+#define TEST_STRING "<input value=\"亀\">"
+#define RESULT_STRING "<input value=\"亀\" />"
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_input_tag_021()
{
-#define TEST_STRING "<html><head></head><body><input value=\"ハンカク\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input value=\"ハンカク\"></body></html>"
+#define TEST_STRING "<input value=\"ハンカク\">"
+#define RESULT_STRING "<input value=\"ハンカク\" />"
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_input_tag_022()
{
-#define TEST_STRING "<html><head></head><body><input size></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input size>"
+#define RESULT_STRING "<input />"
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_input_tag_023()
{
-#define TEST_STRING "<html><head></head><body><input size=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input size=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_024()
{
-#define TEST_STRING "<html><head></head><body><input size=\"a\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input size=\"a\"></body></html>"
+#define TEST_STRING "<input size=\"a\">"
+#define RESULT_STRING "<input size=\"a\" />"
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_input_tag_025()
{
-#define TEST_STRING "<html><head></head><body><input size=\"1\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input size=\"1\"></body></html>"
+#define TEST_STRING "<input size=\"1\">"
+#define RESULT_STRING "<input size=\"1\" />"
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_input_tag_026()
{
-#define TEST_STRING "<html><head></head><body><input maxlength></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input maxlength>"
+#define RESULT_STRING "<input />"
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_input_tag_027()
{
-#define TEST_STRING "<html><head></head><body><input maxlength=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input maxlength=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_028()
{
-#define TEST_STRING "<html><head></head><body><input maxlength=\"a\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input maxlength=\"0\"></body></html>"
+#define TEST_STRING "<input maxlength=\"a\">"
+#define RESULT_STRING "<input />"
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_input_tag_029()
{
-#define TEST_STRING "<html><head></head><body><input maxlength=\"1\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input maxlength=\"1\"></body></html>"
+#define TEST_STRING "<input maxlength=\"1\">"
+#define RESULT_STRING "<input FORMAT=\"1m\" />"
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_input_tag_030()
{
-#define TEST_STRING "<html><head></head><body><input checked></body></html>"
-#define RESULT_STRING "<html><head></head><body><input checked></body></html>"
+#define TEST_STRING "<input checked>"
+#define RESULT_STRING "<input checked=\"checked\" />"
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_input_tag_031()
{
-#define TEST_STRING "<html><head></head><body><input accesskey></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input accesskey>"
+#define RESULT_STRING "<input />"
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_input_tag_032()
{
-#define TEST_STRING "<html><head></head><body><input accesskey=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input accesskey=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_033()
{
-#define TEST_STRING "<html><head></head><body><input accesskey=\"1\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input accesskey=\"1\"></body></html>"
+#define TEST_STRING "<input accesskey=\"1\">"
+#define RESULT_STRING "<input accesskey=\"1\" />"
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_input_tag_034()
{
-#define TEST_STRING "<html><head></head><body><input istyle></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input istyle>"
+#define RESULT_STRING "<input />"
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_input_tag_035()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input istyle=\"\">"
+#define RESULT_STRING "<input />"
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_input_tag_036()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"0\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input istyle=\"0\">"
+#define RESULT_STRING "<input />"
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_input_tag_037()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"1\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"1\"></body></html>"
+#define TEST_STRING "<input istyle=\"1\">"
+#define RESULT_STRING "<input FORMAT=\"*M\" />"
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);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
+void test_xhtml_input_tag_037_1()
+{
+#define TEST_STRING "<input istyle=\"1\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10M\" />"
+ 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_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_input_tag_038()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"2\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"2\"></body></html>"
+#define TEST_STRING "<input istyle=\"2\">"
+#define RESULT_STRING "<input FORMAT=\"*M\" />"
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_input_tag_039()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"3\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"3\"></body></html>"
+#define TEST_STRING "<input istyle=\"3\">"
+#define RESULT_STRING "<input FORMAT=\"*m\" />"
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_input_tag_040()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"4\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"4\"></body></html>"
+#define TEST_STRING "<input istyle=\"4\">"
+#define RESULT_STRING "<input FORMAT=\"*N\" />"
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_input_tag_041()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"5\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input istyle=\"5\">"
+#define RESULT_STRING "<input />"
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_input_tag_042()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"a\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input></body></html>"
+#define TEST_STRING "<input istyle=\"a\">"
+#define RESULT_STRING "<input />"
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_input_tag_043()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"1\" maxlength=\"10\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"1\" maxlength=\"20\"></body></html>"
+#define TEST_STRING "<input istyle=\"1\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10M\" />"
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_input_tag_044()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"2\" maxlength=\"10\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"2\" maxlength=\"10\"></body></html>"
+#define TEST_STRING "<input istyle=\"2\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10M\" />"
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_input_tag_045()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"3\" maxlength=\"10\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"3\" maxlength=\"10\"></body></html>"
+#define TEST_STRING "<input istyle=\"3\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10m\" />"
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_input_tag_046()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"4\" maxlength=\"10\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input istyle=\"4\" maxlength=\"10\"></body></html>"
+#define TEST_STRING "<input istyle=\"4\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10N\" />"
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_input_tag_047()
{
-#define TEST_STRING "<html><head></head><body><input istyle=\"a\" maxlength=\"10\"></body></html>"
-#define RESULT_STRING "<html><head></head><body><input maxlength=\"10\"></body></html>"
+#define TEST_STRING "<input istyle=\"a\" maxlength=\"10\">"
+#define RESULT_STRING "<input FORMAT=\"10m\" />"
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 */
/*============================================================================*/
/* <LI> */
/*============================================================================*/