File: tab-tabstop-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 (68 lines) | stat: -rw-r--r-- 1,877 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
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
Feature: Tab stop properties
  To change the properties of an individual tab stop
  As a developer using python-docx
  I need a set of read/write properties on TabStop


  Scenario Outline: Get TabStop.position
    Given a tab stop 0.5 inches <in-or-out> from the paragraph left edge
     Then tab_stop.position is <position>

    Examples: tab stop positions
      | in-or-out | position |
      |    in     |  457200  |
      |    out    | -457200  |


  Scenario Outline: Set TabStop.position
    Given a tab stop 0.5 inches in from the paragraph left edge
     When I assign <value> to tab_stop.position
      Then tab_stop.position is <value>
       And the tab stops are sequenced in position order

    Examples: tab stop positions
      |  value  |
      |  228600 |
      | -914400 |


  Scenario Outline: Get TabStop.alignment
    Given a tab stop having <alignment> alignment
     Then tab_stop.alignment is <alignment>

    Examples: tab stop alignments
      | alignment |
      | LEFT      |
      | RIGHT     |


  Scenario Outline: Set TabStop.alignment
   Given a tab stop having <alignment> alignment
    When I assign <member> to tab_stop.alignment
     Then tab_stop.alignment is <member>

    Examples: tab stop alignments
      | alignment | member |
      | LEFT      | CENTER |
      | RIGHT     | LEFT   |


  Scenario Outline: Get TabStop.leader
    Given a tab stop having <leader> leader
     Then tab_stop.leader is <value>

    Examples: tab stop leaders
      | leader       | value  |
      | no specified | SPACES |
      | a dotted     | DOTS   |


  Scenario Outline: Set TabStop.leader
   Given a tab stop having <leader> leader
    When I assign <member> to tab_stop.leader
     Then tab_stop.leader is <member>

    Examples: tab stop leaders
      | leader       | member |
      | no specified | DOTS   |
      | a dotted     | SPACES |