Skip to content

Commit 4107670

Browse files
committed
8233562: [TESTBUG] Swing StyledEditorKit test bug4506788.java fails on MacOS
Reviewed-by: psadhukhan
1 parent 9a36747 commit 4107670

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/jdk/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ javax/swing/dnd/8139050/NativeErrorsInTableDnD.java 8202765 macosx-all,linux-al
778778
javax/swing/Popup/TaskbarPositionTest.java 8065097 macosx-all,linux-all
779779
javax/swing/JEditorPane/6917744/bug6917744.java 8213124 macosx-all
780780
javax/swing/JTree/6263446/bug6263446.java 8213125 macosx-all
781-
javax/swing/text/StyledEditorKit/4506788/bug4506788.java 8233562 macosx-all
782781
javax/swing/JRootPane/4670486/bug4670486.java 8042381 macosx-all
783782
javax/swing/JRadioButton/ButtonGroupFocus/ButtonGroupFocusTest.java 8233555 macosx-all
784783
javax/swing/JRadioButton/8075609/bug8075609.java 8233555 macosx-all

test/jdk/javax/swing/text/StyledEditorKit/4506788/bug4506788.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -65,6 +65,7 @@ public void start() {
6565
Robot robot;
6666
try {
6767
robot = new Robot();
68+
robot.setAutoDelay(100);
6869
} catch (AWTException e) {
6970
throw new RuntimeException("Robot could not be created");
7071
}
@@ -78,7 +79,6 @@ public void start() {
7879
throw new RuntimeException("Could not get JEditorPane location on screen");
7980
}
8081

81-
robot.setAutoDelay(50);
8282
robot.mouseMove(p.x, p.y);
8383
robot.mousePress(InputEvent.BUTTON1_MASK);
8484
robot.mouseRelease(InputEvent.BUTTON1_MASK);

0 commit comments

Comments
 (0)