Changeset 1102 for trunk/tests/org/expeditee/gui/DisplayIOTest.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/org/expeditee/gui/DisplayIOTest.java
r361 r1102 11 11 showBlankFrame(); 12 12 13 Display IO.ToggleTwinFrames();14 assertTrue(Display IO.isTwinFramesOn());15 Display IO.ToggleTwinFrames();16 assertFalse(Display IO.isTwinFramesOn());13 DisplayController.toggleTwinFrames(); 14 assertTrue(DisplayController.isTwinFramesOn()); 15 DisplayController.toggleTwinFrames(); 16 assertFalse(DisplayController.isTwinFramesOn()); 17 17 } 18 18 … … 22 22 23 23 //Draw a rectangle 24 Display IO.setCursorPosition(250, 250);24 DisplayController.setCursorPosition(250, 250); 25 25 Thread.sleep(100); 26 Display IO.clickMouse(InputEvent.BUTTON3_MASK);26 DisplayController.clickMouse(InputEvent.BUTTON3_MASK); 27 27 Thread.sleep(100); 28 Display IO.setCursorPosition(500, 500);28 DisplayController.setCursorPosition(500, 500); 29 29 Thread.sleep(100); 30 Display IO.clickMouse(InputEvent.BUTTON3_MASK);30 DisplayController.clickMouse(InputEvent.BUTTON3_MASK); 31 31 Thread.sleep(1000); 32 32 //Check that the line is there … … 42 42 public static void drawLine() throws InterruptedException { 43 43 //Draw a line 44 Display IO.setCursorPosition(100, 100);44 DisplayController.setCursorPosition(100, 100); 45 45 Thread.sleep(500); 46 Display IO.clickMouse(InputEvent.BUTTON2_MASK);46 DisplayController.clickMouse(InputEvent.BUTTON2_MASK); 47 47 Thread.sleep(100); 48 Display IO.setCursorPosition(200, 200);48 DisplayController.setCursorPosition(200, 200); 49 49 Thread.sleep(100); 50 Display IO.clickMouse(InputEvent.BUTTON2_MASK);50 DisplayController.clickMouse(InputEvent.BUTTON2_MASK); 51 51 Thread.sleep(100); 52 52 }
Note:
See TracChangeset
for help on using the changeset viewer.