提交 a6da5133 编写于 作者: K kshefov

7161320: TEST_BUG:...

7161320: TEST_BUG: java/awt/event/KeyEvent/SwallowKeyEvents/SwallowKeyEvents.java fails (Invalid key code)
Reviewed-by: pchelko, serb
上级 30d6c70c
/* /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
@test @test
@bug 7154072 @bug 7154072 7161320
@summary Tests that key events with modifiers are not swallowed. @summary Tests that key events with modifiers are not swallowed.
@author anton.tarasov: area=awt.focus @author anton.tarasov: area=awt.focus
@library ../../../regtesthelpers @library ../../../regtesthelpers
...@@ -49,6 +49,11 @@ public class SwallowKeyEvents { ...@@ -49,6 +49,11 @@ public class SwallowKeyEvents {
static Robot r; static Robot r;
public static void main(String[] args) { public static void main(String[] args) {
if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.WINDOWS) {
System.out.println("Skipped. Test not for MS Windows.");
return;
}
f.add(t); f.add(t);
f.pack(); f.pack();
f.setVisible(true); f.setVisible(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册