forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-bool-props.feature
More file actions
88 lines (82 loc) · 2.68 KB
/
run-bool-props.feature
File metadata and controls
88 lines (82 loc) · 2.68 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
87
88
Feature: Query or apply boolean property to a run
In order to query or change a boolean display property of a word or phrase
As a python-docx developer
I need a way to query and set the boolean properties on a run
Scenario Outline: Apply boolean property to a run
Given a run
When I assign True to its <boolean_prop_name> property
Then the run appears in <boolean_prop_name> unconditionally
Examples: Boolean run properties
| boolean_prop_name |
| all_caps |
| bold |
| complex_script |
| cs_bold |
| cs_italic |
| double_strike |
| emboss |
| hidden |
| italic |
| imprint |
| math |
| no_proof |
| outline |
| rtl |
| shadow |
| small_caps |
| snap_to_grid |
| spec_vanish |
| strike |
| web_hidden |
Scenario Outline: Set <boolean_prop_name> off unconditionally
Given a run
When I assign False to its <boolean_prop_name> property
Then the run appears without <boolean_prop_name> unconditionally
Examples: Boolean run properties
| boolean_prop_name |
| all_caps |
| bold |
| complex_script |
| cs_bold |
| cs_italic |
| double_strike |
| emboss |
| hidden |
| italic |
| imprint |
| math |
| no_proof |
| outline |
| rtl |
| shadow |
| small_caps |
| snap_to_grid |
| spec_vanish |
| strike |
| web_hidden |
Scenario Outline: Remove boolean property from a run
Given a run having <boolean_prop_name> set on
When I assign None to its <boolean_prop_name> property
Then the run appears with its inherited <boolean_prop_name> setting
Examples: Boolean run properties
| boolean_prop_name |
| all_caps |
| bold |
| complex_script |
| cs_bold |
| cs_italic |
| double_strike |
| emboss |
| hidden |
| italic |
| imprint |
| math |
| no_proof |
| outline |
| rtl |
| shadow |
| small_caps |
| snap_to_grid |
| spec_vanish |
| strike |
| web_hidden |