plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGBunchThemeTest.kt [246:272]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - assertThemeSpec( p, featureCount = 2, expected = mapOf( "name" to "light", "flavor" to "darcula", // Keep flavor // "legend_position" to "bottom" // and theme option ) ) // Global theme should be stripped from the figure spec in grid val fig = (p.toSpec()["figures"] as List)[0] as Map<*, *> assertEquals("plot", fig["kind"]) // Make sure it's a plot assertFalse(fig.containsKey("theme")) } finally { // Clear global setting LetsPlot.theme = null } } @Test fun `grid global theme as feature list override cancelled`() { // Set global settings as combination os themes LetsPlot.theme = themeGrey() + flavorDarcula() // + theme().legendPositionBottom() try { val element = ggplot() + themeBW() // this should cancel global theme for this figure - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGGridThemeTest.kt [236:262]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - assertThemeSpec( p, featureCount = 2, expected = mapOf( "name" to "light", "flavor" to "darcula", // Keep flavor // "legend_position" to "bottom" // and theme option ) ) // Global theme should be stripped from the figure spec in grid val fig = (p.toSpec()["figures"] as List)[0] as Map<*, *> assertEquals("plot", fig["kind"]) // Make sure it's a plot assertFalse(fig.containsKey("theme")) } finally { // Clear global setting LetsPlot.theme = null } } @Test fun `grid global theme as feature list override cancelled`() { // Set global settings as combination os themes LetsPlot.theme = themeGrey() + flavorDarcula() // + theme().legendPositionBottom() try { val element = ggplot() + themeBW() // this should cancel global theme for this figure - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -