File: run-enum-props.feature

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,216 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (35 lines) | stat: -rw-r--r-- 1,757 bytes parent folder | download | duplicates (3)
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
Feature: Query or apply enumerated run property
  In order to query or change an enumerated font property of a word or phrase
  As a python-docx developer
  I need a way to query and set the enumerated properties on a run


  Scenario Outline: Get underline value of a run
    Given a run having <underline-type> underline
     Then the run underline property value is <underline-value>

    Examples: underline property values
      | underline-type | underline-value     |
      | inherited      | None                |
      | no             | False               |
      | single         | True                |
      | double         | WD_UNDERLINE.DOUBLE |


  Scenario Outline: Change underline setting for a run
    Given a run having <underline-type> underline
     When I set the run underline to <new-underline-value>
     Then the run underline property value is <expected-underline-value>

    Examples: underline property values
      | underline-type | new-underline-value | expected-underline-value |
      | inherited      | True                | True                     |
      | inherited      | False               | False                    |
      | inherited      | None                | None                     |
      | inherited      | WD_UNDERLINE.SINGLE | True                     |
      | inherited      | WD_UNDERLINE.DOUBLE | WD_UNDERLINE.DOUBLE      |
      | single         | None                | None                     |
      | single         | True                | True                     |
      | single         | False               | False                    |
      | single         | WD_UNDERLINE.SINGLE | True                     |
      | single         | WD_UNDERLINE.DOUBLE | WD_UNDERLINE.DOUBLE      |