xref: /trunk/test/odf-validate/fixtures/normal-values5b/checks-image.json (revision 0e16a31d78a652c56c5c0fc79c752f48b9048df9)
1[
2 {
3  "name": "symbol_image",
4  "expr": "[(n, [(str(s.Symbol.Style.value), s.Symbol.Graphic is not None, s.Symbol.Graphic.Type if s.Symbol.Graphic is not None else None, s.Symbol.Size.Width, s.Symbol.Size.Height) for s in sh.Charts.getByName(n).EmbeddedObject.getFirstDiagram().getCoordinateSystems()[0].getChartTypes()[0].getDataSeries()]) for sh in [doc.Sheets.getByIndex(0)] for n in sh.Charts.ElementNames]",
5  "expect": [
6   [
7    "c1",
8    [
9     [
10      "GRAPHIC",
11      true,
12      1,
13      250,
14      250
15     ],
16     [
17      "AUTO",
18      false,
19      null,
20      175,
21      175
22     ]
23    ]
24   ],
25   [
26    "c2",
27    [
28     [
29      "NONE",
30      false,
31      null,
32      250,
33      250
34     ],
35     [
36      "NONE",
37      false,
38      null,
39      250,
40      250
41     ]
42    ]
43   ]
44  ]
45 },
46 {
47  "name": "series_data",
48  "expr": "[(n, [[list(q.Values.getData()) for q in s.getDataSequences()] for s in sh.Charts.getByName(n).EmbeddedObject.getFirstDiagram().getCoordinateSystems()[0].getChartTypes()[0].getDataSeries()]) for sh in [doc.Sheets.getByIndex(0)] for n in sh.Charts.ElementNames]",
49  "expect": [
50   [
51    "c1",
52    [
53     [
54      [
55       1.0,
56       3.0,
57       4.0
58      ]
59     ],
60     [
61      []
62     ]
63    ]
64   ],
65   [
66    "c2",
67    [
68     [
69      [
70       1.0,
71       3.0,
72       4.0
73      ]
74     ],
75     [
76      []
77     ]
78    ]
79   ]
80  ]
81 }
82]
83