Examples of keyDown()


Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

      // use exactly "second"
      comboText.setText("second");
      assertEquals(1, comboTable.getItemCount());
      assertEquals(-1, comboTable.getSelectionIndex());
      // apply selection
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('second')"));
    } finally {
      propertyTable.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

          // drop-down in async
          waitEventLoop(0);
          assertTrue(combo.isDroppedDown());
          // animate
          EventSender eventSender = new EventSender(comboText);
          eventSender.keyDown(SWT.ESC);
          combo.setSelectionText("green");
          eventSender.keyDown(SWT.CR);
        }
      } finally {
        propertyTable.dispose();
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

          assertTrue(combo.isDroppedDown());
          // animate
          EventSender eventSender = new EventSender(comboText);
          eventSender.keyDown(SWT.ESC);
          combo.setSelectionText("green");
          eventSender.keyDown(SWT.CR);
        }
      } finally {
        propertyTable.dispose();
      }
      assertEquals(getSource(".style {", "  color: green;", "}"), getFileContent(styleFile));
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

      assertEquals(1, comboTable.getSelectionIndex());
      // move selection up/down
      {
        EventSender eventSender = new EventSender(comboText);
        // 0
        eventSender.keyDown(SWT.ARROW_UP);
        assertEquals(0, comboTable.getSelectionIndex());
        // 2
        eventSender.keyDown(SWT.ARROW_UP);
        assertEquals(2, comboTable.getSelectionIndex());
        // 0
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

        EventSender eventSender = new EventSender(comboText);
        // 0
        eventSender.keyDown(SWT.ARROW_UP);
        assertEquals(0, comboTable.getSelectionIndex());
        // 2
        eventSender.keyDown(SWT.ARROW_UP);
        assertEquals(2, comboTable.getSelectionIndex());
        // 0
        eventSender.keyDown(SWT.ARROW_DOWN);
        assertEquals(0, comboTable.getSelectionIndex());
        // done
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

        assertEquals(0, comboTable.getSelectionIndex());
        // 2
        eventSender.keyDown(SWT.ARROW_UP);
        assertEquals(2, comboTable.getSelectionIndex());
        // 0
        eventSender.keyDown(SWT.ARROW_DOWN);
        assertEquals(0, comboTable.getSelectionIndex());
        // done
        eventSender.keyDown('\r');
      }
      // "first" was selected
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

        assertEquals(2, comboTable.getSelectionIndex());
        // 0
        eventSender.keyDown(SWT.ARROW_DOWN);
        assertEquals(0, comboTable.getSelectionIndex());
        // done
        eventSender.keyDown('\r');
      }
      // "first" was selected
      assertEditor(getStyleSource("setStyleName('first')"));
    } finally {
      propertyTable.dispose();
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // send ESC, close
      {
        eventSender.keyDown(SWT.ESC);
        assertFalse(combo.isDroppedDown());
      }
      // set text
      combo.setSelectionText("myStyle");
      // apply text
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

        assertFalse(combo.isDroppedDown());
      }
      // set text
      combo.setSelectionText("myStyle");
      // apply text
      eventSender.keyDown('\r');
      assertEditor(getStyleSource("setStyleName('myStyle')"));
    } finally {
      propertyTable.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.wb.tests.gef.EventSender.keyDown()

      // drop-down in async
      waitEventLoop(0);
      assertTrue(combo.isDroppedDown());
      // send ESC, close
      {
        eventSender.keyDown(SWT.ESC);
        assertFalse(combo.isDroppedDown());
      }
      // send ESC, deactivate
      {
        eventSender.keyDown(SWT.ESC);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.