-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathact-action.feature
88 lines (76 loc) · 3.14 KB
/
act-action.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
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: Get and set click action properties
In order to determine the click action of a shape or text run
As a developer using python-pptx
I need a set of properties on ActionSetting
Scenario Outline: Get ActionSetting.action
Given a shape having click action <action>
Then click_action.action is <value>
Examples: Click actions
| action | value |
| none | NONE |
| first slide | FIRST_SLIDE |
| last slide | LAST_SLIDE |
| previous slide | PREVIOUS_SLIDE |
| next slide | NEXT_SLIDE |
| last slide viewed | LAST_SLIDE_VIEWED |
| named slide | NAMED_SLIDE |
| end show | END_SHOW |
| hyperlink | HYPERLINK |
| other presentation | PLAY |
| open file | OPEN_FILE |
| custom slide show | NAMED_SLIDE_SHOW |
| OLE action | OLE_VERB |
| run macro | RUN_MACRO |
| run program | RUN_PROGRAM |
| play media | NONE |
Scenario Outline: Get ActionSetting.hyperlink
Given a shape having click action <action>
Then click_action.hyperlink is a Hyperlink object
Examples: Click actions
| action |
| none |
| first slide |
| last slide |
| previous slide |
| next slide |
| last slide viewed |
| named slide |
| end show |
| hyperlink |
| other presentation |
| open file |
| custom slide show |
| OLE action |
| run macro |
| run program |
Scenario Outline: Get ActionSetting.target_slide
Given a shape having click action <action>
Then click_action.target_slide is <value>
Examples: Click actions
| action | value |
| none | None |
| first slide | slides[0] |
| last slide | slides[4] |
| previous slide | slides[1] |
| next slide | slides[3] |
| last slide viewed | None |
| named slide | slides[2] |
| end show | None |
| hyperlink | None |
| other presentation | None |
| open file | None |
| custom slide show | None |
| OLE action | None |
| run macro | None |
| run program | None |
Scenario Outline: Set ActionSetting.target_slide
Given an ActionSetting object having action <action> as click_action
And another slide in the deck as slide
When I assign <rhs> to click_action.target_slide
Then click_action.action is <member>
And click_action.target_slide is <value>
Examples: Click actions
| action | rhs | member | value |
| NONE | slide | NAMED_SLIDE | slide |
| NAMED_SLIDE | slide | NAMED_SLIDE | slide |
| NAMED_SLIDE | None | NONE | None |