-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathdml-line.feature
62 lines (46 loc) · 2.11 KB
/
dml-line.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
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: 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 |