93949596979899100101102103
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.html")); } @Test
118119120121122123124125126127128
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.html")); } @Test
143144145146147148149150151152153
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("disabled_option.html")); }
170171172173174175176177178179180
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups.html")); } @Test
194195196197198199200201202203204
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.html")); } @Test
219220221222223224225226227228
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_group_attributes.html")); } }
109110111112113114115116117118119
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.txt")); verify(); }
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("blank_label.txt")); verify(); }
176177178179180181182183184185186
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"));
220221222223224225226227228229230
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.txt")); verify(); }