< prev index next >

test/java/awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java

Print this page




  27  @summary Confirm that the Alt-Gr Modifier bit is set correctly.
  28  @run main/manual AltGraphModifierTest
  29  */
  30 import java.awt.Button;
  31 import java.awt.Dialog;
  32 import java.awt.Frame;
  33 import java.awt.Panel;
  34 import java.awt.TextArea;
  35 import java.awt.event.ActionEvent;
  36 import java.awt.event.ActionListener;
  37 import java.awt.event.InputEvent;
  38 import java.awt.event.MouseAdapter;
  39 import java.awt.event.MouseEvent;
  40 
  41 public class AltGraphModifierTest {
  42     private static void init() throws Exception {
  43         String[] instructions
  44                 = {
  45                     "This test is for verifying Alt-Gr modifier of an event.",
  46                     "Windows :-",
  47                     "1. Please check if Alt-Gr key is present on keyboard.",
  48                     "2. If present, press the Alt-Gr key and perform",
  49                     "   mouse click on the TestWindow.",
  50                     "3. If Alt-Gr key is not present, press Ctrl+Alt keys &",
  51                     "   perform mouse click on the TestWindow.",
  52                     "4. Test will exit by itself with appropriate result.",
  53                     " ",
  54                     "Linux :-",
  55                     "1. Please check if Alt-Gr key is present on keyboard.",
  56                     "2. If present, press the Alt-Gr key and perform",
  57                     "   mouse click on the TestWindow.",
  58                     "3. Navigate to System Settings-> Keyboard-> Shortcuts->",
  59                     "   Typing.",
  60                     "4. Select an option for the Alternative Characters Key",
  61                     "   For example. Right Alt",
  62                     "5. Close the settings and navigate to test",
  63                     "6. Press Right Alt Key & perform mouse click on the",
  64                     "   TestWindow",
  65                     "7. Test will exit by itself with appropriate result.",
  66                     " ",
  67                     "Mac :-",
  68                     "1. Press Right Option key on the keyboard and mouse click",
  69                     "   on the TestWindow",
  70                     "3. Test will exit by itself with appropriate result.",
  71                 };
  72 




  27  @summary Confirm that the Alt-Gr Modifier bit is set correctly.
  28  @run main/manual AltGraphModifierTest
  29  */
  30 import java.awt.Button;
  31 import java.awt.Dialog;
  32 import java.awt.Frame;
  33 import java.awt.Panel;
  34 import java.awt.TextArea;
  35 import java.awt.event.ActionEvent;
  36 import java.awt.event.ActionListener;
  37 import java.awt.event.InputEvent;
  38 import java.awt.event.MouseAdapter;
  39 import java.awt.event.MouseEvent;
  40 
  41 public class AltGraphModifierTest {
  42     private static void init() throws Exception {
  43         String[] instructions
  44                 = {
  45                     "This test is for verifying Alt-Gr modifier of an event.",
  46                     "Windows :-",
  47                     "1. Click Pass.",
  48                     "2. Alt-Gr modifier is tested under Robot tests.",




  49                     " ",
  50                     "Linux :-",
  51                     "1. Please check if Alt-Gr key is present on keyboard.",
  52                     "2. If present, press the Alt-Gr key and perform",
  53                     "   mouse click on the TestWindow.",
  54                     "3. Navigate to System Settings-> Keyboard-> Shortcuts->",
  55                     "   Typing.",
  56                     "4. Select an option for the Alternative Characters Key",
  57                     "   For example. Right Alt",
  58                     "5. Close the settings and navigate to test",
  59                     "6. Press Right Alt Key & perform mouse click on the",
  60                     "   TestWindow",
  61                     "7. Test will exit by itself with appropriate result.",
  62                     " ",
  63                     "Mac :-",
  64                     "1. Press Right Option key on the keyboard and mouse click",
  65                     "   on the TestWindow",
  66                     "3. Test will exit by itself with appropriate result.",
  67                 };
  68 


< prev index next >