}
public void testConstructor5(TestHarness harness)
{
harness.checkPoint("(String, int, int, int)");
TextArea ta = new TextArea("ABC", 3, 7, TextArea.SCROLLBARS_VERTICAL_ONLY);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_VERTICAL_ONLY);
// try null
ta = new TextArea(null, 3, 7, TextArea.SCROLLBARS_VERTICAL_ONLY);
harness.check(ta.getText(), "");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_VERTICAL_ONLY);
// try negative rows
ta = new TextArea("ABC", -3, 7, TextArea.SCROLLBARS_VERTICAL_ONLY);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 0);
harness.check(ta.getColumns(), 7);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_VERTICAL_ONLY);
// try negative columns
ta = new TextArea("ABC", 3, -7, TextArea.SCROLLBARS_VERTICAL_ONLY);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 0);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_VERTICAL_ONLY);
// try bad scroll bar visibility
ta = new TextArea("ABC", 3, -7, 999);
harness.check(ta.getText(), "ABC");
harness.check(ta.isEditable());
harness.check(ta.getRows(), 3);
harness.check(ta.getColumns(), 0);
harness.check(ta.getScrollbarVisibility(), TextArea.SCROLLBARS_BOTH);
}