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
@@ -27,8 +27,8 @@ describe 'UseCases' do
|
|
27
27
|
it 'get' do
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
|
-
AsposeSlidesCloud::SpecUtils.
|
31
|
-
chart = AsposeSlidesCloud::SpecUtils.
|
30
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
31
|
+
chart = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, 3, 1, "password", folder_name)
|
32
32
|
expect(chart.series.length).to eq(3)
|
33
33
|
expect(chart.categories.length).to eq(4)
|
34
34
|
end
|
@@ -36,7 +36,7 @@ describe 'UseCases' do
|
|
36
36
|
it 'create chart auto data source' do
|
37
37
|
folder_name = "TempSlidesSDK"
|
38
38
|
file_name = "test.pptx"
|
39
|
-
AsposeSlidesCloud::SpecUtils.
|
39
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
40
40
|
chart = AsposeSlidesCloud::Chart.new
|
41
41
|
chart.chart_type = 'ClusteredColumn'
|
42
42
|
chart.width = 400
|
@@ -67,7 +67,7 @@ describe 'UseCases' do
|
|
67
67
|
category3 = AsposeSlidesCloud::ChartCategory.new
|
68
68
|
category3.value = "Category3"
|
69
69
|
chart.categories = [category1, category2, category3]
|
70
|
-
result = AsposeSlidesCloud::SpecUtils.
|
70
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
71
71
|
expect(result.series.length).to eq(2)
|
72
72
|
expect(result.categories.length).to eq(3)
|
73
73
|
end
|
@@ -75,7 +75,7 @@ describe 'UseCases' do
|
|
75
75
|
it 'create chart workbook data source' do
|
76
76
|
folder_name = "TempSlidesSDK"
|
77
77
|
file_name = "test.pptx"
|
78
|
-
AsposeSlidesCloud::SpecUtils.
|
78
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
79
79
|
chart = AsposeSlidesCloud::Chart.new
|
80
80
|
chart.chart_type = 'ClusteredColumn'
|
81
81
|
chart.width = 400
|
@@ -133,7 +133,7 @@ describe 'UseCases' do
|
|
133
133
|
category3 = AsposeSlidesCloud::ChartCategory.new
|
134
134
|
category3.value = "Category3"
|
135
135
|
chart.categories = [category1, category2, category3]
|
136
|
-
result = AsposeSlidesCloud::SpecUtils.
|
136
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
137
137
|
expect(result.series.length).to eq(2)
|
138
138
|
expect(result.categories.length).to eq(3)
|
139
139
|
end
|
@@ -141,7 +141,7 @@ describe 'UseCases' do
|
|
141
141
|
it 'create chart literals' do
|
142
142
|
folder_name = "TempSlidesSDK"
|
143
143
|
file_name = "test.pptx"
|
144
|
-
AsposeSlidesCloud::SpecUtils.
|
144
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
145
145
|
chart = AsposeSlidesCloud::Chart.new
|
146
146
|
chart.chart_type = 'ClusteredColumn'
|
147
147
|
chart.width = 400
|
@@ -179,7 +179,7 @@ describe 'UseCases' do
|
|
179
179
|
category3 = AsposeSlidesCloud::ChartCategory.new
|
180
180
|
category3.value = "Category3"
|
181
181
|
chart.categories = [category1, category2, category3]
|
182
|
-
result = AsposeSlidesCloud::SpecUtils.
|
182
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
183
183
|
expect(result.series.length).to eq(2)
|
184
184
|
expect(result.categories.length).to eq(3)
|
185
185
|
end
|
@@ -187,7 +187,7 @@ describe 'UseCases' do
|
|
187
187
|
it 'update' do
|
188
188
|
folder_name = "TempSlidesSDK"
|
189
189
|
file_name = "test.pptx"
|
190
|
-
AsposeSlidesCloud::SpecUtils.
|
190
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
191
191
|
chart = AsposeSlidesCloud::Chart.new
|
192
192
|
chart.chart_type = 'ClusteredColumn'
|
193
193
|
chart.width = 400
|
@@ -218,7 +218,7 @@ describe 'UseCases' do
|
|
218
218
|
category3 = AsposeSlidesCloud::ChartCategory.new
|
219
219
|
category3.value = "Category3"
|
220
220
|
chart.categories = [category1, category2, category3]
|
221
|
-
result = AsposeSlidesCloud::SpecUtils.
|
221
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, 3, 1, chart, "password", folder_name)
|
222
222
|
expect(result.series.length).to eq(2)
|
223
223
|
expect(result.categories.length).to eq(3)
|
224
224
|
end
|
@@ -226,7 +226,7 @@ describe 'UseCases' do
|
|
226
226
|
it 'series create' do
|
227
227
|
folder_name = "TempSlidesSDK"
|
228
228
|
file_name = "test.pptx"
|
229
|
-
AsposeSlidesCloud::SpecUtils.
|
229
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
230
230
|
series = AsposeSlidesCloud::OneValueSeries.new
|
231
231
|
series.name = "New Series"
|
232
232
|
point1 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
@@ -238,7 +238,7 @@ describe 'UseCases' do
|
|
238
238
|
point4 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
239
239
|
point4.value = 70
|
240
240
|
series.data_points = [ point1, point2, point3, point4 ]
|
241
|
-
result = AsposeSlidesCloud::SpecUtils.
|
241
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_chart_series(file_name, 3, 1, series, "password", folder_name)
|
242
242
|
expect(result.series.length).to eq(4)
|
243
243
|
expect(result.categories.length).to eq(4)
|
244
244
|
end
|
@@ -246,7 +246,7 @@ describe 'UseCases' do
|
|
246
246
|
it 'series update' do
|
247
247
|
folder_name = "TempSlidesSDK"
|
248
248
|
file_name = "test.pptx"
|
249
|
-
AsposeSlidesCloud::SpecUtils.
|
249
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
250
250
|
series = AsposeSlidesCloud::OneValueSeries.new
|
251
251
|
series.name = "Series3"
|
252
252
|
point1 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
@@ -258,7 +258,7 @@ describe 'UseCases' do
|
|
258
258
|
point4 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
259
259
|
point4.value = 70
|
260
260
|
series.data_points = [ point1, point2, point3, point4 ]
|
261
|
-
result = AsposeSlidesCloud::SpecUtils.
|
261
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_chart_series(file_name, 3, 1, 2, series, "password", folder_name)
|
262
262
|
expect(result.series.length).to eq(3)
|
263
263
|
expect(result.categories.length).to eq(4)
|
264
264
|
end
|
@@ -266,8 +266,8 @@ describe 'UseCases' do
|
|
266
266
|
it 'series delete' do
|
267
267
|
folder_name = "TempSlidesSDK"
|
268
268
|
file_name = "test.pptx"
|
269
|
-
AsposeSlidesCloud::SpecUtils.
|
270
|
-
result = AsposeSlidesCloud::SpecUtils.
|
269
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
270
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_chart_series(file_name, 3, 1, 2, "password", folder_name)
|
271
271
|
expect(result.series.length).to eq(2)
|
272
272
|
expect(result.categories.length).to eq(4)
|
273
273
|
end
|
@@ -275,7 +275,7 @@ describe 'UseCases' do
|
|
275
275
|
it 'category create' do
|
276
276
|
folder_name = "TempSlidesSDK"
|
277
277
|
file_name = "test.pptx"
|
278
|
-
AsposeSlidesCloud::SpecUtils.
|
278
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
279
279
|
category = AsposeSlidesCloud::ChartCategory.new
|
280
280
|
category.value = "New Category"
|
281
281
|
point1 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
@@ -285,7 +285,7 @@ describe 'UseCases' do
|
|
285
285
|
point3 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
286
286
|
point3.value = 14
|
287
287
|
category.data_points = [ point1, point2, point3 ]
|
288
|
-
result = AsposeSlidesCloud::SpecUtils.
|
288
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_chart_category(file_name, 3, 1, category, "password", folder_name)
|
289
289
|
expect(result.series.length).to eq(3)
|
290
290
|
expect(result.categories.length).to eq(5)
|
291
291
|
expect(result.series[0].data_points.length).to eq(5)
|
@@ -295,7 +295,7 @@ describe 'UseCases' do
|
|
295
295
|
it 'category update' do
|
296
296
|
folder_name = "TempSlidesSDK"
|
297
297
|
file_name = "test.pptx"
|
298
|
-
AsposeSlidesCloud::SpecUtils.
|
298
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
299
299
|
category = AsposeSlidesCloud::ChartCategory.new
|
300
300
|
category.value = "New Category"
|
301
301
|
point1 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
@@ -305,7 +305,7 @@ describe 'UseCases' do
|
|
305
305
|
point3 = AsposeSlidesCloud::OneValueChartDataPoint.new
|
306
306
|
point3.value = 14
|
307
307
|
category.data_points = [ point1, point2, point3 ]
|
308
|
-
result = AsposeSlidesCloud::SpecUtils.
|
308
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_chart_category(file_name, 3, 1, 2, category, "password", folder_name)
|
309
309
|
expect(result.series.length).to eq(3)
|
310
310
|
expect(result.categories.length).to eq(4)
|
311
311
|
expect(result.series[0].data_points.length).to eq(4)
|
@@ -315,8 +315,8 @@ describe 'UseCases' do
|
|
315
315
|
it 'category delete' do
|
316
316
|
folder_name = "TempSlidesSDK"
|
317
317
|
file_name = "test.pptx"
|
318
|
-
AsposeSlidesCloud::SpecUtils.
|
319
|
-
result = AsposeSlidesCloud::SpecUtils.
|
318
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
319
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_chart_category(file_name, 3, 1, 2, "password", folder_name)
|
320
320
|
expect(result.series.length).to eq(3)
|
321
321
|
expect(result.categories.length).to eq(3)
|
322
322
|
expect(result.series[0].data_points.length).to eq(3)
|
@@ -325,11 +325,11 @@ describe 'UseCases' do
|
|
325
325
|
it 'data point create' do
|
326
326
|
folder_name = "TempSlidesSDK"
|
327
327
|
file_name = "test.pptx"
|
328
|
-
AsposeSlidesCloud::SpecUtils.
|
328
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
329
329
|
point = AsposeSlidesCloud::OneValueChartDataPoint.new
|
330
330
|
point.value = 40
|
331
331
|
begin
|
332
|
-
result = AsposeSlidesCloud::SpecUtils.
|
332
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_chart_data_point(file_name, 3, 1, 2, point, "password", folder_name)
|
333
333
|
fail "Must have failed because adding data points only works with Scatter & Bubble charts"
|
334
334
|
rescue AsposeSlidesCloud::ApiError => e
|
335
335
|
expect(e.code).to eq(400)
|
@@ -339,10 +339,10 @@ describe 'UseCases' do
|
|
339
339
|
it 'data point update' do
|
340
340
|
folder_name = "TempSlidesSDK"
|
341
341
|
file_name = "test.pptx"
|
342
|
-
AsposeSlidesCloud::SpecUtils.
|
342
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
343
343
|
point = AsposeSlidesCloud::OneValueChartDataPoint.new
|
344
344
|
point.value = 40
|
345
|
-
result = AsposeSlidesCloud::SpecUtils.
|
345
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_chart_data_point(file_name, 3, 1, 2, 2, point, "password", folder_name)
|
346
346
|
expect(result.series.length).to eq(3)
|
347
347
|
expect(result.categories.length).to eq(4)
|
348
348
|
expect(result.series[1].data_points.length).to eq(4)
|
@@ -352,8 +352,8 @@ describe 'UseCases' do
|
|
352
352
|
it 'data point delete' do
|
353
353
|
folder_name = "TempSlidesSDK"
|
354
354
|
file_name = "test.pptx"
|
355
|
-
AsposeSlidesCloud::SpecUtils.
|
356
|
-
result = AsposeSlidesCloud::SpecUtils.
|
355
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
356
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_chart_data_point(file_name, 3, 1, 2, 2, "password", folder_name)
|
357
357
|
expect(result.series.length).to eq(3)
|
358
358
|
expect(result.categories.length).to eq(4)
|
359
359
|
expect(result.series[1].data_points[1]).not_to be_truthy
|
@@ -362,7 +362,7 @@ describe 'UseCases' do
|
|
362
362
|
it 'sunburst' do
|
363
363
|
folder_name = "TempSlidesSDK"
|
364
364
|
file_name = "test.pptx"
|
365
|
-
AsposeSlidesCloud::SpecUtils.
|
365
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
366
366
|
chart = AsposeSlidesCloud::Chart.new
|
367
367
|
chart.chart_type = 'Sunburst'
|
368
368
|
chart.width = 400
|
@@ -395,7 +395,7 @@ describe 'UseCases' do
|
|
395
395
|
category4.value = "Stem2"
|
396
396
|
category4.level = 1
|
397
397
|
chart.categories = [ category1, category2, category3, category4 ]
|
398
|
-
result = AsposeSlidesCloud::SpecUtils.
|
398
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
399
399
|
expect(result.series.length).to eq(1)
|
400
400
|
expect(result.categories.length).to eq(4)
|
401
401
|
end
|
@@ -403,7 +403,7 @@ describe 'UseCases' do
|
|
403
403
|
it 'multi level category axis' do
|
404
404
|
folder_name = "TempSlidesSDK"
|
405
405
|
file_name = "test.pptx"
|
406
|
-
AsposeSlidesCloud::SpecUtils.
|
406
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
407
407
|
|
408
408
|
chart = AsposeSlidesCloud::Chart.new
|
409
409
|
chart.x = 100
|
@@ -455,7 +455,7 @@ describe 'UseCases' do
|
|
455
455
|
category8.value = "Category 7"
|
456
456
|
chart.categories = [category1, category2, category3, category4, category5, category6, category7, category8]
|
457
457
|
|
458
|
-
response = AsposeSlidesCloud::SpecUtils.
|
458
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
459
459
|
expect(response.categories.length).to eq(8)
|
460
460
|
expect(response.series.length).to eq(1)
|
461
461
|
expect(response.categories[0].parent_categories.length).to eq(2)
|
@@ -466,11 +466,11 @@ describe 'UseCases' do
|
|
466
466
|
file_name = "test.pptx"
|
467
467
|
slide_index = 3
|
468
468
|
shape_index = 1
|
469
|
-
AsposeSlidesCloud::SpecUtils.
|
469
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
470
470
|
|
471
|
-
chart = AsposeSlidesCloud::SpecUtils.
|
471
|
+
chart = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slide_index, shape_index, "password", folder_name)
|
472
472
|
chart.legend.has_legend = false
|
473
|
-
response = AsposeSlidesCloud::SpecUtils.
|
473
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slide_index, shape_index, chart, "password", folder_name)
|
474
474
|
expect(response.legend.has_legend).to eq(false)
|
475
475
|
end
|
476
476
|
|
@@ -479,9 +479,9 @@ describe 'UseCases' do
|
|
479
479
|
file_name = "test.pptx"
|
480
480
|
slide_index = 3
|
481
481
|
shape_index = 1
|
482
|
-
AsposeSlidesCloud::SpecUtils.
|
482
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
483
483
|
|
484
|
-
chart = AsposeSlidesCloud::SpecUtils.
|
484
|
+
chart = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slide_index, shape_index, "password", folder_name)
|
485
485
|
chart.axes = AsposeSlidesCloud::Axes.new
|
486
486
|
|
487
487
|
horizontal_axis = AsposeSlidesCloud::Axis.new
|
@@ -512,7 +512,7 @@ describe 'UseCases' do
|
|
512
512
|
vertical_axis.minor_grid_lines_format.line_format = AsposeSlidesCloud::LineFormat.new
|
513
513
|
vertical_axis.minor_grid_lines_format.line_format.fill_format = AsposeSlidesCloud::NoFill.new
|
514
514
|
|
515
|
-
response = AsposeSlidesCloud::SpecUtils.
|
515
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slide_index, shape_index, chart, "password", folder_name)
|
516
516
|
expect(horizontal_axis.major_grid_lines_format.line_format.fill_format.type).to eq("NoFill")
|
517
517
|
expect(horizontal_axis.minor_grid_lines_format.line_format.fill_format.type).to eq("Solid")
|
518
518
|
expect(vertical_axis.major_grid_lines_format.line_format.fill_format.type).to eq("Gradient")
|
@@ -525,12 +525,12 @@ describe 'UseCases' do
|
|
525
525
|
slide_index = 3
|
526
526
|
shape_index = 1
|
527
527
|
series_group_index = 1
|
528
|
-
AsposeSlidesCloud::SpecUtils.
|
529
|
-
chart = AsposeSlidesCloud::SpecUtils.
|
528
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
529
|
+
chart = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slide_index, shape_index, "password", folder_name)
|
530
530
|
expect(chart.series_groups.length).to eq(1)
|
531
531
|
series_group = chart.series_groups[0]
|
532
532
|
series_group.overlap = 10
|
533
|
-
chart = AsposeSlidesCloud::SpecUtils.
|
533
|
+
chart = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_chart_series_group(file_name, slide_index, shape_index, series_group_index,
|
534
534
|
series_group, "password", folder_name)
|
535
535
|
expect(chart.series_groups[0].overlap).to eq(10)
|
536
536
|
end
|
@@ -540,12 +540,12 @@ describe 'UseCases' do
|
|
540
540
|
file_name = "test.pptx"
|
541
541
|
slide_index = 3
|
542
542
|
shape_index = 1
|
543
|
-
AsposeSlidesCloud::SpecUtils.
|
543
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
544
544
|
legend_dto = AsposeSlidesCloud::Legend.new
|
545
545
|
legend_dto.overlay = true
|
546
546
|
legend_dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
547
547
|
legend_dto.fill_format.color = "#77CEF9"
|
548
|
-
response = AsposeSlidesCloud::SpecUtils.
|
548
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_chart_legend(file_name, slide_index, shape_index, legend_dto, "password", folder_name)
|
549
549
|
expect(response.overlay).to eq(true)
|
550
550
|
expect(response.fill_format.type).to eq("Solid")
|
551
551
|
end
|
@@ -555,12 +555,12 @@ describe 'UseCases' do
|
|
555
555
|
file_name = "test.pptx"
|
556
556
|
slide_index = 3
|
557
557
|
shape_index = 1
|
558
|
-
AsposeSlidesCloud::SpecUtils.
|
558
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
559
559
|
axis_dto = AsposeSlidesCloud::Axis.new
|
560
560
|
axis_dto.has_title = true
|
561
561
|
axis_dto.is_automatic_max_value = false
|
562
562
|
axis_dto.max_value = 10
|
563
|
-
response = AsposeSlidesCloud::SpecUtils.
|
563
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_chart_axis(file_name, slide_index, shape_index, "verticalAxis", axis_dto, "password", folder_name)
|
564
564
|
expect(response.has_title).to eq(true)
|
565
565
|
expect(response.is_automatic_max_value).to eq(false)
|
566
566
|
expect(response.max_value).to eq(axis_dto.max_value)
|
@@ -571,11 +571,11 @@ describe 'UseCases' do
|
|
571
571
|
file_name = "test.pptx"
|
572
572
|
slide_index = 8
|
573
573
|
shape_index = 2
|
574
|
-
AsposeSlidesCloud::SpecUtils.
|
574
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
575
575
|
wall_dto = AsposeSlidesCloud::ChartWall.new
|
576
576
|
wall_dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
577
577
|
wall_dto.fill_format.color = "#77CEF9"
|
578
|
-
response = AsposeSlidesCloud::SpecUtils.
|
578
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_chart_wall(file_name, slide_index, shape_index, "BackWall", wall_dto, "password", folder_name)
|
579
579
|
expect(response.fill_format.type).to eq("Solid")
|
580
580
|
end
|
581
581
|
|
@@ -587,7 +587,7 @@ describe 'UseCases' do
|
|
587
587
|
series_index = 2
|
588
588
|
data_point_index = 2
|
589
589
|
color = "#77CEF9"
|
590
|
-
AsposeSlidesCloud::SpecUtils.
|
590
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
591
591
|
|
592
592
|
dto = AsposeSlidesCloud::OneValueChartDataPoint.new
|
593
593
|
dto.value = 40
|
@@ -601,7 +601,7 @@ describe 'UseCases' do
|
|
601
601
|
dto.effect_format.blur.grow = true
|
602
602
|
dto.effect_format.blur.radius = 5
|
603
603
|
|
604
|
-
response = AsposeSlidesCloud::SpecUtils.
|
604
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_chart_data_point(file_name, slide_index, shape_index, series_index,
|
605
605
|
data_point_index, dto, "password", folder_name)
|
606
606
|
data_point = response.series[series_index - 1].data_points[data_point_index - 1]
|
607
607
|
expect(data_point.fill_format.type).to eq("Solid")
|
@@ -612,7 +612,7 @@ describe 'UseCases' do
|
|
612
612
|
it 'chart formulas' do
|
613
613
|
folder_name = "TempSlidesSDK"
|
614
614
|
file_name = "test.pptx"
|
615
|
-
AsposeSlidesCloud::SpecUtils.
|
615
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
616
616
|
chart = AsposeSlidesCloud::Chart.new
|
617
617
|
chart.chart_type = 'ClusteredColumn'
|
618
618
|
chart.width = 400
|
@@ -651,7 +651,7 @@ describe 'UseCases' do
|
|
651
651
|
category3 = AsposeSlidesCloud::ChartCategory.new
|
652
652
|
category3.value = "Category3"
|
653
653
|
chart.categories = [category1, category2, category3]
|
654
|
-
result = AsposeSlidesCloud::SpecUtils.
|
654
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, 3, chart, nil, nil, "password", folder_name)
|
655
655
|
expect(result.series[0].data_points[2].value).to eq(90)
|
656
656
|
end
|
657
657
|
end
|
@@ -28,7 +28,7 @@ describe 'UseCases' do
|
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
30
|
slide_index = 3
|
31
|
-
AsposeSlidesCloud::SpecUtils.
|
31
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
32
32
|
dto = AsposeSlidesCloud::SlideComment.new
|
33
33
|
dto.text = "Comment text"
|
34
34
|
dto.author = "Test author"
|
@@ -36,7 +36,7 @@ describe 'UseCases' do
|
|
36
36
|
child_comment.text = "Child comment text"
|
37
37
|
child_comment.author = "Test author"
|
38
38
|
dto.child_comments = [child_comment]
|
39
|
-
response = AsposeSlidesCloud::SpecUtils.
|
39
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_comment(file_name, slide_index, dto, nil, "password", folder_name)
|
40
40
|
expect(response.list.length).to eq(1)
|
41
41
|
expect(response.list[0].text).to eq(dto.text)
|
42
42
|
expect(response.list[0].author).to eq(dto.author)
|
@@ -56,7 +56,7 @@ describe 'UseCases' do
|
|
56
56
|
|
57
57
|
source = File.binread("TestData/test.pptx")
|
58
58
|
slide_index = 3
|
59
|
-
response = AsposeSlidesCloud::SpecUtils.
|
59
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_comment_online(source, slide_index, dto, nil, "password")
|
60
60
|
expect(response.size).not_to eq(source.size)
|
61
61
|
end
|
62
62
|
|
@@ -64,8 +64,8 @@ describe 'UseCases' do
|
|
64
64
|
folder_name = "TempSlidesSDK"
|
65
65
|
file_name = "test.pptx"
|
66
66
|
slide_index = 1
|
67
|
-
AsposeSlidesCloud::SpecUtils.
|
68
|
-
response = AsposeSlidesCloud::SpecUtils.
|
67
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
68
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_comments(file_name, slide_index, "password", folder_name)
|
69
69
|
expect(response.list.length).to eq(2)
|
70
70
|
expect(response.list[0].child_comments.length).to eq(1)
|
71
71
|
end
|
@@ -74,15 +74,15 @@ describe 'UseCases' do
|
|
74
74
|
folder_name = "TempSlidesSDK"
|
75
75
|
file_name = "test.pptx"
|
76
76
|
slide_index = 1
|
77
|
-
AsposeSlidesCloud::SpecUtils.
|
78
|
-
AsposeSlidesCloud::SpecUtils.
|
79
|
-
response = AsposeSlidesCloud::SpecUtils.
|
77
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
78
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_comments(file_name, nil, "password", folder_name)
|
79
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_comments(file_name, slide_index, "password", folder_name)
|
80
80
|
expect(response.list.length).to eq(0)
|
81
81
|
end
|
82
82
|
|
83
83
|
it "delete comments online" do
|
84
84
|
source = File.binread("TestData/test.pptx")
|
85
|
-
response = AsposeSlidesCloud::SpecUtils.
|
85
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_comments_online(source, nil, "password")
|
86
86
|
expect(response.size).not_to eq(source.size)
|
87
87
|
end
|
88
88
|
|
@@ -90,16 +90,16 @@ describe 'UseCases' do
|
|
90
90
|
folder_name = "TempSlidesSDK"
|
91
91
|
file_name = "test.pptx"
|
92
92
|
slide_index = 1
|
93
|
-
AsposeSlidesCloud::SpecUtils.
|
94
|
-
AsposeSlidesCloud::SpecUtils.
|
95
|
-
response = AsposeSlidesCloud::SpecUtils.
|
93
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
94
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_slide_comments(file_name, slide_index, nil, "password", folder_name)
|
95
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_comments(file_name, slide_index, "password", folder_name)
|
96
96
|
expect(response.list.length).to eq(0)
|
97
97
|
end
|
98
98
|
|
99
99
|
it "delete slide comments online" do
|
100
100
|
source = File.binread("TestData/test.pptx")
|
101
101
|
slide_index = 1
|
102
|
-
response = AsposeSlidesCloud::SpecUtils.
|
102
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_slide_comments_online(source, slide_index, nil, "password")
|
103
103
|
expect(response.size).not_to eq(source.size)
|
104
104
|
end
|
105
105
|
|
@@ -123,8 +123,8 @@ describe 'UseCases' do
|
|
123
123
|
comment.text_selection_length = text_selection_length
|
124
124
|
comment.child_comments = [child_comment]
|
125
125
|
|
126
|
-
AsposeSlidesCloud::SpecUtils.
|
127
|
-
response = AsposeSlidesCloud::SpecUtils.
|
126
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
127
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_comment(file_name, slide_index, comment, nil, "password", folder_name)
|
128
128
|
expect(response.list.length).to eq(1)
|
129
129
|
expect(response.list[0].type).to eq("Modern")
|
130
130
|
end
|
@@ -150,8 +150,8 @@ describe 'UseCases' do
|
|
150
150
|
comment.text_selection_length = text_selection_length
|
151
151
|
comment.child_comments = [child_comment]
|
152
152
|
|
153
|
-
AsposeSlidesCloud::SpecUtils.
|
154
|
-
response = AsposeSlidesCloud::SpecUtils.
|
153
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
154
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_comment(file_name, slide_index, comment, shape_index, "password", folder_name)
|
155
155
|
expect(response.list.length).to eq(1)
|
156
156
|
expect(response.list[0].type).to eq("Modern")
|
157
157
|
end
|
@@ -27,74 +27,74 @@ describe 'UseCases' do
|
|
27
27
|
it 'empty' do
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
|
-
AsposeSlidesCloud::SpecUtils.
|
31
|
-
AsposeSlidesCloud::SpecUtils.
|
30
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
|
31
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.create_presentation(file_name, nil, nil, nil, folder_name)
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'from request' do
|
35
35
|
folder_name = "TempSlidesSDK"
|
36
36
|
file_name = "test.pptx"
|
37
|
-
AsposeSlidesCloud::SpecUtils.
|
37
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
|
38
38
|
source = File.binread("TestData/" + file_name)
|
39
|
-
AsposeSlidesCloud::SpecUtils.
|
39
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.create_presentation(file_name, source, "password", nil, folder_name)
|
40
40
|
end
|
41
41
|
|
42
42
|
it 'from storage' do
|
43
43
|
folder_name = "TempSlidesSDK"
|
44
44
|
file_name = "test.pptx"
|
45
45
|
new_file_name = "test2.pptx"
|
46
|
-
AsposeSlidesCloud::SpecUtils.
|
46
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + new_file_name)
|
47
47
|
source_path = folder_name + "/" + file_name
|
48
|
-
AsposeSlidesCloud::SpecUtils.
|
49
|
-
AsposeSlidesCloud::SpecUtils.
|
48
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, source_path)
|
49
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.create_presentation_from_source(new_file_name, source_path, "password", nil, nil, folder_name)
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'from template' do
|
53
53
|
folder_name = "TempSlidesSDK"
|
54
54
|
file_name = "test.pptx"
|
55
55
|
template_file_name = "TemplateCV.pptx"
|
56
|
-
AsposeSlidesCloud::SpecUtils.
|
56
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
|
57
57
|
template_path = folder_name + "/" + template_file_name
|
58
|
-
AsposeSlidesCloud::SpecUtils.
|
58
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + template_file_name, template_path)
|
59
59
|
data = "<staff><person><name>John Doe</name><address><line1>10 Downing Street</line1><line2>London</line2></address><phone>+457 123456</phone><bio>Hi, I'm John and this is my CV</bio><skills><skill><title>C#</title><level>Excellent</level></skill><skill><title>C++</title><level>Good</level></skill><skill><title>Java</title><level>Average</level></skill></skills></person></staff>"
|
60
|
-
AsposeSlidesCloud::SpecUtils.
|
60
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.create_presentation_from_template(file_name, template_path, data, nil, nil, nil, nil, folder_name)
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'from HTML' do
|
64
64
|
folder_name = "TempSlidesSDK"
|
65
65
|
file_name = "test.pptx"
|
66
|
-
AsposeSlidesCloud::SpecUtils.
|
67
|
-
AsposeSlidesCloud::SpecUtils.
|
66
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
|
67
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_html(file_name, "<html><body>New Content</body></html>", nil, folder_name)
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'append from HTML' do
|
71
71
|
folder_name = "TempSlidesSDK"
|
72
72
|
file_name = "test.pptx"
|
73
73
|
password = "password"
|
74
|
-
AsposeSlidesCloud::SpecUtils.
|
75
|
-
slide_count = AsposeSlidesCloud::SpecUtils.
|
76
|
-
AsposeSlidesCloud::SpecUtils.
|
77
|
-
new_slide_count = AsposeSlidesCloud::SpecUtils.
|
74
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
75
|
+
slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
|
76
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_html(file_name, "<html><body>New Content</body></html>", password, folder_name)
|
77
|
+
new_slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
|
78
78
|
expect(new_slide_count).to eq(slide_count + 1)
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'from PDF' do
|
82
82
|
folder_name = "TempSlidesSDK"
|
83
83
|
file_name = "test.pptx"
|
84
|
-
AsposeSlidesCloud::SpecUtils.
|
84
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
|
85
85
|
source = File.binread("TestData/test.pdf")
|
86
|
-
AsposeSlidesCloud::SpecUtils.
|
86
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, nil, folder_name)
|
87
87
|
end
|
88
88
|
|
89
89
|
it 'append from PDF' do
|
90
90
|
folder_name = "TempSlidesSDK"
|
91
91
|
file_name = "test.pptx"
|
92
92
|
password = "password"
|
93
|
-
AsposeSlidesCloud::SpecUtils.
|
94
|
-
slide_count = AsposeSlidesCloud::SpecUtils.
|
93
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
94
|
+
slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
|
95
95
|
source = File.binread("TestData/test.pdf")
|
96
|
-
AsposeSlidesCloud::SpecUtils.
|
97
|
-
new_slide_count = AsposeSlidesCloud::SpecUtils.
|
96
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, password, folder_name)
|
97
|
+
new_slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
|
98
98
|
expect(new_slide_count).to eq(slide_count + 4)
|
99
99
|
end
|
100
100
|
end
|