Skip to content

Commit 62f3bbb

Browse files
Stabilize Skia plot image tests across platforms
1 parent 8d5df33 commit 62f3bbb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lets-plot-compose/src/desktopTest/kotlin/org/jetbrains/letsPlot/visualtesting/compose/visualtesting

lets-plot-compose/src/desktopTest/kotlin/org/jetbrains/letsPlot/visualtesting/compose/visualtesting/SkiaAllPlotTests.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import org.jetbrains.letsPlot.visualtesting.plot.PlotInteractivityTest
1515
import kotlin.test.Test
1616

1717
class SkiaAllPlotTests {
18-
val awtBitmapIO = AwtBitmapIO(
18+
private val awtBitmapIO = AwtBitmapIO(
1919
expectedImagesDir = "/src/desktopTest/resources/expected-images",
2020
subdir = "visual-testing/plot"
2121
)
2222

23-
val skiaCanvasPeer = SkiaCanvasPeer(NotoFontManager.INSTANCE)
23+
private val skiaCanvasPeer = SkiaCanvasPeer(NotoFontManager.INSTANCE)
2424

25-
val imageComparer = ImageComparer(
25+
private val imageComparer = ImageComparer(
2626
canvasPeer = skiaCanvasPeer,
2727
bitmapIO = awtBitmapIO,
2828
profileAdjuster = { SKIA_PLOT_COMPARISON_PROFILE }, // use relaxed profile - skia produces unstable images
@@ -41,6 +41,6 @@ class SkiaAllPlotTests {
4141
}
4242

4343
companion object {
44-
private val SKIA_PLOT_COMPARISON_PROFILE = ComparisonProfile(tol = 2, maxShift = 1, allowedDiffPixelRatio = 0.02)
44+
private val SKIA_PLOT_COMPARISON_PROFILE = ComparisonProfile(tol = 2, maxShift = 2, allowedDiffPixelRatio = 0.06)
4545
}
4646
}

0 commit comments

Comments
 (0)