Ignore:
Timestamp:
09/25/08 13:12:19 (16 years ago)
Author:
ra33
Message:

Added a base class for GUI tests
Added testing of Escape for drop down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/org/expeditee/gui/FrameMouseActionsTest.java

    r310 r330  
    88import org.expeditee.items.Text;
    99
    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         }
     10public class FrameMouseActionsTest extends GuiTestCase {
    1711
    1812        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               
    2215                // LeftRange the title text for unlinked title
    2316                Text title = testFrame.getTitleItem();
     
    3528                testLeftRanging(title);
    3629
    37                 Thread.sleep(1000);
     30                Thread.sleep(500);
    3831               
    3932                DisplayIOTest.drawLine();
     
    4235                Navigation.Back();
    4336               
     37                Thread.sleep(500);
    4438                // Make sure the newly created frame is saved when the user goes back
    4539                assertNotNull(FrameIO.LoadFrame(newFrameName));
     
    5448                int y = title.getY() - 2;
    5549                DisplayIO.setCursorPosition(title.getX(), y);
    56                 Thread.sleep(1000);
     50                Thread.sleep(500);
    5751                DisplayIO.pressMouse(InputEvent.BUTTON1_MASK);
    5852                Thread.sleep(100);
    5953                DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
    6054                                y);
    61                 Thread.sleep(1000);
     55                Thread.sleep(500);
    6256                DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK);
    6357                Thread.sleep(100);
     
    6862                // Highlight then unhighlight
    6963                DisplayIO.setCursorPosition(title.getX(), y);
    70                 Thread.sleep(1000);
     64                Thread.sleep(500);
    7165                DisplayIO.pressMouse(InputEvent.BUTTON1_MASK);
    7266                Thread.sleep(100);
    7367                DisplayIO.setCursorPosition(title.getX() + title.getBoundsWidth() / 2,
    7468                                y);
    75                 Thread.sleep(1000);
     69                Thread.sleep(500);
    7670                DisplayIO.setCursorPosition(title.getX(), y);
    77                 Thread.sleep(1000);
     71                Thread.sleep(500);
    7872                DisplayIO.releaseMouse(InputEvent.BUTTON1_MASK);
    79                 Thread.sleep(1000);
     73                Thread.sleep(500);
    8074
    8175                // Make sure TDFC was performed
Note: See TracChangeset for help on using the changeset viewer.