aspose_slides_cloud 23.9.0 → 23.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -7
- data/README.md +4 -0
- data/aspose_slides_cloud.gemspec +0 -1
- data/docker-entrypoint.sh +1 -0
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +273 -0
- data/lib/aspose_slides_cloud/api_client.rb +2 -1
- data/lib/aspose_slides_cloud/models/operation.rb +209 -0
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +2016 -2016
- data/spec/api/slides_async_api_spec.rb +554 -0
- data/spec/spec_utils.rb +38 -7
- data/spec/use_cases/abstract_class_spec.rb +1 -1
- data/spec/use_cases/animation_spec.rb +28 -28
- data/spec/use_cases/async_api_spec.rb +82 -0
- data/spec/use_cases/chart_spec.rb +51 -51
- data/spec/use_cases/comment_spec.rb +17 -17
- data/spec/use_cases/create_spec.rb +22 -22
- data/spec/use_cases/font_spec.rb +24 -24
- data/spec/use_cases/header_footer_spec.rb +9 -9
- data/spec/use_cases/hyperlink_spec.rb +10 -10
- data/spec/use_cases/image_spec.rb +16 -16
- data/spec/use_cases/layout_slide_spec.rb +41 -41
- data/spec/use_cases/master_slide_spec.rb +40 -40
- data/spec/use_cases/math_spec.rb +15 -15
- data/spec/use_cases/merge_spec.rb +15 -15
- data/spec/use_cases/notes_slide_spec.rb +39 -39
- data/spec/use_cases/nullable_field_spec.rb +7 -7
- data/spec/use_cases/paragraph_spec.rb +38 -38
- data/spec/use_cases/pipeline_spec.rb +1 -1
- data/spec/use_cases/portion_spec.rb +34 -34
- data/spec/use_cases/property_spec.rb +38 -38
- data/spec/use_cases/section_spec.rb +16 -16
- data/spec/use_cases/shape_format_spec.rb +12 -12
- data/spec/use_cases/shape_spec.rb +87 -87
- data/spec/use_cases/slide_spec.rb +32 -32
- data/spec/use_cases/split_spec.rb +12 -12
- data/spec/use_cases/table_spec.rb +38 -38
- data/spec/use_cases/text_format_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +28 -28
- data/spec/use_cases/vba_spec.rb +10 -10
- data/spec/use_cases/watermark_spec.rb +36 -36
- data/testConfig.json +2 -1
- data/testRules.json +7 -0
- metadata +8 -24
- data/spec/use_cases/convert_spec.rb +0 -199
@@ -30,18 +30,18 @@ describe 'UseCases' do
|
|
30
30
|
password = "password"
|
31
31
|
property_name = "Author"
|
32
32
|
updated_property_value = "New Value"
|
33
|
-
AsposeSlidesCloud::SpecUtils.
|
34
|
-
result = AsposeSlidesCloud::SpecUtils.
|
33
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
34
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_document_property(file_name, property_name, password, folder_name)
|
35
35
|
expect(result.name).to eq(property_name)
|
36
36
|
expect(result.built_in).to be true
|
37
37
|
property = AsposeSlidesCloud::DocumentProperty.new
|
38
38
|
property.value = updated_property_value
|
39
|
-
result = AsposeSlidesCloud::SpecUtils.
|
39
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_document_property(file_name, property_name, property, password, folder_name)
|
40
40
|
expect(result.name).to eq(property_name)
|
41
41
|
expect(result.value).to eq(updated_property_value)
|
42
42
|
expect(result.built_in).to be true
|
43
|
-
AsposeSlidesCloud::SpecUtils.
|
44
|
-
result = AsposeSlidesCloud::SpecUtils.
|
43
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_document_property(file_name, property_name, password, folder_name)
|
44
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_document_property(file_name, property_name, password, folder_name)
|
45
45
|
#built-in property is not actually deleted
|
46
46
|
expect(result.name).to eq(property_name)
|
47
47
|
expect(result.value).not_to eq(updated_property_value)
|
@@ -54,16 +54,16 @@ describe 'UseCases' do
|
|
54
54
|
password = "password"
|
55
55
|
property_name = "CustomProperty2"
|
56
56
|
updated_property_value = "New Value"
|
57
|
-
AsposeSlidesCloud::SpecUtils.
|
57
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
58
58
|
property = AsposeSlidesCloud::DocumentProperty.new
|
59
59
|
property.value = updated_property_value
|
60
|
-
result = AsposeSlidesCloud::SpecUtils.
|
60
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_document_property(file_name, property_name, property, password, folder_name)
|
61
61
|
expect(result.name).to eq(property_name)
|
62
62
|
expect(result.value).to eq(updated_property_value)
|
63
63
|
expect(result.built_in).not_to be true
|
64
|
-
AsposeSlidesCloud::SpecUtils.
|
64
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_document_property(file_name, property_name, password, folder_name)
|
65
65
|
begin
|
66
|
-
AsposeSlidesCloud::SpecUtils.
|
66
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_document_property(file_name, property_name, password, folder_name)
|
67
67
|
fail "The property must have been deleted"
|
68
68
|
rescue AsposeSlidesCloud::ApiError => e
|
69
69
|
expect(e.code).to eq(404)
|
@@ -77,8 +77,8 @@ describe 'UseCases' do
|
|
77
77
|
property_name = "Author"
|
78
78
|
custom_property_name = "CustomProperty2"
|
79
79
|
updated_property_value = "New Value"
|
80
|
-
AsposeSlidesCloud::SpecUtils.
|
81
|
-
result = AsposeSlidesCloud::SpecUtils.
|
80
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
81
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_document_properties(file_name, password, folder_name)
|
82
82
|
count = result.list.length
|
83
83
|
property1 = AsposeSlidesCloud::DocumentProperty.new
|
84
84
|
property1.name = property_name
|
@@ -88,9 +88,9 @@ describe 'UseCases' do
|
|
88
88
|
property2.value = updated_property_value
|
89
89
|
properties = AsposeSlidesCloud::DocumentProperties.new
|
90
90
|
properties.list = [ property1, property2 ]
|
91
|
-
result = AsposeSlidesCloud::SpecUtils.
|
91
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_document_properties(file_name, properties, password, folder_name)
|
92
92
|
expect(result.list.length).to eq(count + 1)
|
93
|
-
result = AsposeSlidesCloud::SpecUtils.
|
93
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_document_properties(file_name, password, folder_name)
|
94
94
|
expect(result.list.length).to eq(count - 1)
|
95
95
|
end
|
96
96
|
|
@@ -98,11 +98,11 @@ describe 'UseCases' do
|
|
98
98
|
folder_name = "TempSlidesSDK"
|
99
99
|
file_name = "test.pptx"
|
100
100
|
password = "password"
|
101
|
-
AsposeSlidesCloud::SpecUtils.
|
102
|
-
get_result = AsposeSlidesCloud::SpecUtils.
|
101
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
102
|
+
get_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_properties(file_name, password, folder_name)
|
103
103
|
dto = AsposeSlidesCloud::SlideProperties.new
|
104
104
|
dto.first_slide_number = get_result.first_slide_number + 2
|
105
|
-
put_result = AsposeSlidesCloud::SpecUtils.
|
105
|
+
put_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_slide_properties(file_name, dto, password, folder_name)
|
106
106
|
expect(put_result.orientation).to eq(get_result.orientation)
|
107
107
|
expect(put_result.first_slide_number).not_to eq(get_result.first_slide_number)
|
108
108
|
end
|
@@ -111,10 +111,10 @@ describe 'UseCases' do
|
|
111
111
|
folder_name = "TempSlidesSDK"
|
112
112
|
file_name = "test.pptx"
|
113
113
|
password = "password"
|
114
|
-
AsposeSlidesCloud::SpecUtils.
|
114
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
115
115
|
dto = AsposeSlidesCloud::SlideProperties.new
|
116
116
|
dto.size_type = 'B4IsoPaper'
|
117
|
-
result = AsposeSlidesCloud::SpecUtils.
|
117
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_slide_properties(file_name, dto, password, folder_name)
|
118
118
|
expect(result.size_type).to eq('B4IsoPaper')
|
119
119
|
expect(result.width).to eq(852)
|
120
120
|
expect(result.height).to eq(639)
|
@@ -126,11 +126,11 @@ describe 'UseCases' do
|
|
126
126
|
password = "password"
|
127
127
|
width = 800
|
128
128
|
height = 500
|
129
|
-
AsposeSlidesCloud::SpecUtils.
|
129
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
130
130
|
dto = AsposeSlidesCloud::SlideProperties.new
|
131
131
|
dto.width = width
|
132
132
|
dto.height = height
|
133
|
-
result = AsposeSlidesCloud::SpecUtils.
|
133
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_slide_properties(file_name, dto, password, folder_name)
|
134
134
|
expect(result.size_type).to eq('Custom')
|
135
135
|
expect(result.width).to eq(width)
|
136
136
|
expect(result.height).to eq(height)
|
@@ -140,11 +140,11 @@ describe 'UseCases' do
|
|
140
140
|
folder_name = "TempSlidesSDK"
|
141
141
|
file_name = "test.pptx"
|
142
142
|
password = "password"
|
143
|
-
AsposeSlidesCloud::SpecUtils.
|
144
|
-
get_result = AsposeSlidesCloud::SpecUtils.
|
143
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
144
|
+
get_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_protection_properties(file_name, password, folder_name)
|
145
145
|
dto = AsposeSlidesCloud::ProtectionProperties.new
|
146
146
|
dto.read_only_recommended = !get_result.read_only_recommended
|
147
|
-
put_result = AsposeSlidesCloud::SpecUtils.
|
147
|
+
put_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_protection(file_name, dto, password, folder_name)
|
148
148
|
expect(put_result.encrypt_document_properties).to eq(get_result.encrypt_document_properties)
|
149
149
|
expect(put_result.read_only_recommended).not_to eq(get_result.read_only_recommended)
|
150
150
|
end
|
@@ -153,8 +153,8 @@ describe 'UseCases' do
|
|
153
153
|
folder_name = "TempSlidesSDK"
|
154
154
|
file_name = "test.pptx"
|
155
155
|
password = "password"
|
156
|
-
AsposeSlidesCloud::SpecUtils.
|
157
|
-
result = AsposeSlidesCloud::SpecUtils.
|
156
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
157
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_protection(file_name, password, folder_name)
|
158
158
|
expect(result.is_encrypted).not_to be true
|
159
159
|
expect(result.read_only_recommended).not_to be true
|
160
160
|
expect(result.read_password).not_to be true
|
@@ -164,13 +164,13 @@ describe 'UseCases' do
|
|
164
164
|
dto = AsposeSlidesCloud::ProtectionProperties.new
|
165
165
|
dto.read_password = "newPassword"
|
166
166
|
source = File.binread("TestData/test.pptx")
|
167
|
-
result = AsposeSlidesCloud::SpecUtils.
|
167
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_protection_online(source, dto, "password")
|
168
168
|
expect(result.size).to be > 0
|
169
169
|
end
|
170
170
|
|
171
171
|
it 'protection unprotect online' do
|
172
172
|
source = File.binread("TestData/test.pptx")
|
173
|
-
result = AsposeSlidesCloud::SpecUtils.
|
173
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_protection_online(source, "password")
|
174
174
|
expect(result.size).not_to eq(source.size)
|
175
175
|
end
|
176
176
|
|
@@ -178,8 +178,8 @@ describe 'UseCases' do
|
|
178
178
|
folder_name = "TempSlidesSDK"
|
179
179
|
file_name = "test.pptx"
|
180
180
|
password = "password"
|
181
|
-
AsposeSlidesCloud::SpecUtils.
|
182
|
-
response = AsposeSlidesCloud::SpecUtils.
|
181
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
182
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_view_properties(file_name, password, folder_name)
|
183
183
|
expect(response.show_comments).to eq ('True')
|
184
184
|
end
|
185
185
|
|
@@ -187,12 +187,12 @@ describe 'UseCases' do
|
|
187
187
|
folder_name = "TempSlidesSDK"
|
188
188
|
file_name = "test.pptx"
|
189
189
|
password = "password"
|
190
|
-
AsposeSlidesCloud::SpecUtils.
|
190
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
191
191
|
dto = AsposeSlidesCloud::ViewProperties.new
|
192
192
|
dto.show_comments = "False"
|
193
193
|
dto.slide_view_properties = AsposeSlidesCloud::CommonSlideViewProperties.new
|
194
194
|
dto.slide_view_properties.scale = 50
|
195
|
-
response = AsposeSlidesCloud::SpecUtils.
|
195
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_view_properties(file_name, dto, password, folder_name)
|
196
196
|
expect(response.show_comments).to eq "False"
|
197
197
|
expect(response.slide_view_properties.scale).to eq 50
|
198
198
|
end
|
@@ -201,11 +201,11 @@ describe 'UseCases' do
|
|
201
201
|
folder_name = "TempSlidesSDK"
|
202
202
|
file_name = "test.pptx"
|
203
203
|
password = "password"
|
204
|
-
AsposeSlidesCloud::SpecUtils.
|
205
|
-
protection_properties = AsposeSlidesCloud::SpecUtils.
|
204
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
205
|
+
protection_properties = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_protection_properties(file_name, nil, folder_name)
|
206
206
|
expect(protection_properties.is_encrypted).to eq true
|
207
207
|
expect(protection_properties.read_password).to eq nil
|
208
|
-
protection_properties = AsposeSlidesCloud::SpecUtils.
|
208
|
+
protection_properties = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_protection_properties(file_name, password, folder_name)
|
209
209
|
expect(protection_properties.is_encrypted).to eq true
|
210
210
|
expect(protection_properties.read_password).not_to eq nil
|
211
211
|
end
|
@@ -214,8 +214,8 @@ describe 'UseCases' do
|
|
214
214
|
folder_name = "TempSlidesSDK"
|
215
215
|
file_name = "test.pptx"
|
216
216
|
password = "password"
|
217
|
-
AsposeSlidesCloud::SpecUtils.
|
218
|
-
response = AsposeSlidesCloud::SpecUtils.
|
217
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
218
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slide_show_properties(file_name, password, folder_name)
|
219
219
|
expect(response.show_animation).to eq (true)
|
220
220
|
expect(response.show_narration).to eq (true)
|
221
221
|
end
|
@@ -224,11 +224,11 @@ describe 'UseCases' do
|
|
224
224
|
folder_name = "TempSlidesSDK"
|
225
225
|
file_name = "test.pptx"
|
226
226
|
password = "password"
|
227
|
-
AsposeSlidesCloud::SpecUtils.
|
227
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
228
228
|
dto = AsposeSlidesCloud::SlideShowProperties.new
|
229
229
|
dto.loop = true
|
230
230
|
dto.slide_show_type = "PresentedBySpeaker"
|
231
|
-
response = AsposeSlidesCloud::SpecUtils.
|
231
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_slide_show_properties(file_name, dto, password, folder_name)
|
232
232
|
expect(response.loop).to eq dto.loop
|
233
233
|
expect(response.slide_show_type).to eq dto.slide_show_type
|
234
234
|
end
|
@@ -28,15 +28,15 @@ describe 'UseCases' do
|
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
30
|
password = "password"
|
31
|
-
AsposeSlidesCloud::SpecUtils.
|
32
|
-
result = AsposeSlidesCloud::SpecUtils.
|
31
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
32
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_sections(file_name, "password", folder_name)
|
33
33
|
expect(result.section_list.length).to eq(3)
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'replace' 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
|
dto = AsposeSlidesCloud::Sections.new
|
41
41
|
section1 = AsposeSlidesCloud::Section.new
|
42
42
|
section1.name = "Section1"
|
@@ -45,7 +45,7 @@ describe 'UseCases' do
|
|
45
45
|
section2.name = "Section2"
|
46
46
|
section2.first_slide_index = 3
|
47
47
|
dto.section_list = [ section1, section2 ]
|
48
|
-
result = AsposeSlidesCloud::SpecUtils.
|
48
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_sections(file_name, dto, "password", folder_name)
|
49
49
|
expect(result.section_list.length).to eq(dto.section_list.length)
|
50
50
|
expect(result.section_list[0].slide_list.length).to eq(section2.first_slide_index - section1.first_slide_index)
|
51
51
|
end
|
@@ -53,18 +53,18 @@ describe 'UseCases' do
|
|
53
53
|
it 'post' do
|
54
54
|
folder_name = "TempSlidesSDK"
|
55
55
|
file_name = "test.pptx"
|
56
|
-
AsposeSlidesCloud::SpecUtils.
|
57
|
-
result = AsposeSlidesCloud::SpecUtils.
|
56
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
57
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_section(file_name, "NewSection", 5, "password", folder_name)
|
58
58
|
expect(result.section_list.length).to eq(4)
|
59
59
|
end
|
60
60
|
|
61
61
|
it 'put' do
|
62
62
|
folder_name = "TempSlidesSDK"
|
63
63
|
file_name = "test.pptx"
|
64
|
-
AsposeSlidesCloud::SpecUtils.
|
64
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
65
65
|
section_index = 2
|
66
66
|
section_name = "UpdatedSection"
|
67
|
-
result = AsposeSlidesCloud::SpecUtils.
|
67
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_section(file_name, section_index, section_name, "password", folder_name)
|
68
68
|
expect(result.section_list.length).to eq(3)
|
69
69
|
expect(result.section_list[section_index - 1].name).to eq(section_name)
|
70
70
|
end
|
@@ -72,32 +72,32 @@ describe 'UseCases' do
|
|
72
72
|
it 'move' do
|
73
73
|
folder_name = "TempSlidesSDK"
|
74
74
|
file_name = "test.pptx"
|
75
|
-
AsposeSlidesCloud::SpecUtils.
|
76
|
-
result = AsposeSlidesCloud::SpecUtils.
|
75
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
76
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.move_section(file_name, 1, 2, "password", folder_name)
|
77
77
|
expect(result.section_list.length).to eq(3)
|
78
78
|
end
|
79
79
|
|
80
80
|
it 'clear' do
|
81
81
|
folder_name = "TempSlidesSDK"
|
82
82
|
file_name = "test.pptx"
|
83
|
-
AsposeSlidesCloud::SpecUtils.
|
84
|
-
result = AsposeSlidesCloud::SpecUtils.
|
83
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
84
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_sections(file_name, nil, nil, "password", folder_name)
|
85
85
|
expect(result.section_list.length).to eq(0)
|
86
86
|
end
|
87
87
|
|
88
88
|
it 'delete many' do
|
89
89
|
folder_name = "TempSlidesSDK"
|
90
90
|
file_name = "test.pptx"
|
91
|
-
AsposeSlidesCloud::SpecUtils.
|
92
|
-
result = AsposeSlidesCloud::SpecUtils.
|
91
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
92
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_sections(file_name, [ 2, 3 ], nil, "password", folder_name)
|
93
93
|
expect(result.section_list.length).to eq(1)
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'delete' do
|
97
97
|
folder_name = "TempSlidesSDK"
|
98
98
|
file_name = "test.pptx"
|
99
|
-
AsposeSlidesCloud::SpecUtils.
|
100
|
-
result = AsposeSlidesCloud::SpecUtils.
|
99
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
100
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_section(file_name, 2, nil, "password", folder_name)
|
101
101
|
expect(result.section_list.length).to eq(2)
|
102
102
|
end
|
103
103
|
end
|
@@ -30,7 +30,7 @@ describe 'UseCases' do
|
|
30
30
|
password = "password"
|
31
31
|
slideIndex = 1
|
32
32
|
shapeIndex = 1
|
33
|
-
AsposeSlidesCloud::SpecUtils.
|
33
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
34
34
|
|
35
35
|
dto = AsposeSlidesCloud::Shape.new
|
36
36
|
line_format = AsposeSlidesCloud::LineFormat.new
|
@@ -38,9 +38,9 @@ describe 'UseCases' do
|
|
38
38
|
line_format.width = 7
|
39
39
|
line_format.dash_style = "Dash"
|
40
40
|
dto.line_format = line_format
|
41
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
41
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slideIndex, shapeIndex, dto, password, folder_name)
|
42
42
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
43
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
43
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slideIndex, shapeIndex, password, folder_name)
|
44
44
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
45
45
|
expect(shape.line_format.width).to eq(dto.line_format.width)
|
46
46
|
end
|
@@ -51,15 +51,15 @@ describe 'UseCases' do
|
|
51
51
|
password = "password"
|
52
52
|
slideIndex = 1
|
53
53
|
shapeIndex = 1
|
54
|
-
AsposeSlidesCloud::SpecUtils.
|
54
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
55
55
|
|
56
56
|
dto = AsposeSlidesCloud::Shape.new
|
57
57
|
fill_format = AsposeSlidesCloud::SolidFill.new
|
58
58
|
fill_format.color = "#FFFFFF00"
|
59
59
|
dto.fill_format = fill_format
|
60
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
60
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slideIndex, shapeIndex, dto, password, folder_name)
|
61
61
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
62
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
62
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slideIndex, shapeIndex, password, folder_name)
|
63
63
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
64
64
|
expect(shape.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
|
65
65
|
expect(shape.fill_format.color).to eq(dto.fill_format.color)
|
@@ -71,7 +71,7 @@ describe 'UseCases' do
|
|
71
71
|
password = "password"
|
72
72
|
slideIndex = 1
|
73
73
|
shapeIndex = 1
|
74
|
-
AsposeSlidesCloud::SpecUtils.
|
74
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
75
75
|
|
76
76
|
dto = AsposeSlidesCloud::Shape.new
|
77
77
|
effect_format = AsposeSlidesCloud::EffectFormat.new
|
@@ -82,9 +82,9 @@ describe 'UseCases' do
|
|
82
82
|
inner_shadow.shadow_color = "#FFFFFF00"
|
83
83
|
effect_format.inner_shadow = inner_shadow
|
84
84
|
dto.effect_format = effect_format
|
85
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
85
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slideIndex, shapeIndex, dto, password, folder_name)
|
86
86
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
87
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
87
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slideIndex, shapeIndex, password, folder_name)
|
88
88
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
89
89
|
expect(shape.effect_format.inner_shadow.direction).to eq(dto.effect_format.inner_shadow.direction)
|
90
90
|
end
|
@@ -95,7 +95,7 @@ describe 'UseCases' do
|
|
95
95
|
password = "password"
|
96
96
|
slideIndex = 1
|
97
97
|
shapeIndex = 1
|
98
|
-
AsposeSlidesCloud::SpecUtils.
|
98
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
99
99
|
|
100
100
|
dto = AsposeSlidesCloud::Shape.new
|
101
101
|
three_d_format = AsposeSlidesCloud::ThreeDFormat.new
|
@@ -116,9 +116,9 @@ describe 'UseCases' do
|
|
116
116
|
light_rig.direction = "Top"
|
117
117
|
three_d_format.light_rig = light_rig
|
118
118
|
dto.three_d_format = three_d_format
|
119
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
119
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_shape(file_name, slideIndex, shapeIndex, dto, password, folder_name)
|
120
120
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
121
|
-
shape = AsposeSlidesCloud::SpecUtils.
|
121
|
+
shape = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_shape(file_name, slideIndex, shapeIndex, password, folder_name)
|
122
122
|
expect(shape).to be_kind_of(AsposeSlidesCloud::Shape)
|
123
123
|
expect(shape.three_d_format.depth).to eq(dto.three_d_format.depth)
|
124
124
|
end
|