-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathcht-datalabels.feature
208 lines (154 loc) · 6.77 KB
/
cht-datalabels.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
Feature: Access and modify data labels properties
In order to customize the appearance of data labels on a chart
As a developer using python-pptx
I need access to data label objects and their properties
# ---DataLabels---
Scenario Outline: DataLabel.show_category_name getter
Given a DataLabels object <showing-or-not> category-name as data_labels
Then data_labels.show_category_name is <value>
Examples: data_label.show_category_name states
| showing-or-not | value |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_category_name setter
Given a DataLabels object <showing-or-not> category-name as data_labels
When I assign <value> to data_labels.show_category_name
Then data_labels.show_category_name is <value>
Examples: data_label.show_category_name states
| showing-or-not | value |
| not showing | True |
| showing | False |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_legend_key getter
Given a DataLabels object <showing-or-not> legend-key as data_labels
Then data_labels.show_legend_key is <value>
Examples: data_label.show_legend_key states
| showing-or-not | value |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_legend_key setter
Given a DataLabels object <showing-or-not> legend-key as data_labels
When I assign <value> to data_labels.show_legend_key
Then data_labels.show_legend_key is <value>
Examples: data_label.show_legend_key states
| showing-or-not | value |
| not showing | True |
| showing | False |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_percentage getter
Given a DataLabels object <showing-or-not> percentage as data_labels
Then data_labels.show_percentage is <value>
Examples: data_label.show_percentage states
| showing-or-not | value |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_percentage setter
Given a DataLabels object <showing-or-not> percentage as data_labels
When I assign <value> to data_labels.show_percentage
Then data_labels.show_percentage is <value>
Examples: data_label.show_percentage states
| showing-or-not | value |
| not showing | True |
| showing | False |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_series_name getter
Given a DataLabels object <showing-or-not> series-name as data_labels
Then data_labels.show_series_name is <value>
Examples: data_label.show_series_name states
| showing-or-not | value |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_series_name setter
Given a DataLabels object <showing-or-not> series-name as data_labels
When I assign <value> to data_labels.show_series_name
Then data_labels.show_series_name is <value>
Examples: data_label.show_series_name states
| showing-or-not | value |
| not showing | True |
| showing | False |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_value getter
Given a DataLabels object <showing-or-not> value as data_labels
Then data_labels.show_series_name is <value>
Examples: data_label.show_value states
| showing-or-not | value |
| not showing | False |
| showing | True |
Scenario Outline: DataLabel.show_value setter
Given a DataLabels object <showing-or-not> value as data_labels
When I assign <value> to data_labels.show_value
Then data_labels.show_value is <value>
Examples: data_label.show_value states
| showing-or-not | value |
| not showing | True |
| showing | False |
| not showing | False |
| showing | True |
Scenario Outline: DataLabels.position getter
Given a DataLabels object with <position> position as data_labels
Then data_labels.position is <expected-value>
Examples: data_labels position values
| position | expected-value |
| inherited | None |
| inside-base | INSIDE_BASE |
Scenario Outline: DataLabels.position setter
Given a DataLabels object with <position> position as data_labels
When I assign <new-value> to data_labels.position
Then data_labels.position is <expected-value>
Examples: expected results of assignment to data_labels.position
| position | new-value | expected-value |
| inherited | INSIDE_END | INSIDE_END |
| inside-base | OUTSIDE_END | OUTSIDE_END |
| inside-base | None | None |
# ---DataLabel---
Scenario Outline: DataLabel.font
Given a data label <having-or-not> custom font as data_label
Then data_label.font is a Font object
Examples: data_label.font states
| having-or-not |
| having a |
| having no |
Scenario Outline: DataLabel.has_text_frame getter
Given a data label <having-or-not> custom text as data_label
Then data_label.has_text_frame is <value>
Examples: text frame presence cases
| having-or-not | value |
| having | True |
| having no | False |
Scenario Outline: DataLabel.has_text_frame setter
Given a data label <having-or-not> custom text as data_label
When I assign <new-value> to data_label.has_text_frame
Then data_label.has_text_frame is <value>
Examples: data_label.has_text_frame assignment cases
| having-or-not | new-value | value |
| having no | True | True |
| having | False | False |
| having no | False | False |
| having | True | True |
Scenario Outline: DataLabel.position getter
Given a data label with <position> position as data_label
Then data_label.position is <value>
Examples: data_label.position cases
| position | value |
| inherited | None |
| centered | CENTER |
Scenario Outline: DataLabel.position setter
Given a data label with <position> position as data_label
When I assign <value> to data_label.position
Then data_label.position is <value>
Examples: data_label.position assignment cases
| position | value |
| inherited | CENTER |
| centered | BELOW |
| below | None |
Scenario Outline: DataLabel.text_frame
Given a data label <having-or-not> custom text as data_label
Then data_label.text_frame is a TextFrame object
Examples: text frame presence cases
| having-or-not |
| having |
| having no |