-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathprs-open-save.feature
39 lines (33 loc) · 1.54 KB
/
prs-open-save.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
Feature: Round-trip a presentation
In order to satisfy myself that python-pptx might work
As a pptx developer
I want to see it pass a basic sanity-check
Scenario: Round-trip a basic presentation
Given a clean working directory
When I open a basic PowerPoint presentation
And I save the presentation
Then I see the pptx file in the working directory
Scenario: Start presentation from package stream
Given a clean working directory
When I open a presentation contained in a stream
And I save the presentation
Then I see the pptx file in the working directory
Scenario: Start presentation from package extracted into directory
Given a clean working directory
When I open a presentation extracted into a directory
And I save the presentation
Then I see the pptx file in the working directory
Scenario: Save presentation to package stream
Given a clean working directory
When I open a basic PowerPoint presentation
And I save the presentation to a stream
And I save that stream to a file
Then I see the pptx file in the working directory
Scenario: Round-trip external relationships
Given a presentation with external relationships
When I save and reload the presentation
Then the external relationships are still there
And the package has the expected number of .rels parts
Scenario: Load presentation with invalid image/jpg MIME-type
Given a presentation with an image/jpg MIME-type
Then I can access the JPEG image