From f494c6759dc1197db27ab278c08fce7407fc770a Mon Sep 17 00:00:00 2001 From: Sergei Tachenov Date: Wed, 24 Sep 2025 16:50:38 +0300 Subject: [PATCH] [unit tests] IJPL-209375 Remove not Linux assumption from IconScaleTest This assumption was mistakenly ported from pre-Java 9 code. It was assumeTrue(SystemInfoRt.IS_AT_LEAST_JAVA9 || !SystemInfoRt.isLinux) So the assumption was always true for Java >= 9. Therefore, it should be always true now. GitOrigin-RevId: 28b942870e35428cbafb97ad0e7cb61abfb7676f --- .../testSrc/com/intellij/ui/scale/IconScaleTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/platform-tests/testSrc/com/intellij/ui/scale/IconScaleTest.java b/platform/platform-tests/testSrc/com/intellij/ui/scale/IconScaleTest.java index 85ed33228c33..8a806b00d38f 100644 --- a/platform/platform-tests/testSrc/com/intellij/ui/scale/IconScaleTest.java +++ b/platform/platform-tests/testSrc/com/intellij/ui/scale/IconScaleTest.java @@ -4,7 +4,6 @@ package com.intellij.ui.scale; import com.intellij.openapi.util.IconLoader; import com.intellij.openapi.util.Pair; import com.intellij.openapi.util.ScalableIcon; -import com.intellij.openapi.util.SystemInfoRt; import com.intellij.testFramework.PlatformTestUtil; import com.intellij.testFramework.fixtures.BasePlatformTestCase; import com.intellij.ui.DeferredIconImpl; @@ -38,7 +37,6 @@ import static com.intellij.ui.scale.ScaleType.*; import static com.intellij.ui.scale.TestScaleHelper.*; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.offset; -import static org.junit.jupiter.api.Assumptions.assumeTrue; /** * Tests that {@link com.intellij.openapi.util.ScalableIcon#scale(float)} works correctly for custom JB icons. @@ -84,7 +82,6 @@ public class IconScaleTest extends BasePlatformTestCase { } private void jreHiDpi(float scale) throws MalformedURLException { - assumeTrue(!SystemInfoRt.isLinux); overrideJreHiDPIEnabled(true); test(1, scale); }