OSDN Git Service

* Added test code of the <h2> tag 5 for au XHTML converter.
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Mon, 14 Apr 2008 12:25:26 +0000 (12:25 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Mon, 14 Apr 2008 12:25:26 +0000 (12:25 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2229 1a406e8e-add9-4483-a2c8-d8cac5b7c224

test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c

index 3c4e4d8..b3a9455 100644 (file)
@@ -559,8 +559,8 @@ main()
   CU_add_test(xhtml_suite, "test <h2> with value.",                             test_xhtml_h2_tag_002);
   CU_add_test(xhtml_suite, "test <h2> with value(japanese).",                   test_xhtml_h2_tag_003);
   CU_add_test(xhtml_suite, "test <h2> with value(japanese-hankaku).",           test_xhtml_h2_tag_004);
-#if 0
   CU_add_test(xhtml_suite, "test <h2> with align attribute(non).",              test_xhtml_h2_tag_005);
+#if 0
   CU_add_test(xhtml_suite, "test <h2> with align attribute(void).",             test_xhtml_h2_tag_006);
   CU_add_test(xhtml_suite, "test <h2> with align attribute(left).",             test_xhtml_h2_tag_007);
   CU_add_test(xhtml_suite, "test <h2> with align attribute(right).",            test_xhtml_h2_tag_008);
@@ -3506,11 +3506,10 @@ void test_xhtml_h2_tag_004()
 #undef TEST_STRING
 #undef RESULT_STRING
 }
-/* KONNO */
 void test_xhtml_h2_tag_005() 
 {
-#define  TEST_STRING "<html><head></head><body><h2 align></h2></body></html>"
-#define  RESULT_STRING "<html><head></head><body><h2></h2></body></html>"
+#define  TEST_STRING "<h2 align></h2>"
+#define  RESULT_STRING "<h2></h2>"
   char  *ret;
   char  *tmp;
   device_table spec;
@@ -3527,6 +3526,7 @@ void test_xhtml_h2_tag_005()
   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);
@@ -3535,6 +3535,7 @@ void test_xhtml_h2_tag_005()
 #undef TEST_STRING
 #undef RESULT_STRING
 }
+/* KONNO */
 void test_xhtml_h2_tag_006() 
 {
 #define  TEST_STRING "<html><head></head><body><h2 align=\"\"></h2></body></html>"