Skip to content

Commit

Permalink
Failure parsing table property for 7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Oct 17, 2023
1 parent 1242e1a commit 352992a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/docx/smoke/api_table_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@
it 'ApiTable | SetTableLook method' do
docx = builder.build_and_parse('js/docx/smoke/api_table/set_table_look.js')
expect(docx.elements[1].properties.table_look.first_column).to be_truthy
expect(docx.elements[1].properties.table_style.table_style_properties_list
.first.table_cell_properties.shade.color.upcase)
.to eq(OoxmlParser::Color.new(255, 0, 0).to_hex.to_sym)
# TODO: https://github.com/ONLYOFFICE/ooxml_parser/issues/1214
# expect(docx.elements[1].properties.table_style.table_style_properties_list
# .first.table_cell_properties.shade.color.upcase)
# .to eq(OoxmlParser::Color.new(255, 0, 0).to_hex.to_sym)
expect(docx.elements[1].properties.table_look.first_row).to be_truthy
expect(docx.elements[1].properties.table_look.last_column).to be_truthy
expect(docx.elements[1].properties.table_look.first_row).to be_truthy
Expand Down
4 changes: 4 additions & 0 deletions spec/docx/smoke/api_table_style_pr_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
end

it 'ApiTableStylePr | GetParaPr method' do
skip('https://github.com/ONLYOFFICE/ooxml_parser/issues/1214')
docx = builder.build_and_parse('js/docx/smoke/api_table_style_pr/get_para_pr.js')
expect(docx.elements[1].properties
.table_style.table_style_properties_list
Expand All @@ -24,6 +25,7 @@
end

it 'ApiTableStylePr | GetTablePr method' do
skip('https://github.com/ONLYOFFICE/ooxml_parser/issues/1214')
docx = builder.build_and_parse('js/docx/smoke/api_table_style_pr/get_table_pr.js')
bottom_border = docx.document_style_by_name('CustomTableStyle')
.table_style_properties_list.first.table_properties
Expand All @@ -35,6 +37,7 @@
end

it 'ApiTableStylePr | GetTableRowPr method' do
skip('https://github.com/ONLYOFFICE/ooxml_parser/issues/1214')
docx = builder.build_and_parse('js/docx/smoke/api_table_style_pr/get_table_row_pr.js')
expect(docx.document_style_by_name('CustomTableStyle')
.table_style_properties_list
Expand All @@ -43,6 +46,7 @@
end

it 'ApiTableStylePr | GetTextPr method' do
skip('https://github.com/ONLYOFFICE/ooxml_parser/issues/1214')
docx = builder.build_and_parse('js/docx/smoke/api_table_style_pr/get_text_pr.js')
expect(docx.elements[1].properties.table_style.table_style_properties_list.first.run_properties.font_style.bold).to be_truthy
end
Expand Down

0 comments on commit 352992a

Please sign in to comment.