plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGBunchThemeTest.kt [178:211]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - assertThemeSpec( p, featureCount = 2, expected = mapOf( "name" to "light", ) ) // 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 assertTrue(fig.containsKey("theme")) assertEquals( mapOf( "name" to "bw", ), fig["theme"] ) } finally { // Clear global setting LetsPlot.theme = null } } // with theme as list of features @Test fun `grid global theme as feature list applied`() { // Set global settings as combination of theme settings LetsPlot.theme = themeGrey() + flavorDarcula() + theme().legendPositionBottom() try { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plot-api/src/jvmTest/kotlin/org/jetbrains/letsPlot/GGGridThemeTest.kt [174:207]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - assertThemeSpec( p, featureCount = 2, expected = mapOf( "name" to "light", ) ) // 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 assertTrue(fig.containsKey("theme")) assertEquals( mapOf( "name" to "bw", ), fig["theme"] ) } finally { // Clear global setting LetsPlot.theme = null } } // with theme as list of features @Test fun `grid global theme as feature list applied`() { // Set global settings as combination of theme settings LetsPlot.theme = themeGrey() + flavorDarcula() + theme().legendPositionBottom() try { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -