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
@@ -33,7 +33,7 @@ describe 'UseCases' do
|
|
33
33
|
max1 = 104.3
|
34
34
|
max2 = 87
|
35
35
|
AsposeSlidesCloud::SpecUtils.initialize("no_method", "no_property", nil)
|
36
|
-
AsposeSlidesCloud::SpecUtils.
|
36
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + fileName, folderName + "/" + fileName)
|
37
37
|
|
38
38
|
dto = AsposeSlidesCloud::Chart.new
|
39
39
|
dto.chart_type = "Line"
|
@@ -65,9 +65,9 @@ describe 'UseCases' do
|
|
65
65
|
dto.axes.horizontal_axis.min_value = min1
|
66
66
|
dto.axes.horizontal_axis.is_automatic_max_value = false
|
67
67
|
dto.axes.horizontal_axis.max_value = max1
|
68
|
-
AsposeSlidesCloud::SpecUtils.
|
68
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(fileName, 1, dto, nil, nil, password, folderName)
|
69
69
|
|
70
|
-
result = AsposeSlidesCloud::SpecUtils.
|
70
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(fileName, 1, 5, password, folderName)
|
71
71
|
expect(result.axes.horizontal_axis.min_value).to eq(min1)
|
72
72
|
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
73
73
|
|
@@ -75,17 +75,17 @@ describe 'UseCases' do
|
|
75
75
|
dto.axes = AsposeSlidesCloud::Axes.new
|
76
76
|
dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
77
77
|
dto.axes.horizontal_axis.min_value = min2
|
78
|
-
AsposeSlidesCloud::SpecUtils.
|
78
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(fileName, 1, 5, dto, password, folderName)
|
79
79
|
|
80
|
-
result = AsposeSlidesCloud::SpecUtils.
|
80
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(fileName, 1, 5, password, folderName)
|
81
81
|
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
82
82
|
expect(result.axes.horizontal_axis.max_value).to eq(max1)
|
83
83
|
|
84
84
|
dto.axes.horizontal_axis = AsposeSlidesCloud::Axis.new
|
85
85
|
dto.axes.horizontal_axis.max_value = max2
|
86
|
-
AsposeSlidesCloud::SpecUtils.
|
86
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(fileName, 1, 5, dto, password, folderName)
|
87
87
|
|
88
|
-
result = AsposeSlidesCloud::SpecUtils.
|
88
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(fileName, 1, 5, password, folderName)
|
89
89
|
expect(result.axes.horizontal_axis.min_value).to eq(min2)
|
90
90
|
expect(result.axes.horizontal_axis.max_value).to eq(max2)
|
91
91
|
end
|
@@ -31,8 +31,8 @@ describe 'UseCases' do
|
|
31
31
|
slide_index = 6
|
32
32
|
shape_index = 2
|
33
33
|
paragraph_index = 1
|
34
|
-
AsposeSlidesCloud::SpecUtils.
|
35
|
-
response = AsposeSlidesCloud::SpecUtils.
|
34
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
35
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraph(file_name, slide_index, shape_index, paragraph_index, password, folder_name)
|
36
36
|
expect(response.portion_list.length).to eq(2)
|
37
37
|
end
|
38
38
|
|
@@ -43,8 +43,8 @@ describe 'UseCases' do
|
|
43
43
|
slide_index = 6
|
44
44
|
shape_index = 2
|
45
45
|
paragraph_index = 1
|
46
|
-
AsposeSlidesCloud::SpecUtils.
|
47
|
-
response = AsposeSlidesCloud::SpecUtils.
|
46
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
47
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraphs(file_name, slide_index, shape_index, password, folder_name)
|
48
48
|
expect(response.paragraph_links.length).to eq(2)
|
49
49
|
end
|
50
50
|
|
@@ -56,8 +56,8 @@ describe 'UseCases' do
|
|
56
56
|
shape_index = 3
|
57
57
|
sub_shape = "1"
|
58
58
|
paragraph_index = 1
|
59
|
-
AsposeSlidesCloud::SpecUtils.
|
60
|
-
response = AsposeSlidesCloud::SpecUtils.
|
59
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
60
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraph(file_name, slide_index, shape_index, paragraph_index, password, folder_name, "", sub_shape)
|
61
61
|
expect(response.portion_list.length).to eq(2)
|
62
62
|
end
|
63
63
|
|
@@ -68,8 +68,8 @@ describe 'UseCases' do
|
|
68
68
|
slide_index = 6
|
69
69
|
shape_index = 3
|
70
70
|
sub_shape = "1"
|
71
|
-
AsposeSlidesCloud::SpecUtils.
|
72
|
-
response = AsposeSlidesCloud::SpecUtils.
|
71
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
72
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraphs(file_name, slide_index, shape_index, password, folder_name, "", sub_shape)
|
73
73
|
expect(response.paragraph_links.length).to eq(2)
|
74
74
|
end
|
75
75
|
|
@@ -79,14 +79,14 @@ describe 'UseCases' do
|
|
79
79
|
password = "password"
|
80
80
|
slide_index = 6
|
81
81
|
shape_index = 2
|
82
|
-
AsposeSlidesCloud::SpecUtils.
|
82
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
83
83
|
|
84
84
|
dto = AsposeSlidesCloud::Paragraph.new
|
85
85
|
dto.margin_left = 2
|
86
86
|
dto.margin_right = 2
|
87
87
|
dto.alignment = "Center"
|
88
88
|
|
89
|
-
response = AsposeSlidesCloud::SpecUtils.
|
89
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_paragraph(file_name, slide_index, shape_index, dto, nil, password, folder_name)
|
90
90
|
expect(response.margin_left).to eq(dto.margin_left)
|
91
91
|
expect(response.margin_right).to eq(dto.margin_right)
|
92
92
|
expect(response.alignment).to eq(dto.alignment)
|
@@ -98,7 +98,7 @@ describe 'UseCases' do
|
|
98
98
|
password = "password"
|
99
99
|
slide_index = 6
|
100
100
|
shape_index = 2
|
101
|
-
AsposeSlidesCloud::SpecUtils.
|
101
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
102
102
|
|
103
103
|
dto = AsposeSlidesCloud::Paragraph.new
|
104
104
|
portion1 = AsposeSlidesCloud::Portion.new
|
@@ -108,7 +108,7 @@ describe 'UseCases' do
|
|
108
108
|
portion2.font_bold = "True"
|
109
109
|
dto.portion_list = [portion1, portion2]
|
110
110
|
|
111
|
-
response = AsposeSlidesCloud::SpecUtils.
|
111
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_paragraph(file_name, slide_index, shape_index, dto, nil, password, folder_name)
|
112
112
|
expect(response.portion_list.length).to eq(2)
|
113
113
|
end
|
114
114
|
|
@@ -119,14 +119,14 @@ describe 'UseCases' do
|
|
119
119
|
slide_index = 6
|
120
120
|
shape_index = 3
|
121
121
|
sub_shape = "1"
|
122
|
-
AsposeSlidesCloud::SpecUtils.
|
122
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
123
123
|
|
124
124
|
dto = AsposeSlidesCloud::Paragraph.new
|
125
125
|
dto.margin_left = 2
|
126
126
|
dto.margin_right = 2
|
127
127
|
dto.alignment = "Center"
|
128
128
|
|
129
|
-
response = AsposeSlidesCloud::SpecUtils.
|
129
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_paragraph(file_name, slide_index, shape_index, dto, nil, password, folder_name, "", sub_shape)
|
130
130
|
expect(response.margin_left).to eq(dto.margin_left)
|
131
131
|
expect(response.margin_right).to eq(dto.margin_right)
|
132
132
|
expect(response.alignment).to eq(dto.alignment)
|
@@ -139,14 +139,14 @@ describe 'UseCases' do
|
|
139
139
|
slide_index = 6
|
140
140
|
shape_index = 2
|
141
141
|
paragraph_index = 1
|
142
|
-
AsposeSlidesCloud::SpecUtils.
|
142
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
143
143
|
|
144
144
|
dto = AsposeSlidesCloud::Paragraph.new
|
145
145
|
dto.margin_left = 2
|
146
146
|
dto.margin_right = 2
|
147
147
|
dto.alignment = "Center"
|
148
148
|
|
149
|
-
response = AsposeSlidesCloud::SpecUtils.
|
149
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_paragraph(file_name, slide_index, shape_index, paragraph_index, dto,
|
150
150
|
password, folder_name)
|
151
151
|
expect(response.margin_left).to eq(dto.margin_left)
|
152
152
|
expect(response.margin_right).to eq(dto.margin_right)
|
@@ -161,14 +161,14 @@ describe 'UseCases' do
|
|
161
161
|
shape_index = 3
|
162
162
|
sub_shape = "1"
|
163
163
|
paragraph_index = 1
|
164
|
-
AsposeSlidesCloud::SpecUtils.
|
164
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
165
165
|
|
166
166
|
dto = AsposeSlidesCloud::Paragraph.new
|
167
167
|
dto.margin_left = 2
|
168
168
|
dto.margin_right = 2
|
169
169
|
dto.alignment = "Center"
|
170
170
|
|
171
|
-
response = AsposeSlidesCloud::SpecUtils.
|
171
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_paragraph(file_name, slide_index, shape_index,
|
172
172
|
paragraph_index, dto, password, folder_name, "", sub_shape)
|
173
173
|
expect(response.margin_left).to eq(dto.margin_left)
|
174
174
|
expect(response.margin_right).to eq(dto.margin_right)
|
@@ -181,9 +181,9 @@ describe 'UseCases' do
|
|
181
181
|
password = "password"
|
182
182
|
slide_index = 6
|
183
183
|
shape_index = 2
|
184
|
-
AsposeSlidesCloud::SpecUtils.
|
184
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
185
185
|
|
186
|
-
response = AsposeSlidesCloud::SpecUtils.
|
186
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraphs(file_name, slide_index, shape_index, nil,
|
187
187
|
password, folder_name)
|
188
188
|
expect(response.paragraph_links.length).to eq(0)
|
189
189
|
end
|
@@ -194,9 +194,9 @@ describe 'UseCases' do
|
|
194
194
|
password = "password"
|
195
195
|
slide_index = 6
|
196
196
|
shape_index = 2
|
197
|
-
AsposeSlidesCloud::SpecUtils.
|
197
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
198
198
|
|
199
|
-
response = AsposeSlidesCloud::SpecUtils.
|
199
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraphs(file_name, slide_index, shape_index, [2],
|
200
200
|
password, folder_name)
|
201
201
|
expect(response.paragraph_links.length).to eq(1)
|
202
202
|
end
|
@@ -208,9 +208,9 @@ describe 'UseCases' do
|
|
208
208
|
slide_index = 6
|
209
209
|
shape_index = 3
|
210
210
|
sub_shape = "1"
|
211
|
-
AsposeSlidesCloud::SpecUtils.
|
211
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
212
212
|
|
213
|
-
response = AsposeSlidesCloud::SpecUtils.
|
213
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraphs(file_name, slide_index, shape_index, nil,
|
214
214
|
password, folder_name, "", sub_shape)
|
215
215
|
expect(response.paragraph_links.length).to eq(0)
|
216
216
|
end
|
@@ -222,9 +222,9 @@ describe 'UseCases' do
|
|
222
222
|
slide_index = 6
|
223
223
|
shape_index = 3
|
224
224
|
sub_shape = "1"
|
225
|
-
AsposeSlidesCloud::SpecUtils.
|
225
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
226
226
|
|
227
|
-
response = AsposeSlidesCloud::SpecUtils.
|
227
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraphs(file_name, slide_index, shape_index, [1],
|
228
228
|
password, folder_name, "", sub_shape)
|
229
229
|
expect(response.paragraph_links.length).to eq(1)
|
230
230
|
end
|
@@ -236,9 +236,9 @@ describe 'UseCases' do
|
|
236
236
|
slide_index = 6
|
237
237
|
shape_index = 2
|
238
238
|
paragraph_index = 1
|
239
|
-
AsposeSlidesCloud::SpecUtils.
|
239
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
240
240
|
|
241
|
-
response = AsposeSlidesCloud::SpecUtils.
|
241
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraph(file_name, slide_index, shape_index, paragraph_index,
|
242
242
|
password, folder_name)
|
243
243
|
expect(response.paragraph_links.length).to eq(1)
|
244
244
|
end
|
@@ -251,9 +251,9 @@ describe 'UseCases' do
|
|
251
251
|
shape_index = 3
|
252
252
|
sub_shape = "1"
|
253
253
|
paragraph_index = 1
|
254
|
-
AsposeSlidesCloud::SpecUtils.
|
254
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
255
255
|
|
256
|
-
response = AsposeSlidesCloud::SpecUtils.
|
256
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_paragraph(file_name, slide_index, shape_index, paragraph_index,
|
257
257
|
password, folder_name, "", sub_shape)
|
258
258
|
expect(response.paragraph_links.length).to eq(1)
|
259
259
|
end
|
@@ -265,8 +265,8 @@ describe 'UseCases' do
|
|
265
265
|
slide_index = 6
|
266
266
|
shape_index = 2
|
267
267
|
paragraph_index = 1
|
268
|
-
AsposeSlidesCloud::SpecUtils.
|
269
|
-
response = AsposeSlidesCloud::SpecUtils.
|
268
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
269
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraph_rectangle(file_name, slide_index, shape_index, paragraph_index,
|
270
270
|
password, folder_name)
|
271
271
|
expect(response.x).not_to eq(0)
|
272
272
|
expect(response.y).not_to eq(0)
|
@@ -281,7 +281,7 @@ describe 'UseCases' do
|
|
281
281
|
slide_index = 6
|
282
282
|
shape_index = 2
|
283
283
|
paragraph_index = 1
|
284
|
-
AsposeSlidesCloud::SpecUtils.
|
284
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
285
285
|
|
286
286
|
dto = AsposeSlidesCloud::Paragraph.new
|
287
287
|
portion_fromat = AsposeSlidesCloud::PortionFormat.new
|
@@ -294,7 +294,7 @@ describe 'UseCases' do
|
|
294
294
|
portion2 = AsposeSlidesCloud::Portion.new
|
295
295
|
portion2.text = "Portion2"
|
296
296
|
dto.portion_list = [portion1, portion2]
|
297
|
-
response = AsposeSlidesCloud::SpecUtils.
|
297
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_paragraph(file_name, slide_index, shape_index, dto, nil, password, folder_name)
|
298
298
|
expect(response.portion_list.length).to eq(2)
|
299
299
|
expect(response.default_portion_format.latin_font).to eq(portion_fromat.latin_font)
|
300
300
|
expect(response.default_portion_format.font_height).to eq(portion_fromat.font_height)
|
@@ -307,8 +307,8 @@ describe 'UseCases' do
|
|
307
307
|
slide_index = 6
|
308
308
|
shape_index = 2
|
309
309
|
paragraph_index = 1
|
310
|
-
AsposeSlidesCloud::SpecUtils.
|
311
|
-
response = AsposeSlidesCloud::SpecUtils.
|
310
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
311
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraph_effective(file_name, slide_index, shape_index, paragraph_index,
|
312
312
|
password, folder_name)
|
313
313
|
expect(response.default_tab_size).to eq(72)
|
314
314
|
end
|
@@ -321,8 +321,8 @@ describe 'UseCases' do
|
|
321
321
|
shape_index = 3
|
322
322
|
sub_shape = "1"
|
323
323
|
paragraph_index = 1
|
324
|
-
AsposeSlidesCloud::SpecUtils.
|
325
|
-
response = AsposeSlidesCloud::SpecUtils.
|
324
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
325
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_paragraph_effective(file_name, slide_index, shape_index, paragraph_index,
|
326
326
|
password, folder_name, "", sub_shape)
|
327
327
|
expect(response.default_tab_size).to eq(72)
|
328
328
|
end
|
@@ -53,7 +53,7 @@ describe 'UseCases' do
|
|
53
53
|
files.push(File.binread("TestData/TemplatingCVDataWithBase64.xml"))
|
54
54
|
files.push(File.binread("TestData/TemplateCV.pptx"))
|
55
55
|
|
56
|
-
result = AsposeSlidesCloud::SpecUtils.
|
56
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.pipeline(pipeline, files)
|
57
57
|
expect(result).to be_kind_of(String)
|
58
58
|
expect(result).to be_truthy
|
59
59
|
end
|
@@ -31,8 +31,8 @@ describe 'UseCases' do
|
|
31
31
|
slide_index = 6
|
32
32
|
shape_index = 2
|
33
33
|
paragraph_index = 1
|
34
|
-
AsposeSlidesCloud::SpecUtils.
|
35
|
-
response = AsposeSlidesCloud::SpecUtils.
|
34
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
35
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portions(file_name, slide_index, shape_index, paragraph_index, password, folder_name)
|
36
36
|
expect(response.items.length).to eq(2)
|
37
37
|
end
|
38
38
|
|
@@ -44,8 +44,8 @@ describe 'UseCases' do
|
|
44
44
|
shape_index = 3
|
45
45
|
sub_shape = "1"
|
46
46
|
paragraph_index = 1
|
47
|
-
AsposeSlidesCloud::SpecUtils.
|
48
|
-
response = AsposeSlidesCloud::SpecUtils.
|
47
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
48
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portions(file_name, slide_index, shape_index, paragraph_index, password, folder_name, "", sub_shape)
|
49
49
|
expect(response.items.length).to eq(2)
|
50
50
|
end
|
51
51
|
|
@@ -57,8 +57,8 @@ describe 'UseCases' do
|
|
57
57
|
shape_index = 2
|
58
58
|
paragraph_index = 1
|
59
59
|
portion_index = 1
|
60
|
-
AsposeSlidesCloud::SpecUtils.
|
61
|
-
response = AsposeSlidesCloud::SpecUtils.
|
60
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
61
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion(file_name, slide_index, shape_index, paragraph_index, portion_index,
|
62
62
|
password, folder_name)
|
63
63
|
expect(response.text.include? "portion 1").to eq(true)
|
64
64
|
end
|
@@ -72,8 +72,8 @@ describe 'UseCases' do
|
|
72
72
|
sub_shape = "1"
|
73
73
|
paragraph_index = 1
|
74
74
|
portion_index = 1
|
75
|
-
AsposeSlidesCloud::SpecUtils.
|
76
|
-
response = AsposeSlidesCloud::SpecUtils.
|
75
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
76
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion(file_name, slide_index, shape_index,
|
77
77
|
paragraph_index, portion_index, password, folder_name, "", sub_shape)
|
78
78
|
expect(response.text.include? "portion 1").to eq(true)
|
79
79
|
end
|
@@ -85,7 +85,7 @@ describe 'UseCases' do
|
|
85
85
|
slide_index = 6
|
86
86
|
shape_index = 2
|
87
87
|
paragraph_index = 1
|
88
|
-
AsposeSlidesCloud::SpecUtils.
|
88
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
89
89
|
|
90
90
|
dto = AsposeSlidesCloud::Portion.new
|
91
91
|
dto.text = "new portion text"
|
@@ -95,7 +95,7 @@ describe 'UseCases' do
|
|
95
95
|
dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
96
96
|
dto.fill_format.color = "#FFF5FF8A"
|
97
97
|
|
98
|
-
response = AsposeSlidesCloud::SpecUtils.
|
98
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_portion(file_name, slide_index, shape_index, paragraph_index, dto, nil,
|
99
99
|
password, folder_name)
|
100
100
|
expect(response.text).to eq(dto.text)
|
101
101
|
expect(response.font_bold).to eq(dto.font_bold)
|
@@ -112,7 +112,7 @@ describe 'UseCases' do
|
|
112
112
|
shape_index = 3
|
113
113
|
sub_shape = "1"
|
114
114
|
paragraph_index = 1
|
115
|
-
AsposeSlidesCloud::SpecUtils.
|
115
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
116
116
|
|
117
117
|
dto = AsposeSlidesCloud::Portion.new
|
118
118
|
dto.text = "new portion text"
|
@@ -122,7 +122,7 @@ describe 'UseCases' do
|
|
122
122
|
dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
123
123
|
dto.fill_format.color = "#FFF5FF8A"
|
124
124
|
|
125
|
-
response = AsposeSlidesCloud::SpecUtils.
|
125
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_portion(file_name, slide_index, shape_index,
|
126
126
|
paragraph_index, dto, nil, password, folder_name, "", sub_shape)
|
127
127
|
expect(response.text).to eq(dto.text)
|
128
128
|
expect(response.font_bold).to eq(dto.font_bold)
|
@@ -139,7 +139,7 @@ describe 'UseCases' do
|
|
139
139
|
shape_index = 2
|
140
140
|
paragraph_index = 1
|
141
141
|
portion_index = 1
|
142
|
-
AsposeSlidesCloud::SpecUtils.
|
142
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
143
143
|
|
144
144
|
dto = AsposeSlidesCloud::Portion.new
|
145
145
|
dto.text = "new portion text"
|
@@ -149,7 +149,7 @@ describe 'UseCases' do
|
|
149
149
|
dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
150
150
|
dto.fill_format.color = "#FFF5FF8A"
|
151
151
|
|
152
|
-
response = AsposeSlidesCloud::SpecUtils.
|
152
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_portion(file_name, slide_index, shape_index, paragraph_index,
|
153
153
|
portion_index, dto, password, folder_name)
|
154
154
|
expect(response.text).to eq(dto.text)
|
155
155
|
expect(response.font_bold).to eq(dto.font_bold)
|
@@ -167,7 +167,7 @@ describe 'UseCases' do
|
|
167
167
|
sub_shape = "1"
|
168
168
|
paragraph_index = 1
|
169
169
|
portion_index = 1
|
170
|
-
AsposeSlidesCloud::SpecUtils.
|
170
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
171
171
|
|
172
172
|
dto = AsposeSlidesCloud::Portion.new
|
173
173
|
dto.text = "new portion text"
|
@@ -177,7 +177,7 @@ describe 'UseCases' do
|
|
177
177
|
dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
178
178
|
dto.fill_format.color = "#FFF5FF8A"
|
179
179
|
|
180
|
-
response = AsposeSlidesCloud::SpecUtils.
|
180
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_portion(file_name, slide_index, shape_index,
|
181
181
|
paragraph_index, portion_index, dto, password, folder_name, "", sub_shape)
|
182
182
|
expect(response.text).to eq(dto.text)
|
183
183
|
expect(response.font_bold).to eq(dto.font_bold)
|
@@ -193,9 +193,9 @@ describe 'UseCases' do
|
|
193
193
|
slide_index = 6
|
194
194
|
shape_index = 2
|
195
195
|
paragraph_index = 1
|
196
|
-
AsposeSlidesCloud::SpecUtils.
|
196
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
197
197
|
|
198
|
-
response = AsposeSlidesCloud::SpecUtils.
|
198
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portions(file_name, slide_index, shape_index, paragraph_index,
|
199
199
|
nil, password, folder_name)
|
200
200
|
expect(response.items.length).to eq(0)
|
201
201
|
end
|
@@ -207,9 +207,9 @@ describe 'UseCases' do
|
|
207
207
|
slide_index = 6
|
208
208
|
shape_index = 2
|
209
209
|
paragraph_index = 1
|
210
|
-
AsposeSlidesCloud::SpecUtils.
|
210
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
211
211
|
|
212
|
-
response = AsposeSlidesCloud::SpecUtils.
|
212
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portions(file_name, slide_index, shape_index, paragraph_index,
|
213
213
|
[1], password, folder_name)
|
214
214
|
expect(response.items.length).to eq(1)
|
215
215
|
end
|
@@ -222,9 +222,9 @@ describe 'UseCases' do
|
|
222
222
|
shape_index = 3
|
223
223
|
sub_shape = "1"
|
224
224
|
paragraph_index = 1
|
225
|
-
AsposeSlidesCloud::SpecUtils.
|
225
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
226
226
|
|
227
|
-
response = AsposeSlidesCloud::SpecUtils.
|
227
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portions(file_name, slide_index, shape_index,
|
228
228
|
paragraph_index, nil, password, folder_name, "", sub_shape)
|
229
229
|
expect(response.items.length).to eq(0)
|
230
230
|
end
|
@@ -237,9 +237,9 @@ describe 'UseCases' do
|
|
237
237
|
shape_index = 3
|
238
238
|
sub_shape = "1"
|
239
239
|
paragraph_index = 1
|
240
|
-
AsposeSlidesCloud::SpecUtils.
|
240
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
241
241
|
|
242
|
-
response = AsposeSlidesCloud::SpecUtils.
|
242
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portions(file_name, slide_index, shape_index,
|
243
243
|
paragraph_index, [1], password, folder_name, "", sub_shape)
|
244
244
|
expect(response.items.length).to eq(1)
|
245
245
|
end
|
@@ -252,9 +252,9 @@ describe 'UseCases' do
|
|
252
252
|
shape_index = 2
|
253
253
|
paragraph_index = 1
|
254
254
|
portion_index = 1
|
255
|
-
AsposeSlidesCloud::SpecUtils.
|
255
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
256
256
|
|
257
|
-
response = AsposeSlidesCloud::SpecUtils.
|
257
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portion(file_name, slide_index, shape_index, paragraph_index,
|
258
258
|
portion_index, password, folder_name)
|
259
259
|
expect(response.items.length).to eq(1)
|
260
260
|
end
|
@@ -268,9 +268,9 @@ describe 'UseCases' do
|
|
268
268
|
sub_shape = "1"
|
269
269
|
paragraph_index = 1
|
270
270
|
portion_index = 1
|
271
|
-
AsposeSlidesCloud::SpecUtils.
|
271
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
272
272
|
|
273
|
-
response = AsposeSlidesCloud::SpecUtils.
|
273
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_portion(file_name, slide_index, shape_index, paragraph_index,
|
274
274
|
portion_index, password, folder_name, "", sub_shape)
|
275
275
|
expect(response.items.length).to eq(1)
|
276
276
|
end
|
@@ -283,8 +283,8 @@ describe 'UseCases' do
|
|
283
283
|
shape_index = 2
|
284
284
|
paragraph_index = 1
|
285
285
|
portion_index = 1
|
286
|
-
AsposeSlidesCloud::SpecUtils.
|
287
|
-
response = AsposeSlidesCloud::SpecUtils.
|
286
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
287
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion_rectangle(file_name, slide_index, shape_index, paragraph_index,
|
288
288
|
portion_index, password, folder_name)
|
289
289
|
expect(response.x).not_to eq(0)
|
290
290
|
expect(response.y).not_to eq(0)
|
@@ -300,8 +300,8 @@ describe 'UseCases' do
|
|
300
300
|
shape_index = 2
|
301
301
|
paragraph_index = 1
|
302
302
|
portion_index = 1
|
303
|
-
AsposeSlidesCloud::SpecUtils.
|
304
|
-
response = AsposeSlidesCloud::SpecUtils.
|
303
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
304
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion_effective(file_name, slide_index, shape_index, paragraph_index,
|
305
305
|
portion_index, password, folder_name)
|
306
306
|
expect(response.font_height).to eq(18)
|
307
307
|
end
|
@@ -315,8 +315,8 @@ describe 'UseCases' do
|
|
315
315
|
sub_shape = "1"
|
316
316
|
paragraph_index = 1
|
317
317
|
portion_index = 1
|
318
|
-
AsposeSlidesCloud::SpecUtils.
|
319
|
-
response = AsposeSlidesCloud::SpecUtils.
|
318
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
319
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion_effective(file_name, slide_index, shape_index,
|
320
320
|
paragraph_index, portion_index, password, folder_name, "", sub_shape)
|
321
321
|
expect(response.font_height).to eq(18)
|
322
322
|
end
|