8190348: [TESTBUG] Test javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java fails
authorpbansal
Wed, 22 Nov 2017 12:05:06 +0530
changeset 47968 a42e805414e4
parent 47967 b69b22b7a9f9
child 47969 a9854da9252d
8190348: [TESTBUG] Test javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java fails Reviewed-by: serb, psadhukhan Contributed-by: pankaj.b.bansal@oracle.com
test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentCanvas.java
--- 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);