test/java/awt/Mixing/AWT_Mixing/JMenuBarOverlapping.java

Print this page

        

*** 34,53 **** --- 34,56 ---- import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JSeparator; import javax.swing.SwingUtilities; + import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test for {@link javax.swing.JMenuBar } and {@link javax.swing.JSeparator} components. * <p>This test creates menu bar and test if heavyweight component is drawn correctly then menu dropdown is shown. * <p>See base class for test info. */ /* @test @summary Overlapping test for javax.swing.JScrollPane @author sergey.grinev@oracle.com: area=awt.mixing + @library ../../regtesthelpers + @build Util @run main JMenuBarOverlapping */ public class JMenuBarOverlapping extends OverlappingTestBase { {testEmbeddedFrame = true;}
*** 130,140 **** sepLoc = separator.getLocationOnScreen(); } }); } catch (Exception e) { e.printStackTrace(); ! System.exit(1); } sepLoc.translate(20, 1); clickAndBlink(robot, sepLoc, false); clickAndBlink(robot, loc, false); // close menu before running next step --- 133,143 ---- sepLoc = separator.getLocationOnScreen(); } }); } catch (Exception e) { e.printStackTrace(); ! throw new RuntimeException("Where is separator?"); } sepLoc.translate(20, 1); clickAndBlink(robot, sepLoc, false); clickAndBlink(robot, loc, false); // close menu before running next step