180181182183184185186187188189190
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"));
215216217218219220221222223224225
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("output_with_raw_enabled.txt")); verify();
256257258259260261262263264265266
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_attributes.txt")); verify(); }
302303304305306307308309310311312
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("disabled_option.txt")); verify(); }
337338339340341342343344345346347
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups.txt")); verify(); }
370371372373374375376377378379380
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_groups_precede_ungroup_options.txt")); verify(); }
404405406407408409410411412413414
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("option_group_attributes.txt")); verify(); }
924925926927928929930931932933934
if (i != 2) { writer.write(String.valueOf(i)); } writer.end(); if (e.getChildren().isEmpty()) { e.remove(); }
932933934935936937938939940941942
{ e.remove(); } } writer.end(); assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n" + "<ul><li>0</li><li>1</li><li>3</li></ul>"); } }
881882883884885886887888889890891