@Test
public void clearsTextLayout() throws Exception
{
assumeTrue(TestUtil.notHeadless());
MockTextInputPanel panel = new MockTextInputPanel();
MockParentPanel parent = new MockParentPanel();
parent.add(panel);
Layouts.on(panel, TextInputPanelLayout.instance);
assertEquals(true, panel.mockModel.clearLayoutsCalled);
}