aspose_slides_cloud 23.9.0 → 23.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -7
- data/README.md +4 -0
- data/aspose_slides_cloud.gemspec +0 -1
- data/docker-entrypoint.sh +1 -0
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +273 -0
- data/lib/aspose_slides_cloud/api_client.rb +2 -1
- data/lib/aspose_slides_cloud/models/operation.rb +209 -0
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +2016 -2016
- data/spec/api/slides_async_api_spec.rb +554 -0
- data/spec/spec_utils.rb +38 -7
- data/spec/use_cases/abstract_class_spec.rb +1 -1
- data/spec/use_cases/animation_spec.rb +28 -28
- data/spec/use_cases/async_api_spec.rb +82 -0
- data/spec/use_cases/chart_spec.rb +51 -51
- data/spec/use_cases/comment_spec.rb +17 -17
- data/spec/use_cases/create_spec.rb +22 -22
- data/spec/use_cases/font_spec.rb +24 -24
- data/spec/use_cases/header_footer_spec.rb +9 -9
- data/spec/use_cases/hyperlink_spec.rb +10 -10
- data/spec/use_cases/image_spec.rb +16 -16
- data/spec/use_cases/layout_slide_spec.rb +41 -41
- data/spec/use_cases/master_slide_spec.rb +40 -40
- data/spec/use_cases/math_spec.rb +15 -15
- data/spec/use_cases/merge_spec.rb +15 -15
- data/spec/use_cases/notes_slide_spec.rb +39 -39
- data/spec/use_cases/nullable_field_spec.rb +7 -7
- data/spec/use_cases/paragraph_spec.rb +38 -38
- data/spec/use_cases/pipeline_spec.rb +1 -1
- data/spec/use_cases/portion_spec.rb +34 -34
- data/spec/use_cases/property_spec.rb +38 -38
- data/spec/use_cases/section_spec.rb +16 -16
- data/spec/use_cases/shape_format_spec.rb +12 -12
- data/spec/use_cases/shape_spec.rb +87 -87
- data/spec/use_cases/slide_spec.rb +32 -32
- data/spec/use_cases/split_spec.rb +12 -12
- data/spec/use_cases/table_spec.rb +38 -38
- data/spec/use_cases/text_format_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +28 -28
- data/spec/use_cases/vba_spec.rb +10 -10
- data/spec/use_cases/watermark_spec.rb +36 -36
- data/testConfig.json +2 -1
- data/testRules.json +7 -0
- metadata +8 -24
- data/spec/use_cases/convert_spec.rb +0 -199
@@ -30,19 +30,19 @@ describe 'UseCases' do
|
|
30
30
|
source_file = "TemplateCV.pptx"
|
31
31
|
source_path = folder_name + "/" + source_file
|
32
32
|
password = "password"
|
33
|
-
AsposeSlidesCloud::SpecUtils.
|
34
|
-
AsposeSlidesCloud::SpecUtils.
|
33
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
34
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + source_file, source_path)
|
35
35
|
|
36
|
-
master_slides = AsposeSlidesCloud::SpecUtils.
|
36
|
+
master_slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_master_slides(file_name, password, folder_name)
|
37
37
|
expect(master_slides.slide_list.length).to eq(1)
|
38
38
|
|
39
|
-
master_slide = AsposeSlidesCloud::SpecUtils.
|
39
|
+
master_slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_master_slide(file_name, 1, password, folder_name)
|
40
40
|
expect(master_slide.name).to eq("Office Theme")
|
41
41
|
|
42
|
-
master_slide = AsposeSlidesCloud::SpecUtils.
|
42
|
+
master_slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_master_slide(file_name, source_path, 1, nil, nil, nil, password, folder_name)
|
43
43
|
expect(master_slide.name).to eq("Digital portfolio")
|
44
44
|
|
45
|
-
master_slides = AsposeSlidesCloud::SpecUtils.
|
45
|
+
master_slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_master_slides(file_name, password, folder_name)
|
46
46
|
expect(master_slides.slide_list.length).to eq(2)
|
47
47
|
end
|
48
48
|
|
@@ -52,9 +52,9 @@ describe 'UseCases' do
|
|
52
52
|
password = "password"
|
53
53
|
slide_index = 1
|
54
54
|
shape_count = 6
|
55
|
-
AsposeSlidesCloud::SpecUtils.
|
55
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
56
56
|
|
57
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
57
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, password, folder_name)
|
58
58
|
expect(shapes.shapes_links.length).to eq(shape_count)
|
59
59
|
|
60
60
|
dto = AsposeSlidesCloud::Shape.new
|
@@ -64,19 +64,19 @@ describe 'UseCases' do
|
|
64
64
|
dto.height = 200
|
65
65
|
dto.shape_type = "Rectangle"
|
66
66
|
dto.text = "New shape"
|
67
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
67
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, dto, nil, nil, password, folder_name)
|
68
68
|
expect(shape.text).to eq(dto.text)
|
69
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
69
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, password, folder_name)
|
70
70
|
expect(shapes.shapes_links.length).to eq(shape_count + 1)
|
71
71
|
|
72
72
|
dto.text = "updated shape"
|
73
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
73
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_count + 1, dto, password, folder_name)
|
74
74
|
expect(shape.text).to eq(dto.text)
|
75
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
75
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, password, folder_name)
|
76
76
|
expect(shapes.shapes_links.length).to eq(shape_count + 1)
|
77
77
|
|
78
|
-
AsposeSlidesCloud::SpecUtils.
|
79
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
78
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_count + 1, password, folder_name)
|
79
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, password, folder_name)
|
80
80
|
expect(shapes.shapes_links.length).to eq(shape_count)
|
81
81
|
end
|
82
82
|
|
@@ -87,9 +87,9 @@ describe 'UseCases' do
|
|
87
87
|
slide_index = 1
|
88
88
|
shape_index = 2
|
89
89
|
paragraph_count = 5
|
90
|
-
AsposeSlidesCloud::SpecUtils.
|
90
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
91
91
|
|
92
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
92
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, password, folder_name)
|
93
93
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count)
|
94
94
|
|
95
95
|
portion = AsposeSlidesCloud::Portion.new
|
@@ -97,20 +97,20 @@ describe 'UseCases' do
|
|
97
97
|
dto = AsposeSlidesCloud::Paragraph.new
|
98
98
|
dto.alignment = "Right"
|
99
99
|
dto.portion_list = [ portion ]
|
100
|
-
paragraph = AsposeSlidesCloud::SpecUtils.
|
100
|
+
paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, dto, nil, password, folder_name)
|
101
101
|
expect(paragraph.alignment).to eq(dto.alignment)
|
102
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
102
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, password, folder_name)
|
103
103
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count + 1)
|
104
104
|
|
105
105
|
dto = AsposeSlidesCloud::Paragraph.new
|
106
106
|
dto.alignment = "Center"
|
107
|
-
paragraph = AsposeSlidesCloud::SpecUtils.
|
107
|
+
paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_count + 1, dto, password, folder_name)
|
108
108
|
expect(paragraph.alignment).to eq(dto.alignment)
|
109
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
109
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, password, folder_name)
|
110
110
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count + 1)
|
111
111
|
|
112
|
-
AsposeSlidesCloud::SpecUtils.
|
113
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
112
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_count + 1, password, folder_name)
|
113
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, password, folder_name)
|
114
114
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count)
|
115
115
|
end
|
116
116
|
|
@@ -122,32 +122,32 @@ describe 'UseCases' do
|
|
122
122
|
shape_index = 2
|
123
123
|
paragraph_index = 3
|
124
124
|
portion_count = 1
|
125
|
-
AsposeSlidesCloud::SpecUtils.
|
125
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
126
126
|
|
127
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
127
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, password, folder_name)
|
128
128
|
expect(portions.items.length).to eq(portion_count)
|
129
129
|
|
130
130
|
dto = AsposeSlidesCloud::Portion.new
|
131
131
|
dto.text = "New portion"
|
132
132
|
dto.font_bold = "True"
|
133
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
133
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, dto, nil, password, folder_name)
|
134
134
|
expect(portion.font_bold).to eq(dto.font_bold)
|
135
135
|
expect(portion.text).to eq(dto.text)
|
136
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
136
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, password, folder_name)
|
137
137
|
expect(portions.items.length).to eq(portion_count + 1)
|
138
138
|
|
139
139
|
dto2 = AsposeSlidesCloud::Portion.new
|
140
140
|
dto2.text = "Updated portion"
|
141
141
|
dto2.font_height = 22
|
142
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
142
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, portion_count + 1, dto2, password, folder_name)
|
143
143
|
expect(portion.font_bold).to eq(dto.font_bold)
|
144
144
|
expect(portion.font_height).to eq(dto2.font_height)
|
145
145
|
expect(portion.text).to eq(dto2.text)
|
146
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
146
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, password, folder_name)
|
147
147
|
expect(portions.items.length).to eq(portion_count + 1)
|
148
148
|
|
149
|
-
AsposeSlidesCloud::SpecUtils.
|
150
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
149
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, portion_count + 1, password, folder_name)
|
150
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, shape_index, paragraph_index, password, folder_name)
|
151
151
|
expect(portions.items.length).to eq(portion_count)
|
152
152
|
end
|
153
153
|
|
@@ -156,9 +156,9 @@ describe 'UseCases' do
|
|
156
156
|
file_name = "test.pptx"
|
157
157
|
password = "password"
|
158
158
|
slide_index = 1
|
159
|
-
AsposeSlidesCloud::SpecUtils.
|
159
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
160
160
|
|
161
|
-
animation = AsposeSlidesCloud::SpecUtils.
|
161
|
+
animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, nil, nil, password, folder_name)
|
162
162
|
expect(animation.main_sequence.length).to eq(1)
|
163
163
|
|
164
164
|
effect1 = AsposeSlidesCloud::Effect.new
|
@@ -171,19 +171,19 @@ describe 'UseCases' do
|
|
171
171
|
|
172
172
|
dto = AsposeSlidesCloud::SlideAnimation.new
|
173
173
|
dto.main_sequence = [ effect1, effect2 ]
|
174
|
-
animation = AsposeSlidesCloud::SpecUtils.
|
174
|
+
animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, dto, password, folder_name)
|
175
175
|
expect(animation.main_sequence.length).to eq(dto.main_sequence.length)
|
176
176
|
|
177
|
-
animation = AsposeSlidesCloud::SpecUtils.
|
177
|
+
animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, 3, nil, password, folder_name)
|
178
178
|
expect(animation.main_sequence.length).to eq(1)
|
179
179
|
|
180
|
-
AsposeSlidesCloud::SpecUtils.
|
180
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_animation_effect(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, 2, password, folder_name)
|
181
181
|
expect(animation.main_sequence.length).to eq(dto.main_sequence.length - 1)
|
182
182
|
|
183
|
-
animation = AsposeSlidesCloud::SpecUtils.
|
183
|
+
animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, 3, nil, password, folder_name)
|
184
184
|
expect(animation.main_sequence.length).to eq(0)
|
185
185
|
|
186
|
-
AsposeSlidesCloud::SpecUtils.
|
186
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::MASTER_SLIDE, password, folder_name)
|
187
187
|
expect(animation.main_sequence.length).to eq(0)
|
188
188
|
end
|
189
189
|
|
@@ -191,15 +191,15 @@ describe 'UseCases' do
|
|
191
191
|
folder_name = "TempSlidesSDK"
|
192
192
|
file_name = "test.pptx"
|
193
193
|
password = "password"
|
194
|
-
AsposeSlidesCloud::SpecUtils.
|
195
|
-
response = AsposeSlidesCloud::SpecUtils.
|
194
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
195
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_unused_master_slides(file_name, true, password, folder_name)
|
196
196
|
expect(response.slide_list.length).to eq(1)
|
197
197
|
end
|
198
198
|
|
199
199
|
it "delete unused online" do
|
200
200
|
source = File.binread("TestData/test.pptx")
|
201
201
|
password = "password"
|
202
|
-
response = AsposeSlidesCloud::SpecUtils.
|
202
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_unused_master_slides_online(source, true, password)
|
203
203
|
expect(response.size).not_to eq(0)
|
204
204
|
end
|
205
205
|
end
|
data/spec/use_cases/math_spec.rb
CHANGED
@@ -27,9 +27,9 @@ describe 'UseCases' do
|
|
27
27
|
it 'get' do
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
|
-
AsposeSlidesCloud::SpecUtils.
|
30
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
31
31
|
|
32
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
32
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion(file_name, 2, 3, 1, 1, "password", folder_name)
|
33
33
|
expect(portion.math_paragraph).to be_truthy
|
34
34
|
expect(portion.math_paragraph.math_block_list).to be_truthy
|
35
35
|
expect(portion.math_paragraph.math_block_list.length).to eq(1)
|
@@ -41,16 +41,16 @@ describe 'UseCases' do
|
|
41
41
|
it 'get null' do
|
42
42
|
folder_name = "TempSlidesSDK"
|
43
43
|
file_name = "test.pptx"
|
44
|
-
AsposeSlidesCloud::SpecUtils.
|
44
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
45
45
|
|
46
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
46
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion(file_name, 2, 1, 1, 1, "password", folder_name)
|
47
47
|
expect(portion.math_paragraph).not_to be_truthy
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'create' do
|
51
51
|
folder_name = "TempSlidesSDK"
|
52
52
|
file_name = "test.pptx"
|
53
|
-
AsposeSlidesCloud::SpecUtils.
|
53
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
54
54
|
|
55
55
|
dto = AsposeSlidesCloud::Portion.new
|
56
56
|
math_paragraph = AsposeSlidesCloud::MathParagraph.new
|
@@ -80,7 +80,7 @@ describe 'UseCases' do
|
|
80
80
|
math_block.math_element_list = [ function_element ]
|
81
81
|
math_paragraph.math_block_list = [ math_block ]
|
82
82
|
dto.math_paragraph = math_paragraph
|
83
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
83
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_portion(file_name, 1, 1, 1, dto, nil, "password", folder_name)
|
84
84
|
expect(portion.math_paragraph).to be_truthy
|
85
85
|
expect(portion.math_paragraph.math_block_list).to be_truthy
|
86
86
|
expect(portion.math_paragraph.math_block_list.length).to eq(1)
|
@@ -92,7 +92,7 @@ describe 'UseCases' do
|
|
92
92
|
it 'update' do
|
93
93
|
folder_name = "TempSlidesSDK"
|
94
94
|
file_name = "test.pptx"
|
95
|
-
AsposeSlidesCloud::SpecUtils.
|
95
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
96
96
|
|
97
97
|
dto = AsposeSlidesCloud::Portion.new
|
98
98
|
math_paragraph = AsposeSlidesCloud::MathParagraph.new
|
@@ -122,7 +122,7 @@ describe 'UseCases' do
|
|
122
122
|
math_block.math_element_list = [ function_element ]
|
123
123
|
math_paragraph.math_block_list = [ math_block ]
|
124
124
|
dto.math_paragraph = math_paragraph
|
125
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
125
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_portion(file_name, 2, 3, 1, 1, dto, "password", folder_name)
|
126
126
|
expect(portion.math_paragraph).to be_truthy
|
127
127
|
expect(portion.math_paragraph.math_block_list).to be_truthy
|
128
128
|
expect(portion.math_paragraph.math_block_list.length).to eq(1)
|
@@ -134,17 +134,17 @@ describe 'UseCases' do
|
|
134
134
|
it 'download' do
|
135
135
|
folder_name = "TempSlidesSDK"
|
136
136
|
file_name = "test.pptx"
|
137
|
-
AsposeSlidesCloud::SpecUtils.
|
138
|
-
mathMl = AsposeSlidesCloud::SpecUtils.
|
137
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
138
|
+
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml(file_name, 2, 3, 1, 1, "password", folder_name)
|
139
139
|
expect(mathMl).to be_truthy
|
140
140
|
end
|
141
141
|
|
142
142
|
it 'download null' do
|
143
143
|
folder_name = "TempSlidesSDK"
|
144
144
|
file_name = "test.pptx"
|
145
|
-
AsposeSlidesCloud::SpecUtils.
|
145
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
146
146
|
begin
|
147
|
-
AsposeSlidesCloud::SpecUtils.
|
147
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml(file_name, 2, 1, 1, 1, "password", folder_name)
|
148
148
|
fail "Must have failed because conversion to MathML works only for math portions"
|
149
149
|
rescue AsposeSlidesCloud::ApiError => e
|
150
150
|
expect(e.code).to eq(400)
|
@@ -155,9 +155,9 @@ describe 'UseCases' do
|
|
155
155
|
folder_name = "TempSlidesSDK"
|
156
156
|
file_name = "test.pptx"
|
157
157
|
out_path = folder_name + "/mathml.xml"
|
158
|
-
AsposeSlidesCloud::SpecUtils.
|
159
|
-
mathMl = AsposeSlidesCloud::SpecUtils.
|
160
|
-
expect(AsposeSlidesCloud::SpecUtils.
|
158
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
159
|
+
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml(file_name, 2, 3, 1, 1, out_path, "password", folder_name)
|
160
|
+
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(out_path).exists).to be true
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
@@ -30,12 +30,12 @@ describe 'UseCases' do
|
|
30
30
|
file_name2 = "test-unprotected.pptx"
|
31
31
|
file_name_pdf = "test.pdf"
|
32
32
|
password = "password"
|
33
|
-
AsposeSlidesCloud::SpecUtils.
|
34
|
-
AsposeSlidesCloud::SpecUtils.
|
35
|
-
AsposeSlidesCloud::SpecUtils.
|
33
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
34
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name2, folder_name + "/" + file_name2)
|
35
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name_pdf, folder_name + "/" + file_name_pdf)
|
36
36
|
request = AsposeSlidesCloud::PresentationsMergeRequest.new
|
37
37
|
request.presentation_paths = [ folder_name + "/" + file_name2, folder_name + "/" + file_name_pdf ]
|
38
|
-
AsposeSlidesCloud::SpecUtils.
|
38
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.merge(file_name, request, password, folder_name)
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'ordered storage' do
|
@@ -43,21 +43,21 @@ describe 'UseCases' do
|
|
43
43
|
file_name = "test.pptx"
|
44
44
|
file_name2 = "test-unprotected.pptx"
|
45
45
|
password = "password"
|
46
|
-
AsposeSlidesCloud::SpecUtils.
|
47
|
-
AsposeSlidesCloud::SpecUtils.
|
46
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
47
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name2, folder_name + "/" + file_name2)
|
48
48
|
request = AsposeSlidesCloud::OrderedMergeRequest.new
|
49
49
|
presentation = AsposeSlidesCloud::PresentationToMerge.new
|
50
50
|
presentation.path = folder_name + "/" + file_name2
|
51
51
|
presentation.slides = [ 2, 1 ]
|
52
52
|
request.presentations = [ presentation ]
|
53
|
-
AsposeSlidesCloud::SpecUtils.
|
53
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.ordered_merge(file_name, request, password, folder_name)
|
54
54
|
end
|
55
55
|
|
56
56
|
it 'request' do
|
57
57
|
source1 = File.binread("TestData/TemplateCV.pptx")
|
58
58
|
source2 = File.binread("TestData/test-unprotected.pptx")
|
59
59
|
files = [ source1, source2 ]
|
60
|
-
AsposeSlidesCloud::SpecUtils.
|
60
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_online(files)
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'request save' do
|
@@ -65,8 +65,8 @@ describe 'UseCases' do
|
|
65
65
|
source1 = File.binread("TestData/TemplateCV.pptx")
|
66
66
|
source2 = File.binread("TestData/test-unprotected.pptx")
|
67
67
|
files = [ source1, source2 ]
|
68
|
-
AsposeSlidesCloud::SpecUtils.
|
69
|
-
expect(AsposeSlidesCloud::SpecUtils.
|
68
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_and_save_online(out_path, files)
|
69
|
+
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(out_path).exists).to be true
|
70
70
|
end
|
71
71
|
|
72
72
|
it 'ordered request' do
|
@@ -81,13 +81,13 @@ describe 'UseCases' do
|
|
81
81
|
presentation2.path = "file2"
|
82
82
|
presentation2.slides = [ 1, 2 ]
|
83
83
|
request.presentations = [ presentation1, presentation2 ]
|
84
|
-
AsposeSlidesCloud::SpecUtils.
|
84
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_online(files, request)
|
85
85
|
end
|
86
86
|
|
87
87
|
it 'ordered combined' do
|
88
88
|
folder_name = "TempSlidesSDK"
|
89
89
|
file_name2 = "test-unprotected.pptx"
|
90
|
-
AsposeSlidesCloud::SpecUtils.
|
90
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name2, folder_name + "/" + file_name2)
|
91
91
|
source = File.binread("TestData/test.pptx")
|
92
92
|
files = [ source ]
|
93
93
|
request = AsposeSlidesCloud::OrderedMergeRequest.new
|
@@ -99,14 +99,14 @@ describe 'UseCases' do
|
|
99
99
|
presentation2.source = 'Storage'
|
100
100
|
presentation2.path = folder_name + "/" + file_name2
|
101
101
|
request.presentations = [ presentation1, presentation2 ]
|
102
|
-
AsposeSlidesCloud::SpecUtils.
|
102
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_online(files, request)
|
103
103
|
end
|
104
104
|
|
105
105
|
it "ordered url" do
|
106
106
|
folder_name = "TempSlidesSDK"
|
107
107
|
file_name = "test.pptx"
|
108
108
|
password = "password"
|
109
|
-
AsposeSlidesCloud::SpecUtils.
|
109
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
110
110
|
|
111
111
|
request = AsposeSlidesCloud::OrderedMergeRequest.new
|
112
112
|
presentation_to_merge1 = AsposeSlidesCloud::PresentationToMerge.new
|
@@ -119,7 +119,7 @@ describe 'UseCases' do
|
|
119
119
|
presentation_to_merge2.source = "Url"
|
120
120
|
presentation_to_merge2.path = "https://drive.google.com/uc?export=download&id=1ycMzd7e--Ro9H8eH2GL5fPP7-2HjX4My"
|
121
121
|
request.presentations = [presentation_to_merge1, presentation_to_merge2]
|
122
|
-
response = AsposeSlidesCloud::SpecUtils.
|
122
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_online(nil, request)
|
123
123
|
expect(response.size).not_to eq(0)
|
124
124
|
end
|
125
125
|
end
|
@@ -27,41 +27,41 @@ describe 'UseCases' do
|
|
27
27
|
it 'get from storage' do
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
|
-
AsposeSlidesCloud::SpecUtils.
|
31
|
-
result = AsposeSlidesCloud::SpecUtils.
|
30
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
31
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_notes_slide(file_name, 1, "password", folder_name)
|
32
32
|
expect(result.text).to be_truthy
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'exists from storage' do
|
36
36
|
folder_name = "TempSlidesSDK"
|
37
37
|
file_name = "test.pptx"
|
38
|
-
AsposeSlidesCloud::SpecUtils.
|
39
|
-
result = AsposeSlidesCloud::SpecUtils.
|
38
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
39
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.notes_slide_exists(file_name, 1, "password", folder_name)
|
40
40
|
expect(result.exists).to be true
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'download from storage' do
|
44
44
|
folder_name = "TempSlidesSDK"
|
45
45
|
file_name = "test.pptx"
|
46
|
-
AsposeSlidesCloud::SpecUtils.
|
47
|
-
AsposeSlidesCloud::SpecUtils.
|
46
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
47
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.download_notes_slide(file_name, 1, AsposeSlidesCloud::NotesSlideExportFormat::PNG, nil, nil, "password", folder_name)
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'get from request' do
|
51
51
|
source = File.binread("TestData/test.pptx")
|
52
|
-
result = AsposeSlidesCloud::SpecUtils.
|
52
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_notes_slide_online(source, 1, "password")
|
53
53
|
expect(result.text).to be_truthy
|
54
54
|
end
|
55
55
|
|
56
56
|
it 'exists from request' do
|
57
57
|
source = File.binread("TestData/test.pptx")
|
58
|
-
result = AsposeSlidesCloud::SpecUtils.
|
58
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.notes_slide_exists_online(source, 1, "password")
|
59
59
|
expect(result.exists).to be true
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'download from request' do
|
63
63
|
source = File.binread("TestData/test.pptx")
|
64
|
-
AsposeSlidesCloud::SpecUtils.
|
64
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.download_notes_slide_online(source, 1, AsposeSlidesCloud::NotesSlideExportFormat::PNG, nil, nil, "password")
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'shapes' do
|
@@ -70,9 +70,9 @@ describe 'UseCases' do
|
|
70
70
|
password = "password"
|
71
71
|
slide_index = 1
|
72
72
|
shape_count = 3
|
73
|
-
AsposeSlidesCloud::SpecUtils.
|
73
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
74
74
|
|
75
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
75
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, password, folder_name)
|
76
76
|
expect(shapes.shapes_links.length).to eq(shape_count)
|
77
77
|
|
78
78
|
dto = AsposeSlidesCloud::Shape.new
|
@@ -82,19 +82,19 @@ describe 'UseCases' do
|
|
82
82
|
dto.height = 200
|
83
83
|
dto.shape_type = "Rectangle"
|
84
84
|
dto.text = "New shape"
|
85
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
85
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, dto, nil, nil, password, folder_name)
|
86
86
|
expect(shape.text).to eq(dto.text)
|
87
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
87
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, password, folder_name)
|
88
88
|
expect(shapes.shapes_links.length).to eq(shape_count + 1)
|
89
89
|
|
90
90
|
dto.text = "updated shape"
|
91
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
91
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_count + 1, dto, password, folder_name)
|
92
92
|
expect(shape.text).to eq(dto.text)
|
93
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
93
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, password, folder_name)
|
94
94
|
expect(shapes.shapes_links.length).to eq(shape_count + 1)
|
95
95
|
|
96
|
-
AsposeSlidesCloud::SpecUtils.
|
97
|
-
shapes = AsposeSlidesCloud::SpecUtils.
|
96
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_count + 1, password, folder_name)
|
97
|
+
shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, password, folder_name)
|
98
98
|
expect(shapes.shapes_links.length).to eq(shape_count)
|
99
99
|
end
|
100
100
|
|
@@ -105,9 +105,9 @@ describe 'UseCases' do
|
|
105
105
|
slide_index = 1
|
106
106
|
shape_index = 2
|
107
107
|
paragraph_count = 1
|
108
|
-
AsposeSlidesCloud::SpecUtils.
|
108
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
109
109
|
|
110
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
110
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, password, folder_name)
|
111
111
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count)
|
112
112
|
|
113
113
|
portion = AsposeSlidesCloud::Portion.new
|
@@ -115,20 +115,20 @@ describe 'UseCases' do
|
|
115
115
|
dto = AsposeSlidesCloud::Paragraph.new
|
116
116
|
dto.alignment = "Right"
|
117
117
|
dto.portion_list = [ portion ]
|
118
|
-
paragraph = AsposeSlidesCloud::SpecUtils.
|
118
|
+
paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, dto, nil, password, folder_name)
|
119
119
|
expect(paragraph.alignment).to eq(dto.alignment)
|
120
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
120
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, password, folder_name)
|
121
121
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count + 1)
|
122
122
|
|
123
123
|
dto = AsposeSlidesCloud::Paragraph.new
|
124
124
|
dto.alignment = "Center"
|
125
|
-
paragraph = AsposeSlidesCloud::SpecUtils.
|
125
|
+
paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_count + 1, dto, password, folder_name)
|
126
126
|
expect(paragraph.alignment).to eq(dto.alignment)
|
127
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
127
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, password, folder_name)
|
128
128
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count + 1)
|
129
129
|
|
130
|
-
AsposeSlidesCloud::SpecUtils.
|
131
|
-
paragraphs = AsposeSlidesCloud::SpecUtils.
|
130
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_count + 1, password, folder_name)
|
131
|
+
paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, password, folder_name)
|
132
132
|
expect(paragraphs.paragraph_links.length).to eq(paragraph_count)
|
133
133
|
end
|
134
134
|
|
@@ -140,32 +140,32 @@ describe 'UseCases' do
|
|
140
140
|
shape_index = 2
|
141
141
|
paragraph_index = 1
|
142
142
|
portion_count = 1
|
143
|
-
AsposeSlidesCloud::SpecUtils.
|
143
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
144
144
|
|
145
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
145
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, password, folder_name)
|
146
146
|
expect(portions.items.length).to eq(portion_count)
|
147
147
|
|
148
148
|
dto = AsposeSlidesCloud::Portion.new
|
149
149
|
dto.text = "New portion"
|
150
150
|
dto.font_bold = "True"
|
151
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
151
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, dto, nil, password, folder_name)
|
152
152
|
expect(portion.font_bold).to eq(dto.font_bold)
|
153
153
|
expect(portion.text).to eq(dto.text)
|
154
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
154
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, password, folder_name)
|
155
155
|
expect(portions.items.length).to eq(portion_count + 1)
|
156
156
|
|
157
157
|
dto2 = AsposeSlidesCloud::Portion.new
|
158
158
|
dto2.text = "Updated portion"
|
159
159
|
dto2.font_height = 22
|
160
|
-
portion = AsposeSlidesCloud::SpecUtils.
|
160
|
+
portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, portion_count + 1, dto2, password, folder_name)
|
161
161
|
expect(portion.font_bold).to eq(dto.font_bold)
|
162
162
|
expect(portion.font_height).to eq(dto2.font_height)
|
163
163
|
expect(portion.text).to eq(dto2.text)
|
164
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
164
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, password, folder_name)
|
165
165
|
expect(portions.items.length).to eq(portion_count + 1)
|
166
166
|
|
167
|
-
AsposeSlidesCloud::SpecUtils.
|
168
|
-
portions = AsposeSlidesCloud::SpecUtils.
|
167
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, portion_count + 1, password, folder_name)
|
168
|
+
portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::NOTES_SLIDE, shape_index, paragraph_index, password, folder_name)
|
169
169
|
expect(portions.items.length).to eq(portion_count)
|
170
170
|
end
|
171
171
|
|
@@ -174,10 +174,10 @@ describe 'UseCases' do
|
|
174
174
|
file_name = "test.pptx"
|
175
175
|
password = "password"
|
176
176
|
slide_index = 1
|
177
|
-
AsposeSlidesCloud::SpecUtils.
|
177
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
178
178
|
dto = AsposeSlidesCloud::NotesSlide.new
|
179
179
|
dto.text = "Notes slide text"
|
180
|
-
response = AsposeSlidesCloud::SpecUtils.
|
180
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_notes_slide(file_name, slide_index, dto, password, folder_name)
|
181
181
|
expect(response.text).to eq(dto.text)
|
182
182
|
end
|
183
183
|
|
@@ -186,10 +186,10 @@ describe 'UseCases' do
|
|
186
186
|
file_name = "test.pptx"
|
187
187
|
password = "password"
|
188
188
|
slide_index = 1
|
189
|
-
AsposeSlidesCloud::SpecUtils.
|
189
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
190
190
|
dto = AsposeSlidesCloud::NotesSlide.new
|
191
191
|
dto.text = "Notes slide text"
|
192
|
-
response = AsposeSlidesCloud::SpecUtils.
|
192
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_notes_slide(file_name, slide_index, dto, password, folder_name)
|
193
193
|
expect(response.text).to eq(dto.text)
|
194
194
|
end
|
195
195
|
|
@@ -198,8 +198,8 @@ describe 'UseCases' do
|
|
198
198
|
file_name = "test.pptx"
|
199
199
|
password = "password"
|
200
200
|
slide_index = 1
|
201
|
-
AsposeSlidesCloud::SpecUtils.
|
202
|
-
response = AsposeSlidesCloud::SpecUtils.
|
201
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
202
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_notes_slide(file_name, slide_index, password, folder_name)
|
203
203
|
expect(response.notes_slide).to eq(nil)
|
204
204
|
end
|
205
205
|
end
|