changeset 48165:a42e805414e4

8190348: [TESTBUG] Test javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java fails Reviewed-by: serb, psadhukhan Contributed-by: pankaj.b.bansal@oracle.com
author pbansal
date Wed, 22 Nov 2017 12:05:06 +0530
parents b69b22b7a9f9
children a9854da9252d
files test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java	Wed Nov 22 11:52:59 2017 +0530
+++ b/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java	Wed Nov 22 12:05:06 2017 +0530
@@ -33,12 +33,13 @@
  * @library ../../../../lib/testlibrary
  * @build Common ExtendedRobot
  * @run main PerPixelTranslucentCanvas
+ * @run main/othervm -Dsun.java2d.uiScale=1.5 PerPixelTranslucentCanvas
  */
 
 public class PerPixelTranslucentCanvas extends Common {
 
     JPanel center;
-    Color OVAL_COLOR = Color.BLUE;
+    static Color OVAL_COLOR = Color.BLUE;
 
     public static void main(String[] ignored) throws Exception {
         FG_COLOR = new Color(200, 0, 0, 100);