1package e2e23// Golden screens for the chart types and options past column, bar, line4// and pie: area, scatter, stacking and the axis bar.56var chartScreens = []screen{7 {name: "chart-area", setup: func(s *session) { chartOfType(s, 4, "Area chart") }},8 {name: "chart-scatter", setup: func(s *session) { chartWith(s, "Scatter chart", "6", "e") }},9 {name: "chart-stacked", setup: func(s *session) { chartWith(s, "Column chart", "k") }},10 {name: "chart-bar-percent", setup: func(s *session) { chartWith(s, "Bar chart", "2", "k", "k") }},11 {name: "chart-axes", setup: func(s *session) {12 spending(s)13 insertChart(s)14 s.keys("a", "p")15 s.waitFor("Legend right")16 }},17 {name: "chart-axes-narrow", opts: options{cols: 60, rows: 16}, setup: func(s *session) {18 spending(s)19 insertChart(s)20 s.keys("a")21 s.waitFor("Legend bottom")22 }},23}2425func init() {26 light := map[string]bool{"chart-area": true, "chart-scatter": true, "chart-stacked": true, "chart-axes": true}27 for _, sc := range chartScreens {28 screens = append(screens, sc)29 if light[sc.name] {30 sc.name += "-light"31 sc.opts.light = true32 screens = append(screens, sc)33 }34 }35}