225226227228229230231232233234235
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.txt")); verify(); }
271272273274275276277278279280281
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("disabled_option.txt")); verify(); }
967968969970971972973974975976977
writer.element("html"); for(String element : voidElements) { writer.element(element); writer.end(); } writer.end(); assertEquals(writer.toString(),
970971972973974975976977978979980
{ writer.element(element); writer.end(); } writer.end(); assertEquals(writer.toString(), "<html><area><base><br><col><command><embed><hr><img><input><keygen><link><meta><param><source><track><wbr></html>"); } }
306307308309310311312313314315316
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups.txt")); verify(); }
339340341342343344345346347348349
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.txt")); verify(); }
373374375376377378379380381382383
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_group_attributes.txt")); verify(); }
5758596061626364656667
verify(); Element e = writer.getElement(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz\">link text</a>"); assertSame(map.get(e), invocation); }
8990919293949596979899
verify(); Element e = writer.getElement(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz#wilma\">link text</a>"); assertSame(map.get(e), invocation); }
109110111112113114115116117118119
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.txt")); verify(); }