RootPanel.get().remove(richTextArea);
}
public void testFormatAfterAttach() {
final RichTextArea area = new RichTextArea();
BasicFormatter formatter = area.getBasicFormatter();
RootPanel.get().add(area);
if (formatter != null) {
try {
formatter.toggleBold();
if (!GWT.isScript()) {
fail("Expected AssertionError");
}
} catch (AssertionError e) {
// Expected because the iframe is not initialized