Skip to content

Commit 275c463

Browse files
vprovodinjbrbot
authored andcommitted
JBR-8646 add keyRelease invocations for pressed keys
1 parent 0f7088f commit 275c463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/jdk/javax/swing/JSlider/bug4382876.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static void main(String[] args) throws Exception {
7676
upFail = true;
7777
}
7878
});
79+
r.keyRelease(KeyEvent.VK_PAGE_UP);
7980
if (upFail) {
8081
writeFailImage();
8182
throw new RuntimeException("Slider value did NOT change with PAGE_UP");
@@ -87,6 +88,7 @@ public static void main(String[] args) throws Exception {
8788
downFail = true;
8889
}
8990
});
91+
r.keyRelease(KeyEvent.VK_PAGE_DOWN);
9092
if (downFail) {
9193
writeFailImage();
9294
throw new RuntimeException("Slider value did NOT change with PAGE_DOWN");

0 commit comments

Comments
 (0)