136137138139140141142143144145146
mw.attribute("true", true); assertOutput(" true=\"true\""); mw.attribute("false", false); assertOutput(" false=\"false\""); verifyControls(); }
154155156157158159160161162163164
IMarkupWriter mw = new MarkupWriterImpl("text/html", writer, filter); try { mw.attribute("true", true); unreachable(); } catch (IllegalStateException ex) { // Expected.
173174175176177178179180181182183
PrintWriter writer = newPrintWriter(); IMarkupWriter mw = new MarkupWriterImpl("text/html", writer, filter); mw.begin("span"); mw.attribute("width", "100%"); // Braces added by EchoMarkupFilter, to prove its there. assertOutput("<span width=\"{100%}\""); }
190191192193194195196197198199200
replayControls(); IMarkupWriter mw = new MarkupWriterImpl("text/html", writer, filter); mw.begin("span"); mw.attribute("width", null); // Braces added by EchoMarkupFilter, to prove its there. assertOutput("<span width=\"\"");
210211212213214215216217218219220
IMarkupWriter mw = new MarkupWriterImpl("text/html", writer, filter); try { mw.attribute("attribute", "value"); unreachable(); } catch (IllegalStateException ex) { // Expected.
229230231232233234235236237238239
PrintWriter writer = newPrintWriter(); IMarkupWriter mw = new MarkupWriterImpl("text/html", writer, filter); mw.begin("div"); mw.attribute("width", "100%"); mw.end(); assertOutput("<div width=\"{100%}\"></div>"); }
329330331332333334335336337338339
unreachable(); } catch (RedirectException e) { IMarkupWriter fakeWriter = builder.getComponentWriter("fakeComp"); fakeWriter.beginEmpty("div"); fakeWriter.attribute("id", "fakeComp"); builder.renderResponse(cycle); } verify();
96979899100101102103104105106
trainIsRewinding(cycle, false); form.setFormFieldUpdating(true); writer.beginEmpty("input"); writer.attribute("type", "image"); writer.attribute("name", "fred"); writer.attribute("src", "image-url"); writer.attribute("id", "fred");
979899100101102103104105106107
form.setFormFieldUpdating(true); writer.beginEmpty("input"); writer.attribute("type", "image"); writer.attribute("name", "fred"); writer.attribute("src", "image-url"); writer.attribute("id", "fred"); writer.closeTag();
9899100101102103104105106107108