예제 #1
0
  @Test
  public void testRenderInitialTextLimit() throws IOException {
    lca.render(combo);

    Message message = Fixture.getProtocolMessage();
    CreateOperation operation = message.findCreateOperation(combo);
    assertTrue(operation.getPropertyNames().indexOf("textLimit") == -1);
  }
예제 #2
0
  @Test
  public void testRenderInitialItemHeight() throws IOException {
    lca.render(combo);

    Message message = Fixture.getProtocolMessage();
    CreateOperation operation = message.findCreateOperation(combo);
    assertTrue(operation.getPropertyNames().contains("itemHeight"));
  }
예제 #3
0
  @Test
  public void testRenderEditable_ReadOnly() throws IOException {
    Combo combo = new Combo(shell, SWT.READ_ONLY);

    lca.render(combo);

    Message message = Fixture.getProtocolMessage();
    CreateOperation operation = message.findCreateOperation(combo);
    assertEquals(Boolean.FALSE, operation.getProperty("editable"));
  }