From: Ben Soares Date: Fri, 4 Dec 2020 17:59:13 +0000 (+0000) Subject: JAL-3775 added the Platform.isLinux() check for test HiDPISetting2 X-Git-Tag: Develop-2_11_2_0-d20201215~15^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a8d711e20ae8777b73d0e44da8533cf7389ab06;p=jalview.git JAL-3775 added the Platform.isLinux() check for test HiDPISetting2 --- diff --git a/test/jalview/bin/HiDPISettingTest2.java b/test/jalview/bin/HiDPISettingTest2.java index 9851b09..71d13d0 100644 --- a/test/jalview/bin/HiDPISettingTest2.java +++ b/test/jalview/bin/HiDPISettingTest2.java @@ -30,6 +30,7 @@ import java.io.InputStreamReader; import java.util.concurrent.TimeUnit; import org.testng.Assert; +import org.testng.SkipException; import org.testng.annotations.BeforeTest; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; @@ -37,6 +38,7 @@ import org.testng.annotations.Test; import io.github.classgraph.ClassGraph; import io.github.classgraph.ScanResult; import jalview.gui.Desktop; +import jalview.util.Platform; public class HiDPISettingTest2 { @@ -160,6 +162,13 @@ public class HiDPISettingTest2 @Test(groups = { "Functional" }, dataProvider = "hidpiScaleArguments") public void testHiDPISettings(int scale) { + if (Platform.isLinux()) + { + throw new SkipException( + "Not linux platform, not testing actual scaling with " + + HiDPISetting.scalePropertyName); + } + String jvmArgs = HiDPISetting.getScalePropertyArg(scale); String appArgs = " -open examples/uniref50.fa -nosplash -nonews -noquestionnaire -nousagestats -nowebservicediscovery";