1 23 24 package org.enhydra.xml.xmlc.html; 25 26 import java.io.File ; 27 28 import org.enhydra.xml.xmlc.driver.ExecXmlc; 29 import org.enhydra.xml.xmlc.driver.XmlcBasicTest; 30 31 35 public class HtmlBasicTest extends XmlcBasicTest { 36 37 private String fHtmlEncoding; 38 39 42 public HtmlBasicTest(HtmlTestCaseBase testCase, 43 File inputDoc) { 44 super(testCase, "html", inputDoc); 45 } 46 47 48 public void setHtmlEncoding(String encoding) { 49 fHtmlEncoding = encoding; 50 } 51 52 55 public void addCyberStudioTags() { 56 addBoth(ExecXmlc.OPT_ADD_TAG_SET); 57 addBoth(ExecXmlc.CYBERSTUDIO_TAG_SET); 58 } 59 60 64 protected void addStdOpts(ExecXmlc execXmlc) { 65 if (fHtmlEncoding != null) { 66 execXmlc.addOpt(ExecXmlc.OPT_HTML_ENCODING, fHtmlEncoding); 67 } 68 } 69 } 70 | Popular Tags |