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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -7
  3. data/README.md +4 -0
  4. data/aspose_slides_cloud.gemspec +0 -1
  5. data/docker-entrypoint.sh +1 -0
  6. data/lib/aspose_slides_cloud/api/slides_async_api.rb +273 -0
  7. data/lib/aspose_slides_cloud/api_client.rb +2 -1
  8. data/lib/aspose_slides_cloud/models/operation.rb +209 -0
  9. data/lib/aspose_slides_cloud/type_registry.rb +1 -0
  10. data/lib/aspose_slides_cloud/version.rb +1 -1
  11. data/lib/aspose_slides_cloud.rb +2 -0
  12. data/spec/api/slides_api_spec.rb +2016 -2016
  13. data/spec/api/slides_async_api_spec.rb +554 -0
  14. data/spec/spec_utils.rb +38 -7
  15. data/spec/use_cases/abstract_class_spec.rb +1 -1
  16. data/spec/use_cases/animation_spec.rb +28 -28
  17. data/spec/use_cases/async_api_spec.rb +82 -0
  18. data/spec/use_cases/chart_spec.rb +51 -51
  19. data/spec/use_cases/comment_spec.rb +17 -17
  20. data/spec/use_cases/create_spec.rb +22 -22
  21. data/spec/use_cases/font_spec.rb +24 -24
  22. data/spec/use_cases/header_footer_spec.rb +9 -9
  23. data/spec/use_cases/hyperlink_spec.rb +10 -10
  24. data/spec/use_cases/image_spec.rb +16 -16
  25. data/spec/use_cases/layout_slide_spec.rb +41 -41
  26. data/spec/use_cases/master_slide_spec.rb +40 -40
  27. data/spec/use_cases/math_spec.rb +15 -15
  28. data/spec/use_cases/merge_spec.rb +15 -15
  29. data/spec/use_cases/notes_slide_spec.rb +39 -39
  30. data/spec/use_cases/nullable_field_spec.rb +7 -7
  31. data/spec/use_cases/paragraph_spec.rb +38 -38
  32. data/spec/use_cases/pipeline_spec.rb +1 -1
  33. data/spec/use_cases/portion_spec.rb +34 -34
  34. data/spec/use_cases/property_spec.rb +38 -38
  35. data/spec/use_cases/section_spec.rb +16 -16
  36. data/spec/use_cases/shape_format_spec.rb +12 -12
  37. data/spec/use_cases/shape_spec.rb +87 -87
  38. data/spec/use_cases/slide_spec.rb +32 -32
  39. data/spec/use_cases/split_spec.rb +12 -12
  40. data/spec/use_cases/table_spec.rb +38 -38
  41. data/spec/use_cases/text_format_spec.rb +4 -4
  42. data/spec/use_cases/text_spec.rb +28 -28
  43. data/spec/use_cases/vba_spec.rb +10 -10
  44. data/spec/use_cases/watermark_spec.rb +36 -36
  45. data/testConfig.json +2 -1
  46. data/testRules.json +7 -0
  47. metadata +8 -24
  48. data/spec/use_cases/convert_spec.rb +0 -199
@@ -27,14 +27,14 @@ describe 'UseCases' do
27
27
  it "get fonts" do
28
28
  folder_name = "TempSlidesSDK"
29
29
  file_name = "test.pptx"
30
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
31
- response = AsposeSlidesCloud::SpecUtils.api.get_fonts(file_name, "password", folder_name)
30
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
31
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_fonts(file_name, "password", folder_name)
32
32
  expect(response.list.length).to eq(3)
33
33
  end
34
34
 
35
35
  it "get fonts online" do
36
36
  source = File.binread("TestData/test.pptx")
37
- response = AsposeSlidesCloud::SpecUtils.api.get_fonts_online(source, "password")
37
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_fonts_online(source, "password")
38
38
  expect(response.list.length).to eq(3)
39
39
  end
40
40
 
@@ -42,8 +42,8 @@ describe 'UseCases' do
42
42
  folder_name = "TempSlidesSDK"
43
43
  file_name = "test.pptx"
44
44
  font_name = "Calibri"
45
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
46
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font(file_name, font_name, false, "password", folder_name)
45
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
46
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font(file_name, font_name, false, "password", folder_name)
47
47
  expect(response.list.length).to eq(3)
48
48
  expect(response.list[2].is_embedded).to eq(true)
49
49
  expect(response.list[2].font_name).to eq(font_name)
@@ -52,7 +52,7 @@ describe 'UseCases' do
52
52
  it "set embedded font online" do
53
53
  source = File.binread("TestData/test.pptx")
54
54
  font_name = "Calibri"
55
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font_online(source, font_name, false, "password")
55
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font_online(source, font_name, false, "password")
56
56
  expect(response.size).not_to eq(source.size)
57
57
  end
58
58
 
@@ -61,8 +61,8 @@ describe 'UseCases' do
61
61
  file_name = "test.pptx"
62
62
  font_name = "Calibri"
63
63
  source = File.binread("TestData/calibri.ttf")
64
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
65
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font_from_request(source, file_name, false, "password", folder_name)
64
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
65
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font_from_request(source, file_name, false, "password", folder_name)
66
66
  expect(response.list.length).to eq(3)
67
67
  expect(response.list[2].is_embedded).to eq(true)
68
68
  expect(response.list[2].font_name).to eq(font_name)
@@ -73,7 +73,7 @@ describe 'UseCases' do
73
73
  file_name = "test.pptx"
74
74
  sourceDocument = File.binread("TestData/test.pptx")
75
75
  sourceFont = File.binread("TestData/calibri.ttf")
76
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font_from_request_online(sourceDocument, sourceFont,
76
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font_from_request_online(sourceDocument, sourceFont,
77
77
  false, "password")
78
78
  expect(response.size).not_to eq(sourceDocument.size)
79
79
  end
@@ -82,20 +82,20 @@ describe 'UseCases' do
82
82
  folder_name = "TempSlidesSDK"
83
83
  file_name = "test.pptx"
84
84
  font_name = "Calibri"
85
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
86
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font(file_name, font_name, false, "password", folder_name)
85
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
86
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font(file_name, font_name, false, "password", folder_name)
87
87
  expect(response.list[2].is_embedded).to eq(true)
88
88
  #In a real world example, you would rather get the same result by calling set_embedded_font with onlyUsed = true
89
- AsposeSlidesCloud::SpecUtils.api.compress_embedded_fonts(file_name, "password", folder_name)
89
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_embedded_fonts(file_name, "password", folder_name)
90
90
  end
91
91
 
92
92
  it "compress embedded fonts online" do
93
93
  source = File.binread("TestData/test.pptx")
94
94
  font_name = "Calibri"
95
- response_embedded = AsposeSlidesCloud::SpecUtils.api.set_embedded_font_online(source, font_name, false, "password")
95
+ response_embedded = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font_online(source, font_name, false, "password")
96
96
  expect(response_embedded.size).not_to eq(source.size)
97
97
  #In a real world example, you would rather get the same result by calling set_embedded_font with onlyUsed = true
98
- response_compressed = AsposeSlidesCloud::SpecUtils.api.compress_embedded_fonts_online(response_embedded, "password")
98
+ response_compressed = AsposeSlidesCloud::SpecUtils.testSlidesApi.compress_embedded_fonts_online(response_embedded, "password")
99
99
  expect(response_compressed.size).to be < response_embedded.size
100
100
  end
101
101
 
@@ -103,19 +103,19 @@ describe 'UseCases' do
103
103
  folder_name = "TempSlidesSDK"
104
104
  file_name = "test.pptx"
105
105
  font_name = "Calibri"
106
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
107
- response = AsposeSlidesCloud::SpecUtils.api.set_embedded_font(file_name, font_name, false, "password", folder_name)
106
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
107
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font(file_name, font_name, false, "password", folder_name)
108
108
  expect(response.list[2].is_embedded).to eq(true)
109
- response = AsposeSlidesCloud::SpecUtils.api.delete_embedded_font(file_name, font_name, "password", folder_name)
109
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_embedded_font(file_name, font_name, "password", folder_name)
110
110
  expect(response.list[2].is_embedded).to eq(nil)
111
111
  end
112
112
 
113
113
  it "delete embedded font online" do
114
114
  source = File.binread("TestData/test.pptx")
115
115
  font_name = "Calibri"
116
- response_embedded = AsposeSlidesCloud::SpecUtils.api.set_embedded_font_online(source, font_name, false, "password")
116
+ response_embedded = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_embedded_font_online(source, font_name, false, "password")
117
117
  expect(response_embedded.size).not_to eq(source.size)
118
- response_deleted = AsposeSlidesCloud::SpecUtils.api.delete_embedded_font_online(response_embedded, font_name, "password")
118
+ response_deleted = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_embedded_font_online(response_embedded, font_name, "password")
119
119
  expect(response_deleted.size).to eq(source.size)
120
120
  end
121
121
 
@@ -125,8 +125,8 @@ describe 'UseCases' do
125
125
  source_font_name = "Calibri"
126
126
  target_font_name = "Times New Roman"
127
127
  embed = true
128
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
129
- response = AsposeSlidesCloud::SpecUtils.api.replace_font(file_name, source_font_name, target_font_name, embed,
128
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
129
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_font(file_name, source_font_name, target_font_name, embed,
130
130
  "password", folder_name)
131
131
  expect(response.list[2].is_embedded).to eq(true)
132
132
  expect(response.list[2].font_name).to eq("Times New Roman")
@@ -139,7 +139,7 @@ describe 'UseCases' do
139
139
  target_font_name = "Times New Roman"
140
140
  embed = true
141
141
  source = File.binread("TestData/test.pptx")
142
- response = AsposeSlidesCloud::SpecUtils.api.replace_font_online(source, source_font_name, target_font_name, embed,
142
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_font_online(source, source_font_name, target_font_name, embed,
143
143
  "password")
144
144
  expect(response.size).not_to eq(source.size)
145
145
  end
@@ -148,7 +148,7 @@ describe 'UseCases' do
148
148
  folder_name = "TempSlidesSDK"
149
149
  file_name = "test.pptx"
150
150
  target_font_name = "Times New Roman"
151
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
151
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
152
152
  font_rule1 = AsposeSlidesCloud::FontSubstRule.new
153
153
  font_rule1.source_font = "Arial"
154
154
  font_rule1.target_font = target_font_name
@@ -158,7 +158,7 @@ describe 'UseCases' do
158
158
  font_rule2.target_font = target_font_name
159
159
  export_options = AsposeSlidesCloud::ImageExportOptions.new
160
160
  export_options.font_subst_rules = [font_rule1, font_rule2]
161
- response = AsposeSlidesCloud::SpecUtils.api.download_presentation(file_name, "PNG", export_options, "password", folder_name)
161
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_presentation(file_name, "PNG", export_options, "password", folder_name)
162
162
  end
163
163
  end
164
164
  end
@@ -28,13 +28,13 @@ describe 'UseCases' do
28
28
  folder_name = "TempSlidesSDK"
29
29
  file_name = "test.pptx"
30
30
  password = "password"
31
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
31
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
32
32
  dto = AsposeSlidesCloud::HeaderFooter.new
33
33
  dto.is_footer_visible = true
34
34
  dto.footer_text = "footer"
35
35
  dto.is_date_time_visible = false
36
- AsposeSlidesCloud::SpecUtils.api.set_presentation_header_footer(file_name, dto, "password", folder_name)
37
- result = AsposeSlidesCloud::SpecUtils.api.get_slide_header_footer(file_name, 1, "password", folder_name)
36
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.set_presentation_header_footer(file_name, dto, "password", folder_name)
37
+ result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_header_footer(file_name, 1, "password", folder_name)
38
38
  expect(result.is_footer_visible).to be true
39
39
  expect(result.is_date_time_visible).to be false
40
40
  end
@@ -44,15 +44,15 @@ describe 'UseCases' do
44
44
  file_name = "test.pptx"
45
45
  password = "password"
46
46
  slide_index = 1
47
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
47
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
48
48
  dto = AsposeSlidesCloud::HeaderFooter.new
49
49
  dto.is_footer_visible = true
50
50
  dto.footer_text = "footer"
51
51
  dto.is_date_time_visible = false
52
- result = AsposeSlidesCloud::SpecUtils.api.set_slide_header_footer(file_name, slide_index, dto, "password", folder_name)
52
+ result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_slide_header_footer(file_name, slide_index, dto, "password", folder_name)
53
53
  expect(result.is_footer_visible).to be true
54
54
  expect(result.is_date_time_visible).to be false
55
- result = AsposeSlidesCloud::SpecUtils.api.get_slide_header_footer(file_name, slide_index, "password", folder_name)
55
+ result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_header_footer(file_name, slide_index, "password", folder_name)
56
56
  expect(result.is_footer_visible).to be true
57
57
  expect(result.is_date_time_visible).to be false
58
58
  end
@@ -62,15 +62,15 @@ describe 'UseCases' do
62
62
  file_name = "test.pptx"
63
63
  password = "password"
64
64
  slide_index = 1
65
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
65
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
66
66
  dto = AsposeSlidesCloud::NotesSlideHeaderFooter.new
67
67
  dto.is_header_visible = true
68
68
  dto.footer_text = "footer"
69
69
  dto.is_date_time_visible = false
70
- result = AsposeSlidesCloud::SpecUtils.api.set_notes_slide_header_footer(file_name, slide_index, dto, "password", folder_name)
70
+ result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_notes_slide_header_footer(file_name, slide_index, dto, "password", folder_name)
71
71
  expect(result.is_header_visible).to be true
72
72
  expect(result.is_date_time_visible).to be false
73
- result = AsposeSlidesCloud::SpecUtils.api.get_notes_slide_header_footer(file_name, slide_index, "password", folder_name)
73
+ result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_notes_slide_header_footer(file_name, slide_index, "password", folder_name)
74
74
  expect(result.is_header_visible).to be true
75
75
  expect(result.is_date_time_visible).to be false
76
76
  end
@@ -27,9 +27,9 @@ describe 'UseCases' do
27
27
  it 'get shape' do
28
28
  folder_name = "TempSlidesSDK"
29
29
  file_name = "test.pptx"
30
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
30
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
31
31
 
32
- shape = AsposeSlidesCloud::SpecUtils.api.get_shape(file_name, 2, 2, "password", folder_name)
32
+ shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, 2, 2, "password", folder_name)
33
33
  expect(shape.hyperlink_click).to be_truthy
34
34
  expect(shape.hyperlink_click.action_type).to eq("Hyperlink")
35
35
  expect(shape.hyperlink_mouse_over).not_to be_truthy
@@ -38,9 +38,9 @@ describe 'UseCases' do
38
38
  it 'get portion' do
39
39
  folder_name = "TempSlidesSDK"
40
40
  file_name = "test.pptx"
41
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
41
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
42
42
 
43
- portion = AsposeSlidesCloud::SpecUtils.api.get_portion(file_name, 2, 1, 1, 2, "password", folder_name)
43
+ portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_portion(file_name, 2, 1, 1, 2, "password", folder_name)
44
44
  expect(portion.hyperlink_click).not_to be_truthy
45
45
  expect(portion.hyperlink_mouse_over).to be_truthy
46
46
  expect(portion.hyperlink_mouse_over.action_type).to eq("JumpLastSlide")
@@ -49,14 +49,14 @@ describe 'UseCases' do
49
49
  it 'create shape' do
50
50
  folder_name = "TempSlidesSDK"
51
51
  file_name = "test.pptx"
52
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
52
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
53
53
 
54
54
  shape = AsposeSlidesCloud::Shape.new
55
55
  hyperlink = AsposeSlidesCloud::Hyperlink.new
56
56
  hyperlink.action_type = "Hyperlink"
57
57
  hyperlink.external_url = "https://docs.aspose.cloud/slides"
58
58
  shape.hyperlink_click = hyperlink
59
- updated_shape = AsposeSlidesCloud::SpecUtils.api.update_shape(file_name, 2, 2, shape, "password", folder_name)
59
+ updated_shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, 2, 2, shape, "password", folder_name)
60
60
  expect(updated_shape.hyperlink_click).to be_truthy
61
61
  expect(updated_shape.hyperlink_click.external_url).to eq(shape.hyperlink_click.external_url)
62
62
  end
@@ -64,14 +64,14 @@ describe 'UseCases' do
64
64
  it 'create portion' do
65
65
  folder_name = "TempSlidesSDK"
66
66
  file_name = "test.pptx"
67
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
67
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
68
68
 
69
69
  dto = AsposeSlidesCloud::Portion.new
70
70
  dto.text = "Link text"
71
71
  hyperlink = AsposeSlidesCloud::Hyperlink.new
72
72
  hyperlink.action_type = "JumpLastSlide"
73
73
  dto.hyperlink_mouse_over = hyperlink
74
- updated_portion = AsposeSlidesCloud::SpecUtils.api.create_portion(file_name, 1, 1, 1, dto, nil, "password", folder_name)
74
+ updated_portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_portion(file_name, 1, 1, 1, dto, nil, "password", folder_name)
75
75
  expect(updated_portion.hyperlink_mouse_over).to be_truthy
76
76
  expect(updated_portion.hyperlink_mouse_over.action_type).to eq(dto.hyperlink_mouse_over.action_type)
77
77
  end
@@ -79,13 +79,13 @@ describe 'UseCases' do
79
79
  it 'delete' do
80
80
  folder_name = "TempSlidesSDK"
81
81
  file_name = "test.pptx"
82
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
82
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
83
83
 
84
84
  shape = AsposeSlidesCloud::PictureFrame.new
85
85
  hyperlink = AsposeSlidesCloud::Hyperlink.new
86
86
  hyperlink.is_disabled = true
87
87
  shape.hyperlink_click = hyperlink
88
- updated_shape = AsposeSlidesCloud::SpecUtils.api.update_shape(file_name, 2, 2, shape, "password", folder_name)
88
+ updated_shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, 2, 2, shape, "password", folder_name)
89
89
  expect(updated_shape.hyperlink_click).not_to be_truthy
90
90
  end
91
91
  end
@@ -29,9 +29,9 @@ describe 'UseCases' do
29
29
  folder_name = "TempSlidesSDK"
30
30
  file_name = "test.pptx"
31
31
  password = "password"
32
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
33
- presentation_result = AsposeSlidesCloud::SpecUtils.api.get_presentation_images(file_name, password, folder_name)
34
- slide_result = AsposeSlidesCloud::SpecUtils.api.get_slide_images(file_name, 1, password, folder_name)
32
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
33
+ presentation_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_presentation_images(file_name, password, folder_name)
34
+ slide_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_images(file_name, 1, password, folder_name)
35
35
  expect(slide_result.list.length).to be < presentation_result.list.length
36
36
  end
37
37
 
@@ -39,9 +39,9 @@ describe 'UseCases' do
39
39
  folder_name = "TempSlidesSDK"
40
40
  file_name = "test.pptx"
41
41
  password = "password"
42
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
43
- default_result = AsposeSlidesCloud::SpecUtils.api.download_images_default_format(file_name, password, folder_name)
44
- png_result = AsposeSlidesCloud::SpecUtils.api.download_images(file_name, 'png', password, folder_name)
42
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
43
+ default_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_images_default_format(file_name, password, folder_name)
44
+ png_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_images(file_name, 'png', password, folder_name)
45
45
  expect(png_result.size).not_to eq(default_result.size)
46
46
  default_count = 0
47
47
  Zip::File.open_buffer(default_result) do |zip|
@@ -61,8 +61,8 @@ describe 'UseCases' do
61
61
  it 'download all request' do
62
62
  password = "password"
63
63
  source = File.binread("TestData/test.pptx")
64
- default_result = AsposeSlidesCloud::SpecUtils.api.download_images_default_format_online(source, password)
65
- png_result = AsposeSlidesCloud::SpecUtils.api.download_images_online(source, 'png', password)
64
+ default_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_images_default_format_online(source, password)
65
+ png_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_images_online(source, 'png', password)
66
66
  expect(png_result.size).not_to eq(default_result.size)
67
67
  default_count = 0
68
68
  Zip::File.open_buffer(default_result) do |zip|
@@ -84,9 +84,9 @@ describe 'UseCases' do
84
84
  file_name = "test.pptx"
85
85
  slide_index = 1
86
86
  password = "password"
87
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
88
- default_result = AsposeSlidesCloud::SpecUtils.api.download_image_default_format(file_name, slide_index, password, folder_name)
89
- png_result = AsposeSlidesCloud::SpecUtils.api.download_image(file_name, slide_index, 'png', password, folder_name)
87
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
88
+ default_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_image_default_format(file_name, slide_index, password, folder_name)
89
+ png_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_image(file_name, slide_index, 'png', password, folder_name)
90
90
  expect(png_result.size).not_to eq(default_result.size)
91
91
  end
92
92
 
@@ -94,8 +94,8 @@ describe 'UseCases' do
94
94
  slide_index = 1
95
95
  password = "password"
96
96
  source = File.binread("TestData/test.pptx")
97
- default_result = AsposeSlidesCloud::SpecUtils.api.download_image_default_format_online(source, slide_index, password)
98
- png_result = AsposeSlidesCloud::SpecUtils.api.download_image_online(source, slide_index, 'png', password)
97
+ default_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_image_default_format_online(source, slide_index, password)
98
+ png_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_image_online(source, slide_index, 'png', password)
99
99
  expect(png_result.size).not_to eq(default_result.size)
100
100
  end
101
101
 
@@ -104,10 +104,10 @@ describe 'UseCases' do
104
104
  file_name = "test.pptx"
105
105
  image_index = 1
106
106
  password = "password"
107
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
107
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
108
108
 
109
109
  image = File.binread("TestData/watermark.png")
110
- AsposeSlidesCloud::SpecUtils.api.replace_image(file_name, image_index, image, password, folder_name)
110
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image(file_name, image_index, image, password, folder_name)
111
111
  end
112
112
 
113
113
  it 'replace image request' do
@@ -116,7 +116,7 @@ describe 'UseCases' do
116
116
 
117
117
  file = File.binread("TestData/test.pptx")
118
118
  image = File.binread("TestData/watermark.png")
119
- response = AsposeSlidesCloud::SpecUtils.api.replace_image_online(file, image_index, image, password)
119
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online(file, image_index, image, password)
120
120
  expect(response.size).not_to eq(0)
121
121
  end
122
122
  end
@@ -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.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
34
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + source_file, source_path)
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
- layout_slides = AsposeSlidesCloud::SpecUtils.api.get_layout_slides(file_name, password, folder_name)
36
+ layout_slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_layout_slides(file_name, password, folder_name)
37
37
  expect(layout_slides.slide_list.length).to eq(11)
38
38
 
39
- layout_slide = AsposeSlidesCloud::SpecUtils.api.get_layout_slide(file_name, 1, password, folder_name)
39
+ layout_slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_layout_slide(file_name, 1, password, folder_name)
40
40
  expect(layout_slide.name).to eq("Title Slide")
41
41
 
42
- layout_slide = AsposeSlidesCloud::SpecUtils.api.copy_layout_slide(file_name, source_path, 2, nil, nil, password, folder_name)
42
+ layout_slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_layout_slide(file_name, source_path, 2, nil, nil, password, folder_name)
43
43
  expect(layout_slide.name).to eq("Title and Content")
44
44
 
45
- layout_slides = AsposeSlidesCloud::SpecUtils.api.get_layout_slides(file_name, password, folder_name)
45
+ layout_slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_layout_slides(file_name, password, folder_name)
46
46
  expect(layout_slides.slide_list.length).to eq(12)
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.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
55
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
56
56
 
57
- shapes = AsposeSlidesCloud::SpecUtils.api.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
57
+ shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.create_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, dto, nil, nil, password, folder_name)
67
+ shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, dto, nil, nil, password, folder_name)
68
68
  expect(shape.text).to eq(dto.text)
69
- shapes = AsposeSlidesCloud::SpecUtils.api.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
69
+ shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.update_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_count + 1, dto, password, folder_name)
73
+ shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_count + 1, dto, password, folder_name)
74
74
  expect(shape.text).to eq(dto.text)
75
- shapes = AsposeSlidesCloud::SpecUtils.api.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
75
+ shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
76
76
  expect(shapes.shapes_links.length).to eq(shape_count + 1)
77
77
 
78
- AsposeSlidesCloud::SpecUtils.api.delete_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_count + 1, password, folder_name)
79
- shapes = AsposeSlidesCloud::SpecUtils.api.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
78
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_shape(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_count + 1, password, folder_name)
79
+ shapes = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_shapes(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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 = 1
90
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
90
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
91
91
 
92
- paragraphs = AsposeSlidesCloud::SpecUtils.api.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, password, folder_name)
92
+ paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.create_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, dto, nil, password, folder_name)
100
+ paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, dto, nil, password, folder_name)
101
101
  expect(paragraph.alignment).to eq(dto.alignment)
102
- paragraphs = AsposeSlidesCloud::SpecUtils.api.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, password, folder_name)
102
+ paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.update_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_count + 1, dto, password, folder_name)
107
+ paragraph = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_count + 1, dto, password, folder_name)
108
108
  expect(paragraph.alignment).to eq(dto.alignment)
109
- paragraphs = AsposeSlidesCloud::SpecUtils.api.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, password, folder_name)
109
+ paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, password, folder_name)
110
110
  expect(paragraphs.paragraph_links.length).to eq(paragraph_count + 1)
111
111
 
112
- AsposeSlidesCloud::SpecUtils.api.delete_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_count + 1, password, folder_name)
113
- paragraphs = AsposeSlidesCloud::SpecUtils.api.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, password, folder_name)
112
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_paragraph(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_count + 1, password, folder_name)
113
+ paragraphs = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_paragraphs(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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 = 1
124
124
  portion_count = 1
125
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
125
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
126
126
 
127
- portions = AsposeSlidesCloud::SpecUtils.api.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, password, folder_name)
127
+ portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.create_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, dto, nil, password, folder_name)
133
+ portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, password, folder_name)
136
+ portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.update_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, portion_count + 1, dto2, password, folder_name)
142
+ portion = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, password, folder_name)
146
+ portions = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, password, folder_name)
147
147
  expect(portions.items.length).to eq(portion_count + 1)
148
148
 
149
- AsposeSlidesCloud::SpecUtils.api.delete_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, portion_count + 1, password, folder_name)
150
- portions = AsposeSlidesCloud::SpecUtils.api.get_special_slide_portions(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, shape_index, paragraph_index, password, folder_name)
149
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_portion(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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::LAYOUT_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.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
159
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
160
160
 
161
- animation = AsposeSlidesCloud::SpecUtils.api.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, nil, nil, password, folder_name)
161
+ animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.set_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, dto, password, folder_name)
174
+ animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, dto, password, folder_name)
175
175
  expect(animation.main_sequence.length).to eq(dto.main_sequence.length)
176
176
 
177
- animation = AsposeSlidesCloud::SpecUtils.api.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, 3, nil, password, folder_name)
177
+ animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, 3, nil, password, folder_name)
178
178
  expect(animation.main_sequence.length).to eq(1)
179
179
 
180
- AsposeSlidesCloud::SpecUtils.api.delete_special_slide_animation_effect(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, 2, password, folder_name)
180
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_animation_effect(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_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.api.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, 3, nil, password, folder_name)
183
+ animation = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, 3, nil, password, folder_name)
184
184
  expect(animation.main_sequence.length).to eq(0)
185
185
 
186
- AsposeSlidesCloud::SpecUtils.api.delete_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
186
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_special_slide_animation(file_name, slide_index, AsposeSlidesCloud::SpecialSlideType::LAYOUT_SLIDE, password, folder_name)
187
187
  expect(animation.main_sequence.length).to eq(0)
188
188
  end
189
189
 
@@ -191,17 +191,17 @@ describe 'UseCases' do
191
191
  folder_name = "TempSlidesSDK"
192
192
  file_name = "test.pptx"
193
193
  password = "password"
194
- AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
195
- layout_slides_before = AsposeSlidesCloud::SpecUtils.api.get_layout_slides(file_name, password, folder_name)
194
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
195
+ layout_slides_before = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_layout_slides(file_name, password, folder_name)
196
196
  expect(layout_slides_before.slide_list.length).to eq(11)
197
- layout_slides_after = AsposeSlidesCloud::SpecUtils.api.delete_unused_layout_slides(file_name, password, folder_name)
197
+ layout_slides_after = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_unused_layout_slides(file_name, password, folder_name)
198
198
  expect(layout_slides_after.slide_list.length).to eq(2)
199
199
  end
200
200
 
201
201
  it "delete unused online" do
202
202
  source = File.binread("TestData/test.pptx")
203
203
  password = "password"
204
- response = AsposeSlidesCloud::SpecUtils.api.delete_unused_layout_slides_online(source, password)
204
+ response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_unused_layout_slides_online(source, password)
205
205
  expect(response.size).not_to eq(0)
206
206
  end
207
207
  end