175176177178179180181182183184185
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"));
218219220221222223224225226227228
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.txt")); verify(); }
264265266267268269270271272273274
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("disabled_option.txt")); verify(); }
299300301302303304305306307308309
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups.txt")); verify(); }
332333334335336337338339340341342
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.txt")); verify(); }
366367368369370371372373374375376
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_group_attributes.txt")); verify(); }
884885886887888889890891892893894
if (i != 2) { writer.write(String.valueOf(i)); } writer.end(); if (e.getChildren().isEmpty()) { e.remove(); }
892893894895896897898899900901902
{ e.remove(); } } writer.end(); assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n" + "<ul><li>0</li><li>1</li><li>3</li></ul>"); } }
117118119120121122123124125126127
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.txt")); verify(); }
149150151152153154155156157158159
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("blank_label.txt")); verify(); }