jdk/test/java/awt/SplashScreen/MultiResolutionSplash/unix/UnixMultiResolutionSplashTest.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2017, 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. |
43 import java.util.Map; |
43 import java.util.Map; |
44 import javax.imageio.ImageIO; |
44 import javax.imageio.ImageIO; |
45 |
45 |
46 /** |
46 /** |
47 * @test |
47 * @test |
|
48 * @key headful |
48 * @bug 8145174 8151787 8168657 |
49 * @bug 8145174 8151787 8168657 |
49 * @summary HiDPI splash screen support on Linux |
50 * @summary HiDPI splash screen support on Linux |
50 * @modules java.desktop/sun.java2d |
51 * @modules java.desktop/sun.java2d |
51 * @requires (os.family == "linux") |
52 * @requires (os.family == "linux") |
52 * @run main UnixMultiResolutionSplashTest |
53 * @run main UnixMultiResolutionSplashTest |
53 */ |
54 */ |
|
55 |
54 public class UnixMultiResolutionSplashTest { |
56 public class UnixMultiResolutionSplashTest { |
55 |
57 |
56 private static final int IMAGE_WIDTH = 300; |
58 private static final int IMAGE_WIDTH = 300; |
57 private static final int IMAGE_HEIGHT = 200; |
59 private static final int IMAGE_HEIGHT = 200; |
58 private static int inx = 0; |
60 private static int inx = 0; |