Skip to content
Permalink
Browse files
8213120: java/awt/TextArea/AutoScrollOnSelectAndAppend/AutoScrollOnSe…
…lectAndAppend.java fails on mac10.13

Reviewed-by: psadhukhan
  • Loading branch information
jayathirthrao committed Oct 27, 2021
1 parent 9e831bc commit 2f979ecb5b642d04ad280687de76a6ee46818b35
Showing 2 changed files with 6 additions and 5 deletions.
@@ -494,7 +494,6 @@ java/awt/Modal/ModalFocusTransferTests/FocusTransferDialogsDocModalTest.java 816
java/awt/im/memoryleak/InputContextMemoryLeakTest.java 8023814 linux-all
java/awt/Frame/DisposeParentGC/DisposeParentGC.java 8079786 macosx-all
java/awt/FullScreen/NoResizeEventOnDMChangeTest/NoResizeEventOnDMChangeTest.java 8169468 macosx-all
java/awt/TextArea/AutoScrollOnSelectAndAppend/AutoScrollOnSelectAndAppend.java 8213120 macosx-all

java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java 7099223,8274106 macosx-aarch64,linux-all,windows-all
java/awt/Window/WindowResizing/DoubleClickTitleBarTest.java 8233557 macosx-all
@@ -101,12 +101,14 @@ public void mouseClicked(MouseEvent e) {
public AutoScrollOnSelectAndAppend() {
try {
robot = new Robot();
robot.setAutoDelay(100);
} catch (Exception ex) {
throw new RuntimeException("Robot Creation Failed.");
}
frame = new Frame();
frame.setSize(200, 200);
frame.setLayout(new FlowLayout());
frame.setLocationRelativeTo(null);

textArea = new TextArea(5, 20);
composeTextArea();
@@ -128,11 +130,11 @@ public void doubleClick() {
// Delay to make sure auto scroll is finished.
robot.waitForIdle();
robot.delay(500);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
robot.delay(100);
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
robot.waitForIdle();
}

1 comment on commit 2f979ec

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 2f979ec Oct 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.