< prev index next >

test/java/awt/hidpi/properties/HiDPIPropertiesWindowsTest.java

Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.Dialog;
  25 import java.awt.Frame;
  26 import java.awt.Graphics;
  27 import java.awt.Graphics2D;
  28 import java.awt.geom.AffineTransform;
  29 import javax.swing.UIManager;
  30 
  31 /* @test


  32  * @bug 8073320
  33  * @summary  Windows HiDPI support
  34  * @author Alexander Scherbatiy
  35  * @requires (os.family == "windows")
  36  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  37  *                   -Dsun.java2d.win.uiScaleX=3 -Dsun.java2d.win.uiScaleY=2
  38  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  39  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  40  *                   -Dsun.java2d.uiScale=3
  41  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  42  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  43  *                   -Dsun.java2d.uiScale=3
  44  *                   -Dsun.java2d.win.uiScaleX=5 -Dsun.java2d.win.uiScaleY=6
  45  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  46  * @run main/othervm -Dsun.java2d.uiScale.enabled=true
  47  *                   -Dsun.java2d.uiScale=3
  48  *                    HiDPIPropertiesWindowsTest UISCALE_3
  49  * @run main/othervm -Dsun.java2d.uiScale.enabled=true
  50  *                   -Dsun.java2d.uiScale=4
  51  *                   -Dsun.java2d.win.uiScaleX=2 -Dsun.java2d.win.uiScaleY=3




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.Dialog;
  25 import java.awt.Frame;
  26 import java.awt.Graphics;
  27 import java.awt.Graphics2D;
  28 import java.awt.geom.AffineTransform;
  29 import javax.swing.UIManager;
  30 
  31 /**
  32  * @test
  33  * @key headful
  34  * @bug 8073320
  35  * @summary  Windows HiDPI support
  36  * @author Alexander Scherbatiy
  37  * @requires (os.family == "windows")
  38  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  39  *                   -Dsun.java2d.win.uiScaleX=3 -Dsun.java2d.win.uiScaleY=2
  40  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  41  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  42  *                   -Dsun.java2d.uiScale=3
  43  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  44  * @run main/othervm -Dsun.java2d.uiScale.enabled=false
  45  *                   -Dsun.java2d.uiScale=3
  46  *                   -Dsun.java2d.win.uiScaleX=5 -Dsun.java2d.win.uiScaleY=6
  47  *                    HiDPIPropertiesWindowsTest UISCALE_DISABLED
  48  * @run main/othervm -Dsun.java2d.uiScale.enabled=true
  49  *                   -Dsun.java2d.uiScale=3
  50  *                    HiDPIPropertiesWindowsTest UISCALE_3
  51  * @run main/othervm -Dsun.java2d.uiScale.enabled=true
  52  *                   -Dsun.java2d.uiScale=4
  53  *                   -Dsun.java2d.win.uiScaleX=2 -Dsun.java2d.win.uiScaleY=3


< prev index next >