use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class ImageTest method setUp.
@Before
public void setUp() throws Exception {
image = new Image();
propPanel = new PropPanel(new FakePropProxy());
new FakeScene().add(propPanel);
image.install(new CastEvent(propPanel));
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class RadioButtonTest method setUp.
@Before
public void setUp() throws Exception {
button = new RadioButton();
propPanel = new PropPanel(new FakePropProxy());
new FakeScene().add(propPanel);
button.install(new CastEvent(propPanel));
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class TextInputPanelTest method requiresLayoutAfterConsumableSizeChanges.
@Test
public void requiresLayoutAfterConsumableSizeChanges() throws Exception {
FakeScene root = new FakeScene();
root.add(panel);
panel.getRoot();
root.resetLayoutRequired();
panel.consumableAreaChanged();
assertEquals(true, root.isLayoutRequired());
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class ButtonPanelTest method setUp.
@Before
public void setUp() throws Exception {
panel = new ButtonPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
}
use of limelight.ui.model.FakeScene in project limelight by slagyr.
the class TextAreaPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextAreaPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
root.setStage(new MockStage());
graphics = new MockGraphics();
model = panel.getModel();
model.setText("Some Text");
}
Aggregations