Changeset 330 for trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java
- Timestamp:
- 09/25/08 13:12:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java
r310 r330 8 8 import org.expeditee.items.Text; 9 9 10 public class FrameMouseActionsTest extends TestCase { 11 static Browser b; 12 13 protected void setUp() throws Exception { 14 b = Browser.initializeForTesting(); 15 super.setUp(); 16 } 10 public class FrameMouseActionsTest extends GuiTestCase { 17 11 18 12 public final void testLeftHighlight() throws Exception { 19 Frame testFrame = FrameIO.LoadFrame("ExpediteeTest1"); 20 testFrame.clear(false); 21 DisplayIO.setCurrentFrame(testFrame, true); 13 Frame testFrame = showBlankFrame(); 14 22 15 // LeftRange the title text for unlinked title 23 16 Text title = testFrame.getTitleItem(); … … 35 28 testLeftRanging(title); 36 29 37 Thread.sleep( 1000);30 Thread.sleep(500); 38 31 39 32 DisplayIOTest.drawLine(); … … 42 35 Navigation.Back(); 43 36 37 Thread.sleep(500); 44 38 // Make sure the newly created frame is saved when the user goes back 45 39 assertNotNull(FrameIO.LoadFrame(newFrameName)); … … 54 48 int y = title.getY() - 2; 55 49 DisplayIO.setCursorPosition(title.getX(), y); 56 Thread.sleep( 1000);50 Thread.sleep(500); 57 51 DisplayIO.pressMouse(InputEvent.BUTTON1_MASK); 58 52 Thread.sleep(100); 59 53 DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2, 60 54 y); 61 Thread.sleep( 1000);55 Thread.sleep(500); 62 56 DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK); 63 57 Thread.sleep(100); … … 68 62 // Highlight then unhighlight 69 63 DisplayIO.setCursorPosition(title.getX(), y); 70 Thread.sleep( 1000);64 Thread.sleep(500); 71 65 DisplayIO.pressMouse(InputEvent.BUTTON1_MASK); 72 66 Thread.sleep(100); 73 67 DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2, 74 68 y); 75 Thread.sleep( 1000);69 Thread.sleep(500); 76 70 DisplayIO.setCursorPosition(title.getX(), y); 77 Thread.sleep( 1000);71 Thread.sleep(500); 78 72 DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK); 79 Thread.sleep( 1000);73 Thread.sleep(500); 80 74 81 75 // Make sure TDFC was performed
Note:
See TracChangeset
for help on using the changeset viewer.