1 23 24 package org.enhydra.xml.xmlc.html; 25 import java.lang.reflect.Method ; 26 27 import junit.framework.Test; 28 29 import org.enhydra.xml.driver.TestDiff; 30 import org.enhydra.xml.xmlc.driver.ExecXmlc; 31 32 36 public class CornerCasesTests extends HtmlTestCaseBase { 37 38 public static Test suite() { 39 return createSuite(CornerCasesTests.class, null); 40 } 41 42 43 public CornerCasesTests(Method method) { 44 super(method); 45 } 46 47 51 public void test1() { 52 HtmlBasicTest test = createTest("testPage1.html"); 53 test.addOptionFile(getInputFile("testPage1.xmlc")); 54 test.basicTest(); 55 } 56 57 60 public void test2() { 61 HtmlBasicTest test = createTest("testPage2.html"); 62 test.basicTest(); 63 } 64 65 68 public void test3() { 69 HtmlBasicTest test = createTest("Form2.html"); 70 test.basicTest(); 71 } 72 73 76 public void test4() { 77 HtmlBasicTest test = createTest("testPage3.html"); 78 test.basicTest(); 79 } 80 81 84 public void test5() { 85 if (!fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 87 HtmlBasicTest test = createTest("formWithPs.html"); 88 test.basicTest(); 89 } 90 } 91 92 93 96 public void test6() { 97 HtmlBasicTest test = createTest("formWithBRs.html"); 98 test.basicTest(); 99 } 100 101 104 public void test8() { 105 HtmlBasicTest test = createTest("testPage4.html"); 106 test.basicTest(); 107 } 108 109 112 public void test9() { 113 HtmlBasicTest test = createTest("iframe.html"); 114 test.basicTest(); 115 } 116 117 120 public void test10() { 121 HtmlBasicTest test = createTest("DeleteByClass.html"); 122 test.addFirst(ExecXmlc.OPT_DELETE_CLASS, "deleteMe"); 123 test.basicTest(); 124 } 125 126 129 public void test11() { 130 HtmlBasicTest test = createTest("testPage5.html"); 131 test.basicTest(); 132 } 133 134 137 public void test12() { 138 HtmlBasicTest test = createTest("testPage6.html"); 139 test.basicTest(); 140 141 TestDiff differ = getDiffer(); 143 differ.fgrepMustFind("value=\"æ, ø and å\"", 144 test.getGenerateFile()); 145 differ.fgrepMustFind("value=\"æ, ø and å\"", 146 test.getRegenerateFile()); 147 } 148 149 153 public void test13() { 154 if (!fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 156 HtmlBasicTest test = createTest("namespace-like.html"); 157 test.basicTest(); 158 } 159 } 160 161 164 public void test14() { 165 HtmlBasicTest test = createTest("namespace-like2.html"); 166 test.addOptionFile(getInputFile("namespace-like2.xmlc")); 167 if (fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 168 test.setCompileShouldFail(); 170 } 171 test.basicTest(); 172 } 173 174 179 public void test15() { 180 HtmlBasicTest test = createTest("style1.html"); 181 test.basicTest(); 182 } 183 184 187 public void test16() { 188 HtmlBasicTest test = createTest("style2.html"); 189 test.basicTest(); 190 } 191 194 public void test17() { 195 HtmlBasicTest test = createTest("space-bug1.html"); 196 test.basicTest(); 197 } 198 199 202 public void test18() { 203 HtmlBasicTest test = createTest("href-spaces.html"); 204 test.basicTest(); 205 } 206 207 211 public void test19() { 212 HtmlBasicTest test = createTest("caused-hang.html"); 213 if (fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 214 test.setCompileShouldFail(); 215 } 216 test.basicTest(); 217 } 218 219 222 public void test20() { 223 HtmlBasicTest test = createTest("javascript2.html"); 224 test.addCyberStudioTags(); 225 test.basicTest(); 226 } 227 } 228 | Popular Tags |