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
@@ -28,8 +28,8 @@ describe 'UseCases' do
|
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
30
|
password = "password"
|
31
|
-
AsposeSlidesCloud::SpecUtils.
|
32
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
31
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
32
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name)
|
33
33
|
expect(slides.slide_list.length).to eq(9)
|
34
34
|
end
|
35
35
|
|
@@ -38,8 +38,8 @@ describe 'UseCases' do
|
|
38
38
|
file_name = "test.pptx"
|
39
39
|
password = "password"
|
40
40
|
slide_index = 1
|
41
|
-
AsposeSlidesCloud::SpecUtils.
|
42
|
-
slide = AsposeSlidesCloud::SpecUtils.
|
41
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
42
|
+
slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name)
|
43
43
|
expect(slide).not_to eq(nil)
|
44
44
|
end
|
45
45
|
|
@@ -47,11 +47,11 @@ describe 'UseCases' do
|
|
47
47
|
folder_name = "TempSlidesSDK"
|
48
48
|
file_name = "test.pptx"
|
49
49
|
password = "password"
|
50
|
-
AsposeSlidesCloud::SpecUtils.
|
50
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
51
51
|
|
52
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
52
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_slide(file_name, "layoutSlides/3", 1, password, folder_name)
|
53
53
|
expect(slides.slide_list.length).to eq(10)
|
54
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
54
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_slide(file_name, "layoutSlides/3", nil, password, folder_name)
|
55
55
|
expect(slides.slide_list.length).to eq(11)
|
56
56
|
end
|
57
57
|
|
@@ -60,8 +60,8 @@ describe 'UseCases' do
|
|
60
60
|
file_name = "test.pptx"
|
61
61
|
password = "password"
|
62
62
|
slide_index = 3
|
63
|
-
AsposeSlidesCloud::SpecUtils.
|
64
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
63
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
64
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_slide(file_name, slide_index, nil, nil, nil, nil, password, folder_name)
|
65
65
|
expect(slides.slide_list.length).to eq(10)
|
66
66
|
end
|
67
67
|
|
@@ -71,10 +71,10 @@ describe 'UseCases' do
|
|
71
71
|
source_file_name = "TemplateCV.pptx"
|
72
72
|
password = "password"
|
73
73
|
slide_index = 1
|
74
|
-
AsposeSlidesCloud::SpecUtils.
|
75
|
-
AsposeSlidesCloud::SpecUtils.
|
74
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
75
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + source_file_name, folder_name + "/" + source_file_name)
|
76
76
|
|
77
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
77
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_slide(file_name, slide_index, 1, folder_name + "/" + source_file_name,
|
78
78
|
nil, nil, password, folder_name)
|
79
79
|
expect(slides.slide_list.length).to eq(10)
|
80
80
|
end
|
@@ -84,8 +84,8 @@ describe 'UseCases' do
|
|
84
84
|
file_name = "test.pptx"
|
85
85
|
password = "password"
|
86
86
|
slide_index = 1
|
87
|
-
AsposeSlidesCloud::SpecUtils.
|
88
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
87
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
88
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.move_slide(file_name, slide_index, 2, password, folder_name)
|
89
89
|
expect(slides.slide_list.length).to eq(9)
|
90
90
|
end
|
91
91
|
|
@@ -96,8 +96,8 @@ describe 'UseCases' do
|
|
96
96
|
old_positions = [1,2,3,4,5,6]
|
97
97
|
new_positions = [6,5,4,3,2,1]
|
98
98
|
|
99
|
-
AsposeSlidesCloud::SpecUtils.
|
100
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
99
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
100
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.reorder_slides(file_name, old_positions, new_positions, password, folder_name)
|
101
101
|
expect(slides.slide_list.length).to eq(9)
|
102
102
|
end
|
103
103
|
|
@@ -107,13 +107,13 @@ describe 'UseCases' do
|
|
107
107
|
password = "password"
|
108
108
|
layout_slide_href = "layoutSlides/3"
|
109
109
|
slide_index = 1
|
110
|
-
AsposeSlidesCloud::SpecUtils.
|
110
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
111
111
|
|
112
112
|
dto = AsposeSlidesCloud::Slide.new
|
113
113
|
dto.layout_slide = AsposeSlidesCloud::ResourceUri.new
|
114
114
|
dto.layout_slide.href = layout_slide_href
|
115
115
|
|
116
|
-
slide = AsposeSlidesCloud::SpecUtils.
|
116
|
+
slide = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_slide(file_name, slide_index, dto, password, folder_name)
|
117
117
|
expect(slide.layout_slide.href.include? layout_slide_href).to eq(true)
|
118
118
|
end
|
119
119
|
|
@@ -121,8 +121,8 @@ describe 'UseCases' do
|
|
121
121
|
folder_name = "TempSlidesSDK"
|
122
122
|
file_name = "test.pptx"
|
123
123
|
password = "password"
|
124
|
-
AsposeSlidesCloud::SpecUtils.
|
125
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
124
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
125
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_slides(file_name, nil, password, folder_name)
|
126
126
|
expect(slides.slide_list.length).to eq(1)
|
127
127
|
end
|
128
128
|
|
@@ -130,8 +130,8 @@ describe 'UseCases' do
|
|
130
130
|
folder_name = "TempSlidesSDK"
|
131
131
|
file_name = "test.pptx"
|
132
132
|
password = "password"
|
133
|
-
AsposeSlidesCloud::SpecUtils.
|
134
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
133
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
134
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_slides(file_name, [1,3,5], password, folder_name)
|
135
135
|
expect(slides.slide_list.length).to eq(6)
|
136
136
|
end
|
137
137
|
|
@@ -140,8 +140,8 @@ describe 'UseCases' do
|
|
140
140
|
file_name = "test.pptx"
|
141
141
|
password = "password"
|
142
142
|
slide_index = 1
|
143
|
-
AsposeSlidesCloud::SpecUtils.
|
144
|
-
slides = AsposeSlidesCloud::SpecUtils.
|
143
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
144
|
+
slides = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_slide(file_name, slide_index, password, folder_name)
|
145
145
|
expect(slides.slide_list.length).to eq(8)
|
146
146
|
end
|
147
147
|
|
@@ -150,8 +150,8 @@ describe 'UseCases' do
|
|
150
150
|
file_name = "test.pptx"
|
151
151
|
password = "password"
|
152
152
|
slide_index = 5
|
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.get_background(file_name, slide_index, password, folder_name)
|
155
155
|
expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
|
156
156
|
end
|
157
157
|
|
@@ -160,12 +160,12 @@ describe 'UseCases' do
|
|
160
160
|
file_name = "test.pptx"
|
161
161
|
password = "password"
|
162
162
|
slide_index = 1
|
163
|
-
AsposeSlidesCloud::SpecUtils.
|
163
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
164
164
|
dto = AsposeSlidesCloud::SlideBackground.new
|
165
165
|
dto.fill_format = AsposeSlidesCloud::SolidFill.new
|
166
166
|
dto.fill_format.color = "#FFF5FF8A"
|
167
167
|
|
168
|
-
response = AsposeSlidesCloud::SpecUtils.
|
168
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_background(file_name, slide_index, dto, password, folder_name)
|
169
169
|
expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
|
170
170
|
expect(response.fill_format.color).to eq(dto.fill_format.color)
|
171
171
|
end
|
@@ -176,9 +176,9 @@ describe 'UseCases' do
|
|
176
176
|
password = "password"
|
177
177
|
slide_index = 1
|
178
178
|
color = "#FFF5FF8A"
|
179
|
-
AsposeSlidesCloud::SpecUtils.
|
179
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
180
180
|
|
181
|
-
response = AsposeSlidesCloud::SpecUtils.
|
181
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.set_background_color(file_name, slide_index, color, password, folder_name)
|
182
182
|
expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
|
183
183
|
expect(response.fill_format.color).to eq(color)
|
184
184
|
end
|
@@ -188,9 +188,9 @@ describe 'UseCases' do
|
|
188
188
|
file_name = "test.pptx"
|
189
189
|
password = "password"
|
190
190
|
slide_index = 5
|
191
|
-
AsposeSlidesCloud::SpecUtils.
|
191
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
192
192
|
|
193
|
-
response = AsposeSlidesCloud::SpecUtils.
|
193
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_background(file_name, slide_index, password, folder_name)
|
194
194
|
expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::NoFill)
|
195
195
|
end
|
196
196
|
end
|
@@ -29,21 +29,21 @@ describe 'UseCases' do
|
|
29
29
|
folder_name = "TempSlidesSDK"
|
30
30
|
file_name = "test.pptx"
|
31
31
|
password = "password"
|
32
|
-
AsposeSlidesCloud::SpecUtils.
|
33
|
-
result1 = AsposeSlidesCloud::SpecUtils.
|
34
|
-
result2 = AsposeSlidesCloud::SpecUtils.
|
32
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
33
|
+
result1 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split(file_name, nil, nil, nil, nil, nil, nil, nil, password, folder_name)
|
34
|
+
result2 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split(file_name, nil, nil, nil, nil, 2, 3, nil, password, folder_name)
|
35
35
|
expect(result2.slides.length).to eq(2)
|
36
36
|
expect(result2.slides.length).to be < result1.slides.length
|
37
37
|
url = result1.slides[0].href
|
38
38
|
path = url[url.index("/storage/file/") + "/storage/file/".length, url.length - 1]
|
39
|
-
expect(AsposeSlidesCloud::SpecUtils.
|
39
|
+
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(path).exists).to be true
|
40
40
|
end
|
41
41
|
|
42
42
|
it 'request' do
|
43
43
|
source = File.binread("TestData/test.pptx")
|
44
44
|
password = "password"
|
45
|
-
result1 = AsposeSlidesCloud::SpecUtils.
|
46
|
-
result2 = AsposeSlidesCloud::SpecUtils.
|
45
|
+
result1 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_online(source, 'png', nil, nil, nil, nil, password)
|
46
|
+
result2 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_online(source, 'png', nil, nil, 2, 3, password)
|
47
47
|
count1 = 0
|
48
48
|
Zip::File.open_buffer(result1) do |zip|
|
49
49
|
zip.each do |entry|
|
@@ -63,26 +63,26 @@ describe 'UseCases' do
|
|
63
63
|
it 'request to storage' do
|
64
64
|
source = File.binread("TestData/test.pptx")
|
65
65
|
password = "password"
|
66
|
-
result1 = AsposeSlidesCloud::SpecUtils.
|
67
|
-
result2 = AsposeSlidesCloud::SpecUtils.
|
66
|
+
result1 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_and_save_online(source, 'png', nil, nil, nil, nil, nil, password)
|
67
|
+
result2 = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_and_save_online(source, 'png', nil, nil, nil, 2, 3, password)
|
68
68
|
expect(result2.slides.length).to eq(2)
|
69
69
|
expect(result2.slides.length).to be < result1.slides.length
|
70
70
|
url = result1.slides[0].href
|
71
71
|
path = url[url.index("/storage/file/") + "/storage/file/".length, url.length - 1]
|
72
|
-
expect(AsposeSlidesCloud::SpecUtils.
|
72
|
+
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(path).exists).to be true
|
73
73
|
end
|
74
74
|
|
75
75
|
it 'with options' do
|
76
76
|
folder_name = "TempSlidesSDK"
|
77
77
|
file_name = "test.pptx"
|
78
78
|
password = "password"
|
79
|
-
AsposeSlidesCloud::SpecUtils.
|
79
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
80
80
|
options = AsposeSlidesCloud::PdfExportOptions.new
|
81
81
|
options.jpeg_quality = 50
|
82
|
-
result = AsposeSlidesCloud::SpecUtils.
|
82
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.split(file_name, options, nil, nil, nil, nil, nil, nil, password, folder_name)
|
83
83
|
url = result.slides[0].href
|
84
84
|
path = url[url.index("/storage/file/") + "/storage/file/".length, url.length - 1]
|
85
|
-
expect(AsposeSlidesCloud::SpecUtils.
|
85
|
+
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(path).exists).to be true
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
@@ -27,7 +27,7 @@ describe 'UseCases' do
|
|
27
27
|
it 'update table cell' do
|
28
28
|
folder_name = "TempSlidesSDK"
|
29
29
|
file_name = "test.pptx"
|
30
|
-
AsposeSlidesCloud::SpecUtils.
|
30
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
31
31
|
|
32
32
|
slide_index = 9
|
33
33
|
shape_index = 1
|
@@ -35,7 +35,7 @@ describe 'UseCases' do
|
|
35
35
|
cell_index = 1
|
36
36
|
dto = AsposeSlidesCloud::TableCell.new
|
37
37
|
dto.text = "Test text"
|
38
|
-
result = AsposeSlidesCloud::SpecUtils.
|
38
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_table_cell(file_name, slide_index, shape_index,
|
39
39
|
row_index, cell_index, dto, "password", folder_name)
|
40
40
|
expect(result.text).to eq(dto.text)
|
41
41
|
end
|
@@ -43,7 +43,7 @@ describe 'UseCases' do
|
|
43
43
|
it 'create table row' do
|
44
44
|
folder_name = "TempSlidesSDK"
|
45
45
|
file_name = "test.pptx"
|
46
|
-
AsposeSlidesCloud::SpecUtils.
|
46
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
47
47
|
|
48
48
|
slide_index = 9
|
49
49
|
shape_index = 1
|
@@ -60,7 +60,7 @@ describe 'UseCases' do
|
|
60
60
|
dto.minimal_height = 30
|
61
61
|
dto.cells = [cell0, cell1, cell2, cell3]
|
62
62
|
|
63
|
-
result = AsposeSlidesCloud::SpecUtils.
|
63
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_table_row(file_name, slide_index, shape_index, dto,
|
64
64
|
nil, "password", folder_name)
|
65
65
|
expect(result.cells.length).to eq(dto.cells.length)
|
66
66
|
expect(result.minimal_height).to eq(dto.minimal_height)
|
@@ -69,14 +69,14 @@ describe 'UseCases' do
|
|
69
69
|
it 'delete table row' do
|
70
70
|
folder_name = "TempSlidesSDK"
|
71
71
|
file_name = "test.pptx"
|
72
|
-
AsposeSlidesCloud::SpecUtils.
|
72
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
73
73
|
|
74
74
|
slide_index = 9
|
75
75
|
shape_index = 1
|
76
76
|
row_index = 2
|
77
77
|
with_attached_rows = true
|
78
78
|
|
79
|
-
result = AsposeSlidesCloud::SpecUtils.
|
79
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_table_row(file_name, slide_index, shape_index,
|
80
80
|
row_index, with_attached_rows, "password", folder_name)
|
81
81
|
expect(result.rows.length).to eq(2)
|
82
82
|
end
|
@@ -84,7 +84,7 @@ describe 'UseCases' do
|
|
84
84
|
it 'update table row' do
|
85
85
|
folder_name = "TempSlidesSDK"
|
86
86
|
file_name = "test.pptx"
|
87
|
-
AsposeSlidesCloud::SpecUtils.
|
87
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
88
88
|
|
89
89
|
slide_index = 9
|
90
90
|
shape_index = 1
|
@@ -93,7 +93,7 @@ describe 'UseCases' do
|
|
93
93
|
dto = AsposeSlidesCloud::TableRow.new
|
94
94
|
dto.minimal_height = 30
|
95
95
|
|
96
|
-
result = AsposeSlidesCloud::SpecUtils.
|
96
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_table_row(file_name, slide_index, shape_index,
|
97
97
|
row_index, dto, "password", folder_name)
|
98
98
|
|
99
99
|
expect(result.minimal_height).to eq(dto.minimal_height)
|
@@ -102,7 +102,7 @@ describe 'UseCases' do
|
|
102
102
|
it 'merge table cell' do
|
103
103
|
folder_name = "TempSlidesSDK"
|
104
104
|
file_name = "test.pptx"
|
105
|
-
AsposeSlidesCloud::SpecUtils.
|
105
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
106
106
|
|
107
107
|
slide_index = 9
|
108
108
|
shape_index = 1
|
@@ -114,7 +114,7 @@ describe 'UseCases' do
|
|
114
114
|
dto.last_cell_index = 2
|
115
115
|
dto.allow_splitting = true
|
116
116
|
|
117
|
-
result = AsposeSlidesCloud::SpecUtils.
|
117
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.merge_table_cells(file_name, slide_index, shape_index, dto, "password", folder_name)
|
118
118
|
|
119
119
|
expect(result.rows[0].cells[0].col_span).to eq(2)
|
120
120
|
expect(result.rows[0].cells[0].row_span).to eq(2)
|
@@ -123,7 +123,7 @@ describe 'UseCases' do
|
|
123
123
|
it 'split table cell by width' do
|
124
124
|
folder_name = "TempSlidesSDK"
|
125
125
|
file_name = "test.pptx"
|
126
|
-
AsposeSlidesCloud::SpecUtils.
|
126
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
127
127
|
|
128
128
|
slide_index = 9
|
129
129
|
shape_index = 1
|
@@ -131,7 +131,7 @@ describe 'UseCases' do
|
|
131
131
|
cell_index = 1
|
132
132
|
cell_width = 10
|
133
133
|
|
134
|
-
result = AsposeSlidesCloud::SpecUtils.
|
134
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_table_cell(file_name, slide_index, shape_index,
|
135
135
|
row_index, cell_index, "SplitByWidth", cell_width, "password", folder_name)
|
136
136
|
|
137
137
|
expect(result.rows[0].cells.length).to eq(5)
|
@@ -140,7 +140,7 @@ describe 'UseCases' do
|
|
140
140
|
it 'split table cell by height' do
|
141
141
|
folder_name = "TempSlidesSDK"
|
142
142
|
file_name = "test.pptx"
|
143
|
-
AsposeSlidesCloud::SpecUtils.
|
143
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
144
144
|
|
145
145
|
slide_index = 9
|
146
146
|
shape_index = 1
|
@@ -148,7 +148,7 @@ describe 'UseCases' do
|
|
148
148
|
cell_index = 1
|
149
149
|
cell_height = 10
|
150
150
|
|
151
|
-
result = AsposeSlidesCloud::SpecUtils.
|
151
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_table_cell(file_name, slide_index, shape_index,
|
152
152
|
row_index, cell_index, "SplitByHeight", cell_height, "password", folder_name)
|
153
153
|
|
154
154
|
expect(result.rows.length).to eq(5)
|
@@ -157,7 +157,7 @@ describe 'UseCases' do
|
|
157
157
|
it 'split table cell by col span' do
|
158
158
|
folder_name = "TempSlidesSDK"
|
159
159
|
file_name = "test.pptx"
|
160
|
-
AsposeSlidesCloud::SpecUtils.
|
160
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
161
161
|
|
162
162
|
slide_index = 9
|
163
163
|
shape_index = 1
|
@@ -165,7 +165,7 @@ describe 'UseCases' do
|
|
165
165
|
cell_index = 1
|
166
166
|
col_span = 1
|
167
167
|
|
168
|
-
result = AsposeSlidesCloud::SpecUtils.
|
168
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_table_cell(file_name, slide_index, shape_index,
|
169
169
|
row_index, cell_index, "SplitByColSpan", col_span, "password", folder_name)
|
170
170
|
|
171
171
|
expect(result.rows[0].cells[0].col_span).to eq(nil)
|
@@ -174,7 +174,7 @@ describe 'UseCases' do
|
|
174
174
|
it 'split table cell by row span' do
|
175
175
|
folder_name = "TempSlidesSDK"
|
176
176
|
file_name = "test.pptx"
|
177
|
-
AsposeSlidesCloud::SpecUtils.
|
177
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
178
178
|
|
179
179
|
slide_index = 9
|
180
180
|
shape_index = 1
|
@@ -182,7 +182,7 @@ describe 'UseCases' do
|
|
182
182
|
cell_index = 3
|
183
183
|
row_span = 1
|
184
184
|
|
185
|
-
result = AsposeSlidesCloud::SpecUtils.
|
185
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.split_table_cell(file_name, slide_index, shape_index,
|
186
186
|
row_index, cell_index, "SplitByRowSpan", row_span, "password", folder_name)
|
187
187
|
|
188
188
|
expect(result.rows[1].cells[2].row_span).to eq(nil)
|
@@ -191,14 +191,14 @@ describe 'UseCases' do
|
|
191
191
|
it 'get table cell paragraphs' do
|
192
192
|
folder_name = "TempSlidesSDK"
|
193
193
|
file_name = "test.pptx"
|
194
|
-
AsposeSlidesCloud::SpecUtils.
|
194
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
195
195
|
|
196
196
|
slide_index = 9
|
197
197
|
shape_index = 1
|
198
198
|
row_index = 1
|
199
199
|
cell_index = 1
|
200
200
|
|
201
|
-
result = AsposeSlidesCloud::SpecUtils.
|
201
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_table_cell_paragraphs(file_name, slide_index, shape_index,
|
202
202
|
row_index, cell_index, "password", folder_name)
|
203
203
|
|
204
204
|
expect(result.paragraph_links.length).to eq(1)
|
@@ -207,7 +207,7 @@ describe 'UseCases' do
|
|
207
207
|
it 'get table cell paragraph' do
|
208
208
|
folder_name = "TempSlidesSDK"
|
209
209
|
file_name = "test.pptx"
|
210
|
-
AsposeSlidesCloud::SpecUtils.
|
210
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
211
211
|
|
212
212
|
slide_index = 9
|
213
213
|
shape_index = 1
|
@@ -215,7 +215,7 @@ describe 'UseCases' do
|
|
215
215
|
cell_index = 1
|
216
216
|
paragraph_index = 1
|
217
217
|
|
218
|
-
result = AsposeSlidesCloud::SpecUtils.
|
218
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_table_cell_paragraph(file_name, slide_index, shape_index,
|
219
219
|
row_index, cell_index, paragraph_index, "password", folder_name)
|
220
220
|
|
221
221
|
expect(result.portion_list.length).to eq(2)
|
@@ -224,7 +224,7 @@ describe 'UseCases' do
|
|
224
224
|
it 'create table cell paragraph' do
|
225
225
|
folder_name = "TempSlidesSDK"
|
226
226
|
file_name = "test.pptx"
|
227
|
-
AsposeSlidesCloud::SpecUtils.
|
227
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
228
228
|
|
229
229
|
slide_index = 9
|
230
230
|
shape_index = 1
|
@@ -239,7 +239,7 @@ describe 'UseCases' do
|
|
239
239
|
dto.portion_list = [portion0, portion1]
|
240
240
|
|
241
241
|
|
242
|
-
result = AsposeSlidesCloud::SpecUtils.
|
242
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_table_cell_paragraph(file_name, slide_index, shape_index,
|
243
243
|
row_index, cell_index, dto, "password", folder_name)
|
244
244
|
|
245
245
|
expect(result.portion_list.length).to eq(2)
|
@@ -248,7 +248,7 @@ describe 'UseCases' do
|
|
248
248
|
it 'update table cell paragraph' do
|
249
249
|
folder_name = "TempSlidesSDK"
|
250
250
|
file_name = "test.pptx"
|
251
|
-
AsposeSlidesCloud::SpecUtils.
|
251
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
252
252
|
|
253
253
|
slide_index = 9
|
254
254
|
shape_index = 1
|
@@ -264,7 +264,7 @@ describe 'UseCases' do
|
|
264
264
|
dto.portion_list = [portion0, portion1]
|
265
265
|
|
266
266
|
|
267
|
-
result = AsposeSlidesCloud::SpecUtils.
|
267
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_table_cell_paragraph(file_name, slide_index, shape_index,
|
268
268
|
row_index, cell_index, paragraph_index, dto, "password", folder_name)
|
269
269
|
|
270
270
|
expect(result.portion_list.length).to eq(2)
|
@@ -273,7 +273,7 @@ describe 'UseCases' do
|
|
273
273
|
it 'delete table cell paragraph' do
|
274
274
|
folder_name = "TempSlidesSDK"
|
275
275
|
file_name = "test.pptx"
|
276
|
-
AsposeSlidesCloud::SpecUtils.
|
276
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
277
277
|
|
278
278
|
slide_index = 9
|
279
279
|
shape_index = 1
|
@@ -289,7 +289,7 @@ describe 'UseCases' do
|
|
289
289
|
dto.portion_list = [portion0, portion1]
|
290
290
|
|
291
291
|
|
292
|
-
result = AsposeSlidesCloud::SpecUtils.
|
292
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_table_cell_paragraph(file_name, slide_index, shape_index,
|
293
293
|
row_index, cell_index, paragraph_index, "password", folder_name)
|
294
294
|
|
295
295
|
expect(result.paragraph_links.length).to eq(0)
|
@@ -298,7 +298,7 @@ describe 'UseCases' do
|
|
298
298
|
it 'get table cell portions' do
|
299
299
|
folder_name = "TempSlidesSDK"
|
300
300
|
file_name = "test.pptx"
|
301
|
-
AsposeSlidesCloud::SpecUtils.
|
301
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
302
302
|
|
303
303
|
slide_index = 9
|
304
304
|
shape_index = 1
|
@@ -306,7 +306,7 @@ describe 'UseCases' do
|
|
306
306
|
cell_index = 1
|
307
307
|
paragraph_index = 1
|
308
308
|
|
309
|
-
result = AsposeSlidesCloud::SpecUtils.
|
309
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_table_cell_portions(file_name, slide_index, shape_index,
|
310
310
|
row_index, cell_index, paragraph_index, "password", folder_name)
|
311
311
|
|
312
312
|
expect(result.items.length).to eq(2)
|
@@ -315,7 +315,7 @@ describe 'UseCases' do
|
|
315
315
|
it 'get table cell portions' do
|
316
316
|
folder_name = "TempSlidesSDK"
|
317
317
|
file_name = "test.pptx"
|
318
|
-
AsposeSlidesCloud::SpecUtils.
|
318
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
319
319
|
|
320
320
|
slide_index = 9
|
321
321
|
shape_index = 1
|
@@ -324,7 +324,7 @@ describe 'UseCases' do
|
|
324
324
|
paragraph_index = 1
|
325
325
|
portion_index = 1
|
326
326
|
|
327
|
-
result = AsposeSlidesCloud::SpecUtils.
|
327
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_table_cell_portion(file_name, slide_index, shape_index,
|
328
328
|
row_index, cell_index, paragraph_index, portion_index, "password", folder_name)
|
329
329
|
|
330
330
|
expect(result.text).to eq("Header")
|
@@ -333,7 +333,7 @@ describe 'UseCases' do
|
|
333
333
|
it 'create table cell portion' do
|
334
334
|
folder_name = "TempSlidesSDK"
|
335
335
|
file_name = "test.pptx"
|
336
|
-
AsposeSlidesCloud::SpecUtils.
|
336
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
337
337
|
|
338
338
|
slide_index = 9
|
339
339
|
shape_index = 1
|
@@ -343,7 +343,7 @@ describe 'UseCases' do
|
|
343
343
|
dto = AsposeSlidesCloud::Portion.new
|
344
344
|
dto.text = "Portion 1"
|
345
345
|
|
346
|
-
result = AsposeSlidesCloud::SpecUtils.
|
346
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_table_cell_portion(file_name, slide_index, shape_index,
|
347
347
|
row_index, cell_index, paragraph_index, dto, "password", folder_name)
|
348
348
|
|
349
349
|
expect(result.text).to eq(dto.text)
|
@@ -352,7 +352,7 @@ describe 'UseCases' do
|
|
352
352
|
it 'update table cell portion' do
|
353
353
|
folder_name = "TempSlidesSDK"
|
354
354
|
file_name = "test.pptx"
|
355
|
-
AsposeSlidesCloud::SpecUtils.
|
355
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
356
356
|
|
357
357
|
slide_index = 9
|
358
358
|
shape_index = 1
|
@@ -363,7 +363,7 @@ describe 'UseCases' do
|
|
363
363
|
dto = AsposeSlidesCloud::Portion.new
|
364
364
|
dto.text = "Portion 1"
|
365
365
|
|
366
|
-
result = AsposeSlidesCloud::SpecUtils.
|
366
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.update_table_cell_portion(file_name, slide_index, shape_index,
|
367
367
|
row_index, cell_index, paragraph_index, portion_index, dto, "password", folder_name)
|
368
368
|
|
369
369
|
expect(result.text).to eq(dto.text)
|
@@ -372,7 +372,7 @@ describe 'UseCases' do
|
|
372
372
|
it 'delete table cell portion' do
|
373
373
|
folder_name = "TempSlidesSDK"
|
374
374
|
file_name = "test.pptx"
|
375
|
-
AsposeSlidesCloud::SpecUtils.
|
375
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
376
376
|
|
377
377
|
slide_index = 9
|
378
378
|
shape_index = 1
|
@@ -383,7 +383,7 @@ describe 'UseCases' do
|
|
383
383
|
dto = AsposeSlidesCloud::Portion.new
|
384
384
|
dto.text = "Portion 1"
|
385
385
|
|
386
|
-
result = AsposeSlidesCloud::SpecUtils.
|
386
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_table_cell_portion(file_name, slide_index, shape_index,
|
387
387
|
row_index, cell_index, paragraph_index, portion_index, "password", folder_name)
|
388
388
|
|
389
389
|
expect(result.items.length).to eq(1)
|
@@ -29,7 +29,7 @@ describe 'UseCases' do
|
|
29
29
|
file_name = "test.pptx"
|
30
30
|
password = "password"
|
31
31
|
slide_index = 1
|
32
|
-
AsposeSlidesCloud::SpecUtils.
|
32
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
33
33
|
|
34
34
|
dto = AsposeSlidesCloud::Shape.new
|
35
35
|
dto.shape_type = "Rectangle"
|
@@ -67,7 +67,7 @@ describe 'UseCases' do
|
|
67
67
|
#threeDFormat.camera_type = "PerspectiveContrastingRightFacing"
|
68
68
|
dto.text_frame_format.three_d_format = threeDFormat;
|
69
69
|
|
70
|
-
result = AsposeSlidesCloud::SpecUtils.
|
70
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, slide_index, dto, nil, nil, password, folder_name)
|
71
71
|
expect(result).to be_kind_of(AsposeSlidesCloud::Shape)
|
72
72
|
end
|
73
73
|
|
@@ -76,7 +76,7 @@ describe 'UseCases' do
|
|
76
76
|
file_name = "test.pptx"
|
77
77
|
password = "password"
|
78
78
|
slide_index = 1
|
79
|
-
AsposeSlidesCloud::SpecUtils.
|
79
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
80
80
|
|
81
81
|
dto = AsposeSlidesCloud::Shape.new
|
82
82
|
dto.shape_type = "Rectangle"
|
@@ -97,7 +97,7 @@ describe 'UseCases' do
|
|
97
97
|
solidFill.color = "#FF0000"
|
98
98
|
dto.text_frame_format.default_paragraph_format.bullet_fill_format = solidFill
|
99
99
|
|
100
|
-
result = AsposeSlidesCloud::SpecUtils.
|
100
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.create_shape(file_name, slide_index, dto, nil, nil, password, folder_name)
|
101
101
|
expect(result).to be_kind_of(AsposeSlidesCloud::Shape)
|
102
102
|
end
|
103
103
|
end
|