use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class LayoutTest method addChildWithSize.
private PropPanel addChildWithSize(ParentPanelBase parent, String width, String height) {
PropPanel panel = new PropPanel(new FakePropProxy());
panel.getStyle().setWidth(width);
panel.getStyle().setHeight(height);
parent.add(panel);
return panel;
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class LayoutTest method autoSizingWithNoChildrenAndScrollBars.
@Test
public void autoSizingWithNoChildrenAndScrollBars() throws Exception {
PropPanel panel = new PropPanel(new FakePropProxy());
parent.add(panel);
panel.getStyle().setWidth("auto");
panel.getStyle().setHeight("auto");
panel.getStyle().setScrollbars("on");
Layouts.on(root);
assertEquals(0, panel.getWidth());
assertEquals(0, panel.getHeight());
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method propWithIdIsIndexWhenAddedToScene.
@Test
public void propWithIdIsIndexWhenAddedToScene() throws Exception {
setupIlluminatedScene();
PropPanel panel = new PropPanel(new FakePropProxy(), Util.toMap("id", "some id"));
root.add(panel);
assertSame(panel, root.find("some id"));
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method propTreesAreIndexedWhenAddedAndUnindexedWhenRemoved.
@Test
public void propTreesAreIndexedWhenAddedAndUnindexedWhenRemoved() throws Exception {
setupIlluminatedScene();
PropPanel parent = new PropPanel(new FakePropProxy(), Util.toMap("id", "parent"));
PropPanel child = new PropPanel(new FakePropProxy(), Util.toMap("id", "child"));
parent.add(child);
root.add(parent);
assertSame(parent, root.find("parent"));
assertSame(child, root.find("child"));
root.remove(parent);
assertEquals(null, root.find("parent"));
assertEquals(null, root.find("child"));
}
use of limelight.model.api.FakePropProxy in project limelight by slagyr.
the class ScenePanelTest method sceneGetLoaderFromOptions.
@Test
public void sceneGetLoaderFromOptions() throws Exception {
root.setProduction(new FakeProduction("test_prod"));
assertEquals("test_prod", root.getPath());
root = new ScenePanel(new FakePropProxy(), new FakePlayerRecruiter());
root.setProduction(new FakeProduction("/test_prod"));
root.addOptions(Util.toMap("path", "some/path"));
assertEquals("/test_prod/some/path", root.getPath());
}
Aggregations