< prev index next >
test/jdk/java/awt/Menu/OpensWithNoGrab/OpensWithNoGrab.java
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 44,54 ****
public class OpensWithNoGrab
{
final static int delay = 50;
private static void init()
{
! if (!(Platform.isLinux() || Platform.isSolaris())) {
System.out.println("This test is for XAWT/Motif only");
OpensWithNoGrab.pass();
}
Choice ch = new Choice ();
--- 44,54 ----
public class OpensWithNoGrab
{
final static int delay = 50;
private static void init()
{
! if (!Platform.isLinux()) {
System.out.println("This test is for XAWT/Motif only");
OpensWithNoGrab.pass();
}
Choice ch = new Choice ();
< prev index next >