< prev index next >
test/java/awt/hidpi/properties/HiDPIPropertiesUnixTest.java
Print this page
*** 30,60 ****
/* @test
* @bug 8137571
* @summary Linux HiDPI Graphics support
* @author Alexander Scherbatiy
! * @requires (os.family == "linux")
* @run main/othervm -Dsun.java2d.uiScale.enabled=false
* -Dsun.java2d.uiScale=2
! * HiDPIPropertiesLinuxTest UISCALE_DISABLED
! * HiDPIPropertiesTest UISCALE_DISABLED
* @run main/othervm -Dsun.java2d.uiScale.enabled=true
* -Dsun.java2d.uiScale=3
! * HiDPIPropertiesLinuxTest UISCALE_3
* @run main/othervm -Dsun.java2d.uiScale=4
! * HiDPIPropertiesLinuxTest UISCALE_4
*/
! public class HiDPIPropertiesLinuxTest {
public static void main(String[] args) throws Exception {
! try {
! UIManager.setLookAndFeel(
! "com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
! } catch (Exception e) {
! return;
! }
String testCase = args[0];
switch (testCase) {
case "UISCALE_DISABLED":
testScale(1.0, 1.0);
--- 30,54 ----
/* @test
* @bug 8137571
* @summary Linux HiDPI Graphics support
* @author Alexander Scherbatiy
! * @requires (os.family == "linux" | os.family == "mac")
* @run main/othervm -Dsun.java2d.uiScale.enabled=false
* -Dsun.java2d.uiScale=2
! * HiDPIPropertiesUnixTest UISCALE_DISABLED
* @run main/othervm -Dsun.java2d.uiScale.enabled=true
* -Dsun.java2d.uiScale=3
! * HiDPIPropertiesUnixTest UISCALE_3
* @run main/othervm -Dsun.java2d.uiScale=4
! * HiDPIPropertiesUnixTest UISCALE_4
*/
! public class HiDPIPropertiesUnixTest {
public static void main(String[] args) throws Exception {
! UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
String testCase = args[0];
switch (testCase) {
case "UISCALE_DISABLED":
testScale(1.0, 1.0);
< prev index next >