Changeset 1102 for trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java
r361 r1102 16 16 testLeftRanging(title); 17 17 18 String newFrameName = Display IO.getCurrentFrame().getName();18 String newFrameName = DisplayController.getCurrentFrame().getName(); 19 19 Navigation.Back(); 20 20 … … 30 30 DisplayIOTest.drawLine(); 31 31 32 newFrameName = Display IO.getCurrentFrame().getName();32 newFrameName = DisplayController.getCurrentFrame().getName(); 33 33 Navigation.Back(); 34 34 … … 45 45 private void testLeftRanging(Text title) throws InterruptedException { 46 46 int y = title.getY() - 2; 47 Display IO.setCursorPosition(title.getX(), y);47 DisplayController.setCursorPosition(title.getX(), y); 48 48 Thread.sleep(500); 49 Display IO.pressMouse(InputEvent.BUTTON1_MASK);49 DisplayController.pressMouse(InputEvent.BUTTON1_MASK); 50 50 Thread.sleep(100); 51 Display IO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,51 DisplayController.setCursorPosition(title.getX() + title.getBoundsWidth() / 2, 52 52 y); 53 53 Thread.sleep(500); 54 Display IO.releaseMouse(InputEvent.BUTTON1_MASK);54 DisplayController.releaseMouse(InputEvent.BUTTON1_MASK); 55 55 Thread.sleep(100); 56 56 … … 59 59 60 60 // Highlight then unhighlight 61 Display IO.setCursorPosition(title.getX(), y);61 DisplayController.setCursorPosition(title.getX(), y); 62 62 Thread.sleep(500); 63 Display IO.pressMouse(InputEvent.BUTTON1_MASK);63 DisplayController.pressMouse(InputEvent.BUTTON1_MASK); 64 64 Thread.sleep(100); 65 Display IO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,65 DisplayController.setCursorPosition(title.getX() + title.getBoundsWidth() / 2, 66 66 y); 67 67 Thread.sleep(500); 68 Display IO.setCursorPosition(title.getX(), y);68 DisplayController.setCursorPosition(title.getX(), y); 69 69 Thread.sleep(500); 70 Display IO.releaseMouse(InputEvent.BUTTON1_MASK);70 DisplayController.releaseMouse(InputEvent.BUTTON1_MASK); 71 71 Thread.sleep(500); 72 72
Note:
See TracChangeset
for help on using the changeset viewer.