[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
This commit is contained in:
Sergei Tachenov
2025-09-24 15:26:56 +00:00
committed by intellij-monorepo-bot
parent ddee155700
commit f494c6759d
@@ -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);
}