8342541: Exclude List/KeyEventsTest/KeyEventsTest.java from running on macOS

Reviewed-by: aivanov, prr
This commit is contained in:
Renjith Kannath Pariyangad 2024-11-19 18:19:28 +00:00 committed by Phil Race
parent 087a07b5ed
commit bb7a8403ba

View File

@ -21,17 +21,6 @@
* questions.
*/
/*
@test
@key headful
@bug 6190768 6190778
@summary Tests that triggering events on AWT list by pressing CTRL + HOME,
CTRL + END, PG-UP, PG-DOWN similar Motif behavior
@library /test/lib
@build jdk.test.lib.Platform
@run main KeyEventsTest
*/
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.KeyboardFocusManager;
@ -50,6 +39,17 @@ import java.awt.event.KeyListener;
import jdk.test.lib.Platform;
/*
* @test
* @key headful
* @bug 6190768 6190778
* @requires os.family != "mac"
* @summary Tests that triggering events on AWT list by pressing CTRL + HOME,
* CTRL + END, PG-UP, PG-DOWN similar Motif behavior
* @library /test/lib
* @build jdk.test.lib.Platform
* @run main KeyEventsTest
*/
public class KeyEventsTest {
TestState currentState;
final Object LOCK = new Object();
@ -261,13 +261,7 @@ public class KeyEventsTest {
private void doTest() throws Exception {
boolean isWin = false;
if (Platform.isWindows()) {
isWin = true;
} else if (Platform.isOSX()) {
System.out.println("Not for OS X");
return;
}
boolean isWin = Platform.isWindows();
System.out.println("multiple? selectedMoved? ?scrollMoved keyID? template? action?");
test(new TestState(false, false, false, KeyEvent.VK_PAGE_UP, isWin?false:false));