Exemple #1
0
 @Test
 public void doubleClickXY() throws Exception {
   final SWTBotCanvas canvas = bot.canvasInGroup("Canvas");
   canvas.doubleClick(10, 20);
   assertThat(listeners.getText(), containsString("Double-clicked on Canvas: button=1 x=10 y=20"));
 }
Exemple #2
0
 @Test
 public void click() throws Exception {
   final SWTBotCanvas canvas = bot.canvasInGroup("Canvas");
   canvas.click();
   assertThat(listeners.getText(), containsString("Clicked on Canvas: button=1 "));
 }