*/
protected void checkTextInputValidation(
final String format, final String expectedEmptyOk,
final String expectedFormat) {
StrictStyledDOMHelper helper = new StrictStyledDOMHelper();
XFTextInputAttributes attributes = new XFTextInputAttributes();
String css;
if (format == null) {
css = "";
} else {
css = "mcs-input-format:\"" + format + "\"";
}
attributes.setStyles(StylesBuilder.getCompleteStyles(
css));
Element element = domFactory.createElement("input");
protocol.addTextInputValidation(element, attributes);
String output = helper.render(element);
String expectedMarkup = "<input";
if (expectedEmptyOk != null) {
expectedMarkup += " emptyok=\"" + expectedEmptyOk + "\"";
}
if (format != null) {