ExtraMouseClick.java revision 0
0N/A @run applet ExtraMouseClick.html
0N/A }catch(AWTException e){
0N/A throw new RuntimeException(e);
0N/A checkClicked();
0N/A clearFlags();
0N/A clearFlags();
0N/A clearFlags();
0N/A clearFlags();
0N/A // In that case we may skip following testcase but I'd prefer if we move mouse on 1 pixel only.
0N/A clearFlags();
0N/A smallDrag(SMUDGE_WIDTH - 1, SMUDGE_HEIGHT - 1); //on Motif and XAWT SMUDGE area is 4-pixels wide
0N/A clearFlags();
0N/A throw new RuntimeException("Test failed. Clicked event follows by Dragged. Dragged = "+dragged +". Clicked = "+clicked + " : distance = "+pixels);
0N/A throw new RuntimeException("Test failed. Dragged event (by the X-axis) occured in SMUDGE area. Dragged = "+dragged +". Clicked = "+clicked);
0N/A throw new RuntimeException("Test failed. Dragged event (by the Y-axis) occured in SMUDGE area. Dragged = "+dragged +". Clicked = "+clicked);
0N/A // The difference between X-system and Win32: on Win32 Dragged event start to be generated after any mouse drag.
0N/A throw new RuntimeException("Test failed. Dragged event (by the X-axis) didn't occur in the SMUDGE area. Dragged = "+dragged);
0N/A throw new RuntimeException("Test failed. Dragged event (by the Y-axis) didn't occur in the SMUDGE area. Dragged = "+dragged);
0N/A public void checkClicked(){
0N/A throw new RuntimeException("Test failed. Some of Pressed/Released/Clicked events are missed or dragged occured. Pressed/Released/Clicked/Dragged = "+pressed + ":"+released+":"+clicked +":" +dragged);
0N/A public void clearFlags(){