212213214215216217218219220221222
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("disabled_option.txt")); verify(); }
247248249250251252253254255256257
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups.txt")); verify(); }
280281282283284285286287288289290
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.txt")); verify(); }
315316317318319320321322323324325
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_group_attributes.txt")); verify(); }
4546474849505152535455
component.injectValue("Fred\nBarney\rWilma\r\nBetty\nBam-Bam\n"); writer.element("div"); component.beginRender(writer); writer.end(); assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n" + "<div><p>Fred</p><p>Barney</p><p>Wilma</p><p>Betty</p><p>Bam-Bam</p></div>"); } }
108109110111112113114115116117118
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.txt")); verify(); }
5758596061626364656667
verify(); Element e = writer.getElement(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz\" id=\"fred\">link text</a>"); assertSame(map.get(e), invocation); }
141142143144145146147148149150151
writer.element("select"); select.options(writer); writer.end(); // fred will be selected, not barney, because the validation tracker // takes precendence. assertEquals(writer.toString(), read("current_selection_from_validation_tracker.txt"));
8990919293949596979899
verify(); Element e = writer.getElement(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz#wilma\" id=\"barney\">link text</a>"); assertSame(map.get(e), invocation); }
178179180181182183184185186187188
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.txt")); verify(); }