public void testRenderParent() throws IOException { Scale scale = new Scale(shell, SWT.NONE); lca.renderInitialization(scale); Message message = Fixture.getProtocolMessage(); CreateOperation operation = message.findCreateOperation(scale); assertEquals(WidgetUtil.getId(scale.getParent()), operation.getParent()); }
public void testRenderCreate() throws IOException { Scale scale = new Scale(shell, SWT.NONE); lca.renderInitialization(scale); Message message = Fixture.getProtocolMessage(); CreateOperation operation = message.findCreateOperation(scale); assertEquals("rwt.widgets.Scale", operation.getType()); }
public void testRenderCreateWithHorizontal() throws IOException { Scale scale = new Scale(shell, SWT.HORIZONTAL); lca.renderInitialization(scale); Message message = Fixture.getProtocolMessage(); CreateOperation operation = message.findCreateOperation(scale); Object[] styles = operation.getStyles(); assertTrue(Arrays.asList(styles).contains("HORIZONTAL")); }