-
Notifications
You must be signed in to change notification settings - Fork 694
Expand file tree
/
Copy pathdml-line.feature
More file actions
86 lines (64 loc) · 3.1 KB
/
dml-line.feature
File metadata and controls
86 lines (64 loc) · 3.1 KB
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
Feature: Get and change line properties
In order to format a shape outline and other line elements
As a developer using python-pptx
I need a set of read/write line properties on line elements
Scenario: LineFormat.color
Given a LineFormat object as line
Then line.color is a ColorFormat object
Scenario Outline: LineFormat.dash_style getter
Given a LineFormat object as line having <current> dash style
Then line.dash_style is <dash-style>
Examples: Line dash styles
| current | dash-style |
| no explicit | None |
| solid | MSO_LINE.SOLID |
| dashed | MSO_LINE.DASH |
| dash-dot | MSO_LINE.DASH_DOT |
Scenario Outline: LineFormat.width setter
Given a LineFormat object as line having <current> dash style
When I assign <dash-style> to line.dash_style
Then line.dash_style is <dash-style>
Examples: Line dash style assignment scenarios
| current | dash-style |
| no explicit | MSO_LINE.DASH |
| dashed | MSO_LINE.SOLID |
| solid | None |
Scenario Outline: LineFormat.end_arrowhead_style getter
Given a LineFormat object as line having <arrowhead> end arrowhead
Then line.end_arrowhead_style is <value>
Examples: End arrowhead styles
| arrowhead | value |
| no explicit | None |
| triangle | MSO_LINE_END_TYPE.TRIANGLE |
Scenario: LineFormat.end_arrowhead_style setter
Given a LineFormat object as line having no explicit end arrowhead
When I assign MSO_LINE_END_TYPE.STEALTH to line.end_arrowhead_style
Then line.end_arrowhead_style is MSO_LINE_END_TYPE.STEALTH
Scenario Outline: LineFormat.begin_arrowhead_style getter
Given a LineFormat object as line having <arrowhead> begin arrowhead
Then line.begin_arrowhead_style is <value>
Examples: Begin arrowhead styles
| arrowhead | value |
| no explicit | None |
| stealth | MSO_LINE_END_TYPE.STEALTH |
Scenario: LineFormat.fill
Given a LineFormat object as line
Then line.fill is a FillFormat object
Scenario Outline: LineFormat.width getter
Given a LineFormat object as line having <line width> width
Then line.width is <reported line width>
Examples: Line widths
| line width | reported line width |
| no explicit | 0 |
| 1 pt | 1 pt |
Scenario Outline: LineFormat.width setter
Given a LineFormat object as line having <line width> width
When I assign <new line width> to line.width
Then line.width is <reported line width>
Examples: Line widths
| line width | new line width | reported line width |
| no explicit | None | 0 |
| no explicit | 1 pt | 1 pt |
| 1 pt | None | 0 |
| 1 pt | 1 pt | 1 pt |
| 1 pt | 2.34 pt | 2.34 pt |