changeset 10834:dff29cfc03ca

8196621: AABalanceTest fails on systems with small screen size Reviewed-by: mbilla
author kcr
date Tue, 13 Feb 2018 08:46:16 -0800
parents 31c320bdc3a9
children 3838fa49ebbb
files tests/system/src/test/java/test/robot/test3d/AABalanceFlipTest.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/test/robot/test3d/AABalanceFlipTest.java	Mon Feb 12 10:04:19 2018 -0800
+++ b/tests/system/src/test/java/test/robot/test3d/AABalanceFlipTest.java	Tue Feb 13 08:46:16 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 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
@@ -54,8 +54,8 @@
 
     @Test(timeout = 5000)
     public void testAABalanceFlip() {
-        final int WIDTH = 800;
-        final int HEIGHT = 800;
+        final int WIDTH = 600;
+        final int HEIGHT = 600;
         selfIllumMap = new WritableImage(64, 64);
         PixelWriter pWriter = selfIllumMap.getPixelWriter();
         setArgb(pWriter, 0, 32, 0, 32, 0Xff000000);
@@ -199,8 +199,8 @@
         meshView.setCullFace(CullFace.BACK);
 
         final Group grp = new Group(meshView);
-        grp.setTranslateX(400);
-        grp.setTranslateY(400);
+        grp.setTranslateX(width/2);
+        grp.setTranslateY(height/2);
         grp.setTranslateZ(10);
 
         root = new Group(grp, new AmbientLight(Color.BLACK));