equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 @bug 8072769 |
25 @bug 8072769 |
26 @key headful |
26 @key headful |
27 @requires (os.family == "windows") |
27 @requires (os.family == "windows") |
28 @summary System tray icon title freezes java |
28 @summary System tray icon title freezes java |
29 @author Semyon Sadetsky |
29 @author Semyon Sadetsky |
30 @library ../../../../lib/testlibrary |
30 @library /test/lib |
31 @build jdk.testlibrary.OSInfo |
31 @build jdk.test.lib.Platform |
32 @run main bug8072769 |
32 @run main bug8072769 |
33 */ |
33 */ |
34 |
34 |
35 import jdk.testlibrary.OSInfo; |
35 import jdk.test.lib.Platform; |
36 |
36 |
37 import javax.swing.*; |
37 import javax.swing.*; |
38 import java.awt.*; |
38 import java.awt.*; |
39 import java.util.Arrays; |
39 import java.util.Arrays; |
40 |
40 |
41 public class bug8072769 { |
41 public class bug8072769 { |
42 |
42 |
43 public static void main(String[] args) throws Exception { |
43 public static void main(String[] args) throws Exception { |
44 if (OSInfo.getOSType() == OSInfo.OSType.WINDOWS) { |
44 if (Platform.isWindows()) { |
45 if (SystemTray.isSupported()) { |
45 if (SystemTray.isSupported()) { |
46 test(); |
46 test(); |
47 } else { |
47 } else { |
48 System.out.println("SystemTray not supported. " + |
48 System.out.println("SystemTray not supported. " + |
49 "Test is skipped."); |
49 "Test is skipped."); |