plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGBunchThemeTest.kt [306:329]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun assertThemeSpec( figure: SubPlotsFigure, featureCount: Int, expected: Map<*, *> ) { assertThat(figure).features().length(featureCount) if (featureCount == 1) { val theme = assertThat(figure).features().get(0) val options = theme.isOptionsMap() .kind(Option.Plot.THEME) .options assertEquals( expected, options ) } // test 'toSpec()' val spec = figure.toSpec() assertEquals( expected, spec[Option.Plot.THEME] ) } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGGridThemeTest.kt [293:316]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun assertThemeSpec( figure: SubPlotsFigure, featureCount: Int, expected: Map<*, *> ) { assertThat(figure).features().length(featureCount) if (featureCount == 1) { val theme = assertThat(figure).features().get(0) val options = theme.isOptionsMap() .kind(Option.Plot.THEME) .options assertEquals( expected, options ) } // test 'toSpec()' val spec = figure.toSpec() assertEquals( expected, spec[Option.Plot.THEME] ) } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -